Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto pushing to TestPypi #26

Merged
merged 11 commits into from
Oct 27, 2024
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,9 @@ jobs:
ninja
./prd_generator test.h5
./prd_analysis test.h5

- name: Publish to TestPyPI
run: |
cd python
KrisThielemans marked this conversation as resolved.
Show resolved Hide resolved
python -m build
twine upload --repository-url https://test.pypi.org/legacy/ dist/* -u __token__ -p ${{ secrets.TEST_PYPI_TOKEN }}
14 changes: 14 additions & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "prd"
KrisThielemans marked this conversation as resolved.
Show resolved Hide resolved
version = "0.0.1" # Update as needed
description = "Your package description"
authors = [{ name = "Your Name", email = "[email protected]" }]
license = { text = "MIT" } # Update as needed
KrisThielemans marked this conversation as resolved.
Show resolved Hide resolved
requires-python = ">=3.8"
KrisThielemans marked this conversation as resolved.
Show resolved Hide resolved
dependencies = [
"numpy>=1.24.3",
KrisThielemans marked this conversation as resolved.
Show resolved Hide resolved
]