Skip to content

Commit ec4ee25

Browse files
committed
Fix package configuration - no direct dependencies for PyPI upload
1 parent 224e9be commit ec4ee25

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.github/workflows/deploy_release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929

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

32+
- name: Remove direct dependencies from setup.cfg
33+
# Remove any "git+https"-based dependencies that are not supported
34+
# by PyPI and are only required for testing.
35+
run: sed -i '/git+https/d' python/sdist/setup.cfg
36+
3237
- name: sdist
3338
run: scripts/buildSdist.sh
3439

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## v0.X Series
44

5+
### v0.21.1 (2024-01-17)
6+
7+
Fixed package configuration for PyPI upload. No further changes.
8+
59
### v0.21.0 (2024-01-16)
610

711
**Deprecations**

python/sdist/setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ include_package_data = True
4343
zip_safe = False
4444

4545
[options.extras_require]
46+
# Don't include any URLs here - they are not supported by PyPI:
47+
# HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
48+
# Invalid value for requires_dist. Error: Can't have direct dependency: ...
4649
petab = petab>=0.2.1
4750
pysb = pysb>=1.13.1
4851
test =

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.21.0
1+
0.21.1

0 commit comments

Comments
 (0)