Manual upload of RPM files no longer works
All, I just tried to upload some RPM files using the "Files" section in PyPI. I get the following response: Gone (This API has been deprecated and removed from legacy PyPI in favor of using the APIs available in the new PyPI.org implementation of PyPI (located at https://pypi.org/). For more information about migrating your use of this API to PyPI.org, please see https://packaging.python.org/guides/migrating-to-pypi-org/#uploading. For more information about the sunsetting of this API, please see https://mail.python.org/pipermail/distutils-sig/2017-June/030766.html) I have used twine for wheels and source distributions without any difficulty. But it refuses to support RPM files: ValueError: Unknown distribution format: 'cx_Oracle-6.0rc2-py26-1.x86_64.rpm' Is there any way to get these uploaded now? I can't use bdist_rpm upload and I'd like to verify the files *before* they are uploaded, not afterwards! Thoughts? Anthony
If I remember correctly, RPM, DMG, and DPKG (if there was a DPKG distutils option) were disabled from uploading to pypi. I believe the recommendation is to use manylinux1 wheels or to set up private distro specific repositories. From: Distutils-SIG [mailto:distutils-sig-bounces+tritium-list=sdamon.com@python.org] On Behalf Of Anthony Tuininga Sent: Monday, July 24, 2017 4:17 PM To: distutils-sig@python.org Subject: [Distutils] Manual upload of RPM files no longer works All, I just tried to upload some RPM files using the "Files" section in PyPI. I get the following response: Gone (This API has been deprecated and removed from legacy PyPI in favor of using the APIs available in the new PyPI.org implementation of PyPI (located at https://pypi.org/). For more information about migrating your use of this API to PyPI.org, please see https://packaging.python.org/guides/migrating-to-pypi-org/#uploading. For more information about the sunsetting of this API, please see https://mail.python.org/pipermail/distutils-sig/2017-June/030766.html) I have used twine for wheels and source distributions without any difficulty. But it refuses to support RPM files: ValueError: Unknown distribution format: 'cx_Oracle-6.0rc2-py26-1.x86_64.rpm' Is there any way to get these uploaded now? I can't use bdist_rpm upload and I'd like to verify the files *before* they are uploaded, not afterwards! Thoughts? Anthony
On 26 July 2017 at 13:05, Alex Walters <tritium-list@sdamon.com> wrote:
If I remember correctly, RPM, DMG, and DPKG (if there was a DPKG distutils option) were disabled from uploading to pypi. I believe the recommendation is to use manylinux1 wheels or to set up private distro specific repositories.
Yep, cutting back the supported file types in PyPI to only those used by automated Python level clients (i.e. sdist, wheel, egg) was a deliberate design decision: https://www.python.org/dev/peps/pep-0527/ That policy change means that platform specific installers (RPMs, MSI, DMG, Windows exes) need to be hosted outside PyPI now, and the message reported from twine about RPM being an unknown distribution format for the Python level tooling is an accurate one. Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
participants (3)
-
Alex Walters
-
Anthony Tuininga
-
Nick Coghlan