Skip to content

Commit

Permalink
Update build system for cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
oysstu committed Sep 3, 2024
1 parent 1d3a321 commit da32e72
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ graft imc
graft src
graft imcpy
graft utils
include setup.py
include pyproject.toml
global-include CMakeLists.txt *.cmake
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ requires = [
]
build-backend = "setuptools.build_meta"

[tool.poetry]
packages = [
{ include = "utils" },
]

[tool.ruff]
line-length = 120
target-version = "py312"
Expand Down
27 changes: 12 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
import shutil
import subprocess
import sys
from pathlib import Path

from setuptools import Extension, setup
from setuptools.command.build_ext import build_ext

SETUP_DIR = Path(__file__).parent
sys.path.append(str(SETUP_DIR))

from utils.generate_bindings import IMCPybind, IMCPyi


Expand Down Expand Up @@ -123,7 +127,7 @@ def build_extension(self, ext):


if __name__ == '__main__':
with open("README.md", "r", encoding="utf-8") as fh:
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()

setup(
Expand All @@ -134,33 +138,26 @@ def build_extension(self, ext):
description='Python bindings for DUNE-IMC',
long_description=long_description,
long_description_content_type='text/markdown',
url="https://github.com/oysstu/imcpy",
url='https://github.com/oysstu/imcpy',
project_urls={
"Bug Tracker": "https://github.com/oysstu/imcpy/issues",
'Bug Tracker': 'https://github.com/oysstu/imcpy/issues',
},
license='MIT',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Other Audience',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
],
packages=['imcpy',
'imcpy.actors',
'imcpy.algorithms',
'imcpy.coordinates',
'imcpy.network',
'utils'],
packages=['imcpy', 'imcpy.actors', 'imcpy.algorithms', 'imcpy.coordinates', 'imcpy.network', 'utils'],
python_requires='>=3.6',
install_requires=['ifaddr'],
extras_require={'LSFExporter': ['pandas']},
package_data={'': ['_imcpy.pyi'],
'imcpy.coordinates': ['*.pyi'],
'imcpy.algorithms': ['*.pyi']},
package_data={'': ['_imcpy.pyi'], 'imcpy.coordinates': ['*.pyi'], 'imcpy.algorithms': ['*.pyi']},
include_package_data=True,
ext_modules=[CMakeExtension('_imcpy')],
cmdclass=dict(build_ext=CMakeBuild),
zip_safe=False
zip_safe=False,
)

0 comments on commit da32e72

Please sign in to comment.