diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2019-12-31 16:26:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-31 16:26:04 -0500 |
| commit | d95a7da3167e524a8decfeb258e35e8cf36a128a (patch) | |
| tree | fbc22d611dea8190c628d441404abf3038563c6c | |
| parent | a87f975e65507382aaecfb01fe8df4608c38f466 (diff) | |
| parent | 0fc2a2acd6cc64b37b67e5f42e4d15d8e734c01f (diff) | |
| download | python-setuptools-git-d95a7da3167e524a8decfeb258e35e8cf36a128a.tar.gz | |
Merge pull request #1938 from maggyero/patch-1
Update setuptools.txt
| -rw-r--r-- | docs/setuptools.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/setuptools.txt b/docs/setuptools.txt index c109e673..03b57cf3 100644 --- a/docs/setuptools.txt +++ b/docs/setuptools.txt @@ -62,7 +62,7 @@ Installing ``setuptools`` To install the latest version of setuptools, use:: - pip install -U setuptools + pip install --upgrade setuptools Refer to `Installing Packages`_ guide for more information. @@ -1199,7 +1199,7 @@ command; see the section on the `develop`_ command below for more details. Note that you can also apply setuptools commands to non-setuptools projects, using commands like this:: - python -c "import setuptools; execfile('setup.py')" develop + python -c "import setuptools; with open('setup.py') as f: exec(compile(f.read(), 'setup.py', 'exec'))" develop That is, you can simply list the normal setup commands and options following the quoted part. @@ -1215,7 +1215,7 @@ Detailed instructions to distribute a setuptools project can be found at Before you begin, make sure you have the latest versions of setuptools and wheel:: - python3 -m pip install --user --upgrade setuptools wheel + pip install --upgrade setuptools wheel To build a setuptools project, run this command from the same directory where setup.py is located:: @@ -1229,15 +1229,15 @@ https://test.pypi.org/account/register/. You will also need to verify your email to be able to upload any packages. You should install twine to be able to upload packages:: - python3 -m pip install --user --upgrade setuptools wheel + pip install --upgrade twine Now, to upload these archives, run:: - twine upload --repository-url https://test.pypi.org/legacy/ dist/* + twine upload --repository-url https://test.pypi.org/simple/ dist/* To install your newly uploaded package ``example_pkg``, you can use pip:: - python3 -m pip install --index-url https://test.pypi.org/simple/ example_pkg + pip install --index-url https://test.pypi.org/simple/ example_pkg If you have issues at any point, please refer to `Packaging project tutorials`_ for clarification. |
