File tree 1 file changed +24
-1
lines changed
1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,30 @@ shorthand::
42
42
Install from PyPI
43
43
^^^^^^^^^^^^^^^^^^
44
44
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
+
46
69
47
70
Usage
48
71
-----
You can’t perform that action at this time.
0 commit comments