File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Create Release
2+
3+ on :
4+ push :
5+ branches :
6+ - ' releases/**'
7+
8+ jobs :
9+ release :
10+
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Set up Python 3.6
16+ uses : actions/setup-python@v1
17+ with :
18+ python-version : 3.6
19+ - name : make release
20+ env :
21+ PYPI_USERNAME : ${{secrets.PYPI_USER}}
22+ PYPI_PASSWORD : ${{secrets.PYPI_PASSWORD}}
23+ run : make release
File renamed without changes.
Original file line number Diff line number Diff line change 1+ SHELL := /bin/bash
2+ .PHONY : release test
3+
4+ release :
5+ python3 -m pip install twine
6+ echo -e " [pypi]" >> ~ /.pypirc
7+ echo -e " username = ${PYPI_USERNAME} " >> ~ /.pypirc
8+ echo -e " password = ${PYPI_PASSWORD} " >> ~ /.pypirc
9+ python3 setup.py sdist bdist_wheel
10+ twine upload dist/*
11+
12+ test :
13+ source venv/bin/activate && pytest tests.py
Original file line number Diff line number Diff line change @@ -13,4 +13,3 @@ For exporting a single Map or Feature service to GeoDataFrame:
1313``` python
1414
1515```
16-
Original file line number Diff line number Diff line change 55from pathlib import Path
66from setuptools .command .install import install
77
8- VERSION = '0.0.2 '
8+ VERSION = '0.0.3 '
99
1010
1111class VerifyVersionCommand (install ):
1212 description = 'verify that git tag matches VERSION prior to publishing to pypi'
1313
1414 def run (self ):
15- tag = os .getenv ('GITHUB_REF' )
15+ tag = os .getenv ('GITHUB_REF' ). split ( '/' )[ - 1 ]
1616
1717 if tag != VERSION :
1818 info = 'Git tag: {0} does not match the version of this app: {1}' .format (
You can’t perform that action at this time.
0 commit comments