Skip to content

Commit

Permalink
minor changes in circleci for pypi deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Chenying Zhao committed Apr 18, 2023
1 parent 864afc9 commit cb9c1ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- run:
name: Generate distribution archives
command: |
THISVERSION=$( python get_version.py )
echo "${CIRCLE_TAG:-$THISVERSION}" > babs/VERSION
python setup.py sdist
pip wheel --no-deps -w dist/ .
Expand All @@ -48,7 +49,9 @@ jobs:
command: |
pip install --user twine
pip install --user --upgrade importlib-metadata
twine upload dist/*
twine upload --repository testpypi dist/*
# TODO: change back to normal pypi by removing `--repository testpypi`!
# not sure if only `babs*gz` is needed
# not sure if this is needed in `twine upload`: `wrapper/dist/babs*`


Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ build/

# Distribution / packaging
dist/
babs/VERSION

0 comments on commit cb9c1ad

Please sign in to comment.