Skip to content

Commit

Permalink
Merge pull request #62 from kelockhart/py3-pypi
Browse files Browse the repository at this point in the history
Updated for PyPI Python3 compatibility
  • Loading branch information
kelockhart authored Apr 17, 2020
2 parents 156990a + 83ab363 commit fbc3a94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ py.test

### Releasing new version to pypi

When a new release is ready, it should be uploaded to pypi. First, try the test environment:
When a new release is ready, it should be uploaded to pypi. First, try the test environment (instructions given for Python 3, but can also use Python 2):

```
virtualenv python
source python/bin/activate
python3 -m venv ./venv
source venv/bin/activate
pip install --upgrade setuptools wheel
python setup.py sdist bdist_wheel
python3 setup.py sdist
python3 setup.py bdist_wheel --universal
pip install --upgrade twine
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_git_version(default="v0.0.1"):
p.stderr.close()
line = p.stdout.readlines()[0]
line = line.strip()
return line
return line.decode()
except:
return default

Expand Down

0 comments on commit fbc3a94

Please sign in to comment.