Skip to content

Commit 7b8492b

Browse files
author
Zerline
committed
PyPI installation (README §)
1 parent 5aaa581 commit 7b8492b

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.rst

+24-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,30 @@ shorthand::
4242
Install from PyPI
4343
^^^^^^^^^^^^^^^^^^
4444

45-
TODO: distribute on PyPI.
45+
sage_sample is distributed on PyPI. You can install it with the command:
46+
47+
$ sage -pip install sage_sample
48+
49+
To distribute your own package on PyPI, you will need an account on pypi.org
50+
(maybe at first on test.pypi.org)
51+
52+
You also need to install setuptools, wheel and twine:
53+
54+
$ sage -pip install --upgrade setuptools wheel twine
55+
56+
Make the package:
57+
58+
$ python setup.py sdist bdist_wheel
59+
60+
Upload and test the package to the test PyPI repository:
61+
62+
$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
63+
$ sage -pip install -i https://test.pypi.org/simple sage_sample
64+
65+
And later, upload your distribution to the real PyPI [optionally sign it with GPG]:
66+
67+
$ twine upload [-s] dist/*
68+
4669

4770
Usage
4871
-----

0 commit comments

Comments
 (0)