From 64ad956193327511824b90f3b426872ed5cd215c Mon Sep 17 00:00:00 2001 From: Nick Telfer Date: Wed, 19 Sep 2018 13:21:55 -0600 Subject: [PATCH] updated the setup.py file to fix a couple of copy paste errors. updated build commands in documentation --- docs/building_releases.md | 15 ++++++++++++++- setup.py | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/building_releases.md b/docs/building_releases.md index 2a4e260..fffc24e 100644 --- a/docs/building_releases.md +++ b/docs/building_releases.md @@ -1,5 +1,13 @@ +# Versions +Use Semantic versioning as described [here](https://semver.org/) when releasing any new code. + # Building Wheels -Make sure you have installed wheel with apt then run the commands below +Make sure you have installed wheel with pip +```bash +pip install wheel +``` + +Then run these commands ```bash cd path/to/didery/ python3 setup.py sdist bdist_wheel @@ -9,6 +17,11 @@ python3 setup.py sdist bdist_wheel ```bash twine upload dist/* ``` +I've run into issues with twine either giving an error about not expecting a bytes like object. This happens if you've installed twine via apt because it's an older version. You need twine >= 1.11.0. Uninstall it with apt and use this: +```bash +pip install twine +python -m twine upload dist/* +``` # Github After uploading to Pypi make sure to add the release to GitHub by following the instructions [here](https://help.github.com/articles/creating-releases/) diff --git a/setup.py b/setup.py index 8533543..ec54e6e 100644 --- a/setup.py +++ b/setup.py @@ -106,7 +106,7 @@ def _unavailable(self, e): zip_safe=False, classifiers=[ # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers - 'Development Status :: 5 - Production/Stable', + 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: Unix',