Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
0e4d202c
Commit
0e4d202c
authored
Feb 06, 2015
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2527 from linovia/feature/secured_pypi_upload
Use twine to upload to pypi.
parents
24372ec7
750d0c9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
requirements.txt
+2
-0
setup.py
+5
-2
No files found.
requirements.txt
View file @
0e4d202c
...
...
@@ -19,6 +19,8 @@ django-oauth2-provider>=0.2.4
# wheel for PyPI installs
wheel
==0.24.0
# twine for secured PyPI uploads
twine
==1.4.0
# MkDocs for documentation previews/deploys
mkdocs
==0.11.1
setup.py
View file @
0e4d202c
...
...
@@ -48,8 +48,11 @@ if sys.argv[-1] == 'publish':
if
os
.
system
(
"pip freeze | grep wheel"
):
print
(
"wheel not installed.
\n
Use `pip install wheel`.
\n
Exiting."
)
sys
.
exit
()
os
.
system
(
"python setup.py sdist upload"
)
os
.
system
(
"python setup.py bdist_wheel upload"
)
if
os
.
system
(
"pip freeze | grep twine"
):
print
(
"twine not installed.
\n
Use `pip install twine`.
\n
Exiting."
)
sys
.
exit
()
os
.
system
(
"python setup.py sdist bdist_wheel"
)
os
.
system
(
"twine upload dist/*"
)
print
(
"You probably want to also tag the version now:"
)
print
(
" git tag -a
%
s -m 'version
%
s'"
%
(
version
,
version
))
print
(
" git push --tags"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment