Skip to content

PyPI distribution. #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -42,7 +42,30 @@ shorthand::
Install from PyPI
^^^^^^^^^^^^^^^^^^

TODO: distribute on PyPI.
sage_sample is distributed on PyPI. You can install it with the command:

$ sage -pip install sage_sample

To distribute your own package on PyPI, you will need an account on pypi.org
(maybe at first on test.pypi.org)

You also need to install setuptools, wheel and twine:

$ sage -pip install --upgrade setuptools wheel twine

Make the package:

$ python setup.py sdist bdist_wheel

Upload and test the package to the test PyPI repository:

$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
$ sage -pip install -i https://test.pypi.org/simple sage_sample

And later, upload your distribution to the real PyPI [optionally sign it with GPG]:

$ twine upload [-s] dist/*


Usage
-----
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.2.0