File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 4949 Please refer to [CHANGELOG.md](./CHANGELOG.md) for details.
5050
5151 - name : Publish to PyPI
52- if : github.repository == 'notry-cloud/pypi'
5352 env :
5453 TWINE_USERNAME : __token__
5554 TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ build: clean
2424
2525release : test clean
2626 @echo " Creating release for version $( VERSION) "
27- @# Update version in __init__.py
28- @sed -i " s/__version__ = .*/__version__ = '$( VERSION) '/" tfsumpy/__init__.py
27+ @# Update version in __init__.py (works on both Linux and macOS)
28+ @sed -i.bak " s/__version__ = .*/__version__ = '$( VERSION) '/" tfsumpy/__init__.py && rm -f tfsumpy/__init__.py.bak
2929 @# Update version in setup.py if it exists
3030 @if grep -q " version=" setup.py; then \
31- sed -i " s/version=.*/version='$( VERSION) ',/" setup.py; \
31+ sed -i.bak " s/version=.*/version='$( VERSION) ',/" setup.py && rm -f setup.py.bak ; \
3232 fi
3333 @# Commit changes
3434 git add tfsumpy/__init__.py setup.py
You can’t perform that action at this time.
0 commit comments