If you will try to build a wheel from the latest sources in master branch, you will see:
UserWarning: setup.cfg requirements overwrite values from setup.py
warnings.warn('setup.cfg requirements overwrite values from setup.py')
And this is because in along with install_requires in setup.py
install_requires = [
"pkginfo",
"requests >= 2.3.0",
"requests-toolbelt >= 0.4.0",
"setuptools >= 0.7.0",
]
here is:
[metadata]
requires-dist =
requests
pkginfo
argparse; python_version == '2.6'
in setup.cfg and it's overrides value from setup.py.
If you will try use a wheel you will get the following error:
$ pip install twine-1.5.0-py2.py3-none-any.whl
Processing ./twine-1.5.0-py2.py3-none-any.whl
Collecting pkginfo (from twine==1.5.0)
Downloading pkginfo-1.2.1.tar.gz
Collecting requests (from twine==1.5.0)
Downloading requests-2.7.0-py2.py3-none-any.whl (470kB)
100% |################################| 471kB 595kB/s
Installing collected packages: pkginfo, requests, twine
Running setup.py install for pkginfo
Successfully installed pkginfo-1.2.1 requests-2.7.0 twine-1.5.0
$ twine upload twine-1.5.0-py2.py3-none-any.whl
Traceback (most recent call last):
...
File ".../site-packages/twine/commands/upload.py", line 33, in <module>
from requests_toolbelt.multipart import MultipartEncoder
ImportError: No module named requests_toolbelt.multipart
If you will try to build a wheel from the latest sources in master branch, you will see:
And this is because in along with install_requires in setup.py
here is:
in setup.cfg and it's overrides value from setup.py.
If you will try use a wheel you will get the following error: