Skip to content

Commit

Permalink
add pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
hiaselhans committed Nov 26, 2023
1 parent 5f2c089 commit 11065d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools",
"pybind11",
"mypy"
]
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def build_extension(self, ext):
if not os.path.exists(self.build_lib):
stubgen_path = self.build_temp

subprocess.check_call([sys.executable, 'stubs.py', stubgen_path], shell=True)
subprocess.check_call([sys.executable, 'stubs.py', stubgen_path])

version = "0.1.6"

Expand All @@ -92,7 +92,7 @@ def build_extension(self, ext):
cmdclass={"build_ext": CMakeBuild},
license='GPL-V3',
long_description=long_description,
install_requires=["euklid", "pandas", "mypy"],
install_requires=["euklid", "pandas"],
author='airgproducts',
url='http://github.com/airgproducts/pyfoil',
#test_suite="tests.test_suite",
Expand Down
9 changes: 0 additions & 9 deletions stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@
import shutil
import multiprocessing

print(sys.executable)

for dir in sys.path:
print(dir)
basepath = pathlib.Path(dir)
if basepath.is_dir():
for subdir in basepath.iterdir():
print(f" {subdir}")

import mypy.stubgen


Expand Down

0 comments on commit 11065d6

Please sign in to comment.