-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script for making releases to pypi
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |