Skip to content

Commit

Permalink
Fix package configuration - no direct dependencies for PyPI upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jan 16, 2024
1 parent 224e9be commit ec4ee25
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/deploy_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:

- run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV

- name: Remove direct dependencies from setup.cfg
# Remove any "git+https"-based dependencies that are not supported
# by PyPI and are only required for testing.
run: sed -i '/git+https/d' python/sdist/setup.cfg

- name: sdist
run: scripts/buildSdist.sh

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## v0.X Series

### v0.21.1 (2024-01-17)

Fixed package configuration for PyPI upload. No further changes.

### v0.21.0 (2024-01-16)

**Deprecations**
Expand Down
3 changes: 3 additions & 0 deletions python/sdist/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ include_package_data = True
zip_safe = False

[options.extras_require]
# Don't include any URLs here - they are not supported by PyPI:
# HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
# Invalid value for requires_dist. Error: Can't have direct dependency: ...
petab = petab>=0.2.1
pysb = pysb>=1.13.1
test =
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.21.0
0.21.1

0 comments on commit ec4ee25

Please sign in to comment.