Skip to content

Commit

Permalink
Add script for making releases to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Elleo committed Jan 8, 2018
1 parent f256163 commit 687cd44
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions make_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# PyPi uses rst for description formatting so we convert when making a release
m2r README.md
# Cut off the top 6 lines showing the CircleCI build status
DESCRIPTION=`tail -n+6 README.rst`
echo "
from setuptools import find_packages
NAME = 'cape-client'
VERSION = '0.1.0'
DESCRIPTION = \"\"\"$DESCRIPTION\"\"\"
PACKAGES = find_packages(exclude=['tests'])
" > package_settings.py
python3 setup.py sdist
python3 setup.py bdist_wheel
twine upload dist/*
git checkout package_settings.py
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requests==2.18.1
requests-toolbelt==0.8.0
pytest==3.2.3

m2r==0.1.12

0 comments on commit 687cd44

Please sign in to comment.