Closed illfang closed 5 years ago
Broke our build as well. Downgrading to 3.0.0 seems to work as a temporary solution.
Hello @illfang, @kblomster,
Thanks for bringing this to our attention. This was the first time I used twine
to execute the release and I think I found the issue.
It looks like I need to run the following commands:
python setup.py sdist
python setup.py sdist bdist_wheel
python3 setup.py sdist
python3 setup.py sdist bdist_wheel
twine check dist/*
twine upload dist/*whl dist/*gz
When I did the release yesterday, I did not execute the python3
commands nor the python setup.py sdist
commands. I'm still unclear on how the release 3.1 was modified. Generally, I see an error when trying to upload a package that already exists on PyPi.
Could you all please try v3.2.1. I tried to reproduce using pipenv
and it looks like v3.2.1 has correctly uploaded for both python 2 & 3.
With best regards,
Elmer
pipenv requirement python-http-client = ">=3.2.1"
works for me.
Thanks for verifying @michi88!
I also went back and re-uploaded the missing 3.2.0 files.
I also verified that I can not re-upload an existing file, so I'm still not sure why the 3.1.0 hash would have changed.
@thinkingserious Thank you for the fast release of the 3.2.1 version. Now everything works again for us and in my opinion the issue can be closed.
Thanks for the follow up @illfang!
I ask pipenv to re-generate the Pipfile.lock and fix the error from my side.
pipenv lock
then install the packages again
pipenv sync
Issue Summary
About when version 3.2.0 got released our build using 3.1.0 broke. We are using pipenv to install the packages and pipenv started to complain that the sha256 hash of 3.1.0 has changed:
Furthermore, it is not possible to install 3.2.0 using pipenv
A look at the pypi repository ( https://pypi.org/simple/python-http-client/ ) show the following:
Looking at the .whl packages:
python-http-client pypi repository
I'm wondering: did the release for 3.2.0 override the old 3.1.0 python 3 package instead of being released as a 3.2.0 python 3 package?
Steps to Reproduce
$ pipenv install --verbose python-http-client
``` pipenv install --verbose python-http-client Creating a Pipfile for this project… Installing python-http-client… ⠋ Installing...Installing 'python-http-client' $ ['/home/user/.local/share/virtualenvs/user-39SWxFAg/bin/pip', 'install', '--verbose', '--upgrade', 'python-http-client', '-i', 'https://pypi.org/simple'] Adding python-http-client to Pipfile's [packages]… ✔ Installation Succeeded Pipfile.lock not found, creating… Locking [dev-packages] dependencies… Locking [packages] dependencies… ✔ Success! Using pip: -i https://pypi.org/simple Using pip: -i https://pypi.org/simple Using pip: -i https://pypi.org/simple ROUND 1 Current constraints: python-http-client Finding the best candidates: found candidate python-http-client==3.2.0 (constraint wasTechnical details:
$ pipenv --support
Pipenv version: `'2018.11.26'` Pipenv location: `'/usr/local/lib/python3.6/site-packages/pipenv'` Python location: `'/usr/local/bin/python'` Python installations found: - `3.6.9`: `/usr/local/bin/python` - `3.6.9`: `/usr/local/bin/python3.6m` - `3.5.3`: `/usr/bin/python3` - `3.5.3`: `/usr/bin/python3.5m` - `2.7.13`: `/usr/bin/python` PEP 508 Information: ``` {'implementation_name': 'cpython', 'implementation_version': '3.6.9', 'os_name': 'posix', 'platform_machine': 'x86_64', 'platform_python_implementation': 'CPython', 'platform_release': '4.14.131-linuxkit', 'platform_system': 'Linux', 'platform_version': '#1 SMP Fri Jul 19 12:31:17 UTC 2019', 'python_full_version': '3.6.9', 'python_version': '3.6', 'sys_platform': 'linux'} ``` System environment variables: - `PATH` - `HOSTNAME` - `TERM` - `LANG` - `GPG_KEY` - `PYTHON_VERSION` - `PYTHON_PIP_VERSION` - `PYTHON_GET_PIP_URL` - `PYTHON_GET_PIP_SHA256` - `HOME` - `PIP_DISABLE_PIP_VERSION_CHECK` - `PYTHONDONTWRITEBYTECODE` - `PIP_SHIMS_BASE_MODULE` - `PIP_PYTHON_PATH` - `PYTHONFINDER_IGNORE_UNSUPPORTED` Pipenv–specific environment variables: Debug–specific environment variables: - `PATH`: `/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/user/.local/bin` - `LANG`: `C.UTF-8` ---------------------------