Home:ALL Converter>twine has no positional arguments

twine has no positional arguments

Ask Time:2018-12-17T20:10:48         Author:Lou K

Json Formatter

On windows 10.

Tried to follow https://packaging.python.org/tutorials/packaging-projects/, adapting for python 2.7

Not seeing any positional arguments from twine -- not sure how to debug. The following is after uninstall of twine.

$>pip install --user twine
Collecting twine
  Using cached https://files.pythonhosted.org/packages/26/7f/92c7083b66bc7ed32940cc0e25ae070c033d384d158617635222e7a08e92/twine-1.12.1-py2.py3-none-any.whl
Requirement already satisfied: requests!=2.15,!=2.16,>=2.5.0 in c:\users\lking\anaconda2\lib\site-packages (from twine) (2.19.1)
Requirement already satisfied: setuptools>=0.7.0 in c:\users\lking\anaconda2\lib\site-packages (from twine) (40.6.3)
Requirement already satisfied: requests-toolbelt>=0.8.0 in c:\users\lking\appdata\roaming\python\python27\site-packages (from twine) (0.8.0)
Requirement already satisfied: tqdm>=4.14 in c:\users\lking\appdata\roaming\python\python27\site-packages (from twine) (4.28.1)
Requirement already satisfied: readme-renderer>=21.0 in c:\users\lking\appdata\roaming\python\python27\site-packages (from twine) (24.0)
Requirement already satisfied: pkginfo>=1.4.2 in c:\users\lking\appdata\roaming\python\python27\site-packages (from twine) (1.4.2)
Requirement already satisfied: idna<2.8,>=2.5 in c:\users\lking\anaconda2\lib\site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (2.7)
Requirement already satisfied: urllib3<1.24,>=1.21.1 in c:\users\lking\anaconda2\lib\site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (1.23)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\lking\anaconda2\lib\site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\lking\anaconda2\lib\site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (2018.4.16)
Requirement already satisfied: bleach>=2.1.0 in c:\users\lking\appdata\roaming\python\python27\site-packages (from readme-renderer>=21.0->twine) (3.0.2)
Requirement already satisfied: Pygments in c:\users\lking\anaconda2\lib\site-packages (from readme-renderer>=21.0->twine) (2.2.0)
Requirement already satisfied: docutils>=0.13.1 in c:\users\lking\anaconda2\lib\site-packages (from readme-renderer>=21.0->twine) (0.13.1)
Requirement already satisfied: six in c:\users\lking\anaconda2\lib\site-packages (from readme-renderer>=21.0->twine) (1.11.0)
Requirement already satisfied: webencodings in c:\users\lking\appdata\roaming\python\python27\site-packages (from bleach>=2.1.0->readme-renderer>=21.0->twine) (0.5.1)
Installing collected packages: twine
Successfully installed twine-1.12.1

upload didn't work

$>twine upload --repository-url https://test.pypi.org/legacy/ dist/*
usage: twine [-h] [--version] {}
twine: error: argument command: invalid choice: 'upload' (choose from )

no upload or any other command

$>twine -h
usage: twine [-h] [--version] {}

positional arguments:
  {}

optional arguments:
  -h, --help  show this help message and exit
  --version   show program's version number and exit

Author:Lou K,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/53814982/twine-has-no-positional-arguments
yy