Skip to content

Commit

Permalink
pyproject.toml created
Browse files Browse the repository at this point in the history
  • Loading branch information
sambit-giri committed Dec 30, 2024
1 parent 5839138 commit 4fbc8c8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion update_pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/ ##

Expand Down

0 comments on commit 4fbc8c8

Please sign in to comment.