-
Notifications
You must be signed in to change notification settings - Fork 15.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There's no 3.12.1 sdist on PyPI #7520
Comments
Thank you for breaking all AArch64 CI builds. Upload source! |
Can someone please fix this? |
Ibab788d0b31e2e1da145f20710233419b982b4c2 change moved it to 3.12.0 which is not installable on non-x86 architectures. protocolbuffers/protobuf#7520 Change-Id: Ib64cb6f3c2f83f506eb34649a51b7d4082dac3d9
* Update requirements from branch 'master' - downgrade protobuf to version available on all architectures Ibab788d0b31e2e1da145f20710233419b982b4c2 change moved it to 3.12.0 which is not installable on non-x86 architectures. protocolbuffers/protobuf#7520 Change-Id: Ib64cb6f3c2f83f506eb34649a51b7d4082dac3d9
Seriously? Not even "deal with it" answer? |
After all this is google, let's hope they do not suddenly deprecate/cancel Protobuf. 🙏 😂 |
@kamyar maybe this would get Hadoop and others to move from protobuf 2.5 to something modern ;D |
Windows builds are also broken for the same reason that @hrw posted above. |
3.12.1 was released and there is still no sdist on PyPI. |
Any updates? |
Looks like the last release with source distributions is 3.11.3 [Feb 3, 2020], followed by 3.12.0rc1 [May 4th, 2020] (at least according to pypi) which doesn't have an sdist. I didn't see anything in the diff v3.11.3...v3.12.0-rc1 that would manifest in this happening (not an expert in CMake or Bazel). And it doesn't look like it's the pypi servers issue, as some of the "latest" releases (at the time of this comment) have source distributions. Maybe something happened in the upload tool-chain over that 3 month gap (I would look, but I'm not a googler). 🤷 |
That is an excellent guess. I released the 3.12.x series using our internal tooling. This was my first time doing a release, and I did not realize that an important part of the Python release had failed. Sorry about that. I will look into how to get this working. |
@haberman - it appears that not only the sdist is missing but also some of the bdist wheels. The specific bdist I'm seeing missing is the py2.py3-none-any wheel. |
The script we are running for the release is here: https://github.com/protocolbuffers/protobuf/blob/master/python/release.sh It is currently failing on line 83 I believe: https://github.com/protocolbuffers/protobuf/blob/master/python/release.sh#L83 For some reason uploading to the test instance of PyPI is failing with the following error, without even prompting me for a password:
|
I remember debugging this for a while. Based on info I found from some searching, I created the following
|
Unless someone has a quick fix for this, I can try just commenting it out to skip the |
Now I am getting the following crash inside distutils:
Some searching turned up this, maybe it's because my |
I commented all lines out of my
|
Hey @haberman, do you know if there's a reason it's attempting to upload with - python setup.py sdist upload -r https://test.pypi.org/legacy/
+ python setup.py sdist
+ twine upload -r testpypi -u protobuf-wheel-test dist/* Which would not require a |
Thanks @di, that's very helpful. What would the equivalent https://github.com/protocolbuffers/protobuf/blob/master/python/release.sh#L104-L112 |
# Be sure to run build before sdist, because otherwise sdist will not include
# well-known types.
- python setup.py clean build sdist upload
+ python setup.py clean build sdist
+ twine upload -u protobuf-packages dist/*
# Be sure to run clean before bdist_xxx, because otherwise bdist_xxx will
# include files you may not want in the package. E.g., if you have built
# and tested with --cpp_implemenation, bdist_xxx will include the _message.so
# file even when you no longer pass the --cpp_implemenation flag. See:
# https://github.com/protocolbuffers/protobuf/issues/3042
- python setup.py clean build bdist_egg bdist_wheel upload
+ python setup.py clean build bdist_wheel
+ twine upload -u protobuf-packages dist/* (building .egg files with |
Also, you'll probably want to pass |
@haberman - can you confirm that this will also resolve the missing bdist? |
Thanks. Now I am getting:
|
@phoenixuprising I hope so, based on the twine commands above. But I know very little about the Python packaging ecosystem, so it's hard to say for sure. |
It's |
The missing sdist and non-any wheel are now available for 3.12.2: https://pypi.org/project/protobuf/3.12.2/#files Please let me know if any problems are still remaining. |
Works for me (Raspbian Linux). Thanks! |
Looks like Windows is still missing for Python 3.8. Am I mistaken? |
Hi @haberman
It happens to me using a linux alpine image. Not happening in my local machine (MacOS) |
Thanks for sorting out 3.12.2 release. Good side effect: I have learnt that OpenDev infrastructure has CI jobs to build wheels. So soon all jobs will speed up. |
@haberman can you add "none" wheel and source for previous 3.12.* releases as well? |
@haberman Thanks! 3.12.2 release works fine. |
Thanks @haberman for fixing - seeing the none-any wheels now for 3.12.2. Still missing for 3.12.1 and 3.12.0 but I should be able to pin to >= 3.12.2 and be fine for my purposes. |
fixed |
Ibab788d0b31e2e1da145f20710233419b982b4c2 change moved it to 3.12.0 which is not installable on non-x86 architectures. protocolbuffers/protobuf#7520 Change-Id: Ib64cb6f3c2f83f506eb34649a51b7d4082dac3d9
Patch Set 4: Looks like it is time for me to add AArch64 CI to requirements protocolbuffers/protobuf#7520 INFO:kolla.common.utils.openstack-base:ERROR: No matching distribution found for protobuf===3.12.0 (from -c /requirements/upper-constraints.txt (line 353)) Patch-set: 4
Is it possible to release the 3.12.0 sdist on PyPI? It helps FreeBSD port devel/py-protobuf to download the source from PyPI instead of changing to github.com assets.
Thanks!
The text was updated successfully, but these errors were encountered: