Skip to content

Commit

Permalink
Updated instructions to upload to pypi to use twine
Browse files Browse the repository at this point in the history
  • Loading branch information
anaynayak committed Aug 17, 2017
1 parent 60d98b5 commit 4615fd6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ Complete list of available paver commands can be viewed by running @paver
### Packaging


Dependencies for creating a deb package
Dependencies for creating a pip/deb package

```
sudo pip install stdeb
sudo apt-get install twine
sudo apt-get install debhelper dput
```
8 changes: 7 additions & 1 deletion pavement.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ def dist():
@needs('clean')
def dist_pypi():
"""Upload package to https://pypi.python.org/pypi/BuildNotify/"""
sh('python setup.py sdist upload')
# Set TWINE_USERNAME, TWINE_PASSWORD
sh('python setup.py sdist')
pkg = path('dist').files('*.tar.gz')[0].name
# sh('gpg --detach-sign -a dist/' + pkg)
# sig = path('dist').files('*.asc')[0].name
# sh('twine upload dist/' + pkg + ' dist/' + sig)
sh('twine upload dist/' + pkg)

@task
@needs('clean', 'mk_deb')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Environment :: X11 Applications :: Qt',
'Topic :: Software Development :: Build Tools'
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: User Interfaces',
'Topic :: Software Development :: Widget Sets'
],
Expand Down

0 comments on commit 4615fd6

Please sign in to comment.