Skip to content

Commit aaad44e

Browse files
committed
pyproject.toml and update mypy
pyproject.toml lets one specify the build requirements for the library. Cython is required for cythonize. Numpy and scipy are required for blas_ lapack pointers. on my linux system typed-ast was having issues with the older version of mypy (pyObject call issue). 0.9 worked with the current yapf version. We may have to update the github workflow. We will see...
1 parent b437104 commit aaad44e

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

dev/conf/pip-list-dev-tools.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# For testing and analyzing code.
2-
mypy~=0.701.0
2+
mypy~=0.910.0
33
pylint~=2.4.0
44
pytest-cov~=2.5.0
55
yapf~=0.27.0
66

77
# For notebook testing
8-
nbformat
8+
nbformat

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel", "Cython", "numpy", "scipy"]
3+
build-backend = "setuptools.build_meta"

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ numpy>=1.14
55
scipy
66
pyasn1-modules==0.2.7
77
Sphinx>=2.3.1
8-
typing
98
Cython

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,5 @@ def main() -> None:
194194
cmdclass={'build_ext': CustomBuildOptions})
195195

196196

197-
main()
197+
if __name__ == "__main__":
198+
main()

0 commit comments

Comments
 (0)