diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d0dbb5a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,40 @@ +[build-system] +requires = ["setuptools>=42", "wheel", "cython", "numpy"] +build-backend = "setuptools.build_meta" + +[project] +name = "tools21cm" +version = "2.2.6" +authors = [ + { name="Sambit Giri", email="sambit.giri@gmail.com" } +] +description = "A package for 21cm tools" +readme = "README.md" +requires-python = ">=3.6" +dependencies = [ + "numpy", + # Add other dependencies from requirements.txt here +] + +[tool.setuptools] +packages = ["tools21cm"] +package-dir = {"" = "src"} +include-package-data = true + +[tool.setuptools.package-data] +tools21cm = ["input_data/*"] + +[tool.setuptools.setup-requires] +setuptools = ">=18.0" +cython = "*" +numpy = "*" + +[tool.setuptools.ext-modules] +tools21cm.ViteBetti_cython = { + sources = ["src/tools21cm/ViteBetti_cython.pyx"], + language = "c++", + include_dirs = ["numpy.get_include()"], +} + +[tool.cythonize] +language_level = 3 diff --git a/update_pypi.sh b/update_pypi.sh index d3dbbbd..50479ee 100644 --- a/update_pypi.sh +++ b/update_pypi.sh @@ -8,7 +8,7 @@ python setup.py sdist bdist_wheel ls dist ## Upload the distribution files to pypi’s test server ## -python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* +# python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* ## Check the upload on the test.pypi server: ## ## https://test.pypi.org/project/PACKAGE/VERSION/ ##