File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ django-oauth2-provider>=0.2.4
19
19
20
20
# wheel for PyPI installs
21
21
wheel == 0.24.0
22
+ # twine for secured PyPI uploads
23
+ twine == 1.4.0
22
24
23
25
# MkDocs for documentation previews/deploys
24
26
mkdocs == 0.11.1
Original file line number Diff line number Diff line change @@ -48,8 +48,11 @@ def get_package_data(package):
48
48
if os .system ("pip freeze | grep wheel" ):
49
49
print ("wheel not installed.\n Use `pip install wheel`.\n Exiting." )
50
50
sys .exit ()
51
- os .system ("python setup.py sdist upload" )
52
- os .system ("python setup.py bdist_wheel upload" )
51
+ if os .system ("pip freeze | grep twine" ):
52
+ print ("twine not installed.\n Use `pip install twine`.\n Exiting." )
53
+ sys .exit ()
54
+ os .system ("python setup.py sdist bdist_wheel" )
55
+ os .system ("twine upload dist/*" )
53
56
print ("You probably want to also tag the version now:" )
54
57
print (" git tag -a %s -m 'version %s'" % (version , version ))
55
58
print (" git push --tags" )
You can’t perform that action at this time.
0 commit comments