Current status of ``setup.py register --list-classifiers``
Hi, I tried getting a list of Trove Classifiers by running ``setup.py register --list-classifiers`` command, the HTML of https://upload.pypi.org/legacy/ was displayed on the console. Does this mean that the ``--list-classifiers`` option was broken when the PyPI endpoint changed? Or was it made intentional change? Either way, I could not find such a report or announcement. I confirmed the execution of ``setup.py register --list-classifiers`` with the following combinations. Python-3.5 + distutils setup: OK Python-3.5 + setuptools-26 setup: OK Python-3.5 + setuptools-27 setup: NG Python-3.5 + setuptools-38 setup: NG Python-3.6 + distutils setup: NG Python-3.6 + setuptools-26 setup: NG Python-3.6 + setuptools-27 setup: NG Python-3.6 + setuptools-38 setup: NG Also, in any of the above combinations, it was OK if I specified https://pypi.python.org/pypi as the repository. (BTW, although document says "The --repository or -r option lets you specify a PyPI server different from the default", if there is no URL specified in ``.pypirc`` it will display "ValueError: <URL> not found in .pypirc") So, in my understanding, ``register --list-classifiers`` does not work as expected. Regards, -- Takayuki Shimizukawa
Yes, it seems broken. With the default repository of:
https://upload.pypi.org/legacy/
this would look at:
https://upload.pypi.org/legacy/?:action=list_classifiers
but the correct location would be:
https://pypi.org/pypi?:action=list_classifiers
Given that the `register` command is unnecessary for pypi.org, it
might make more sense to deprecate it than attempt to fix it.
D.
On Mon, Jan 29, 2018 at 4:14 PM, Takayuki Shimizukawa
Hi,
I tried getting a list of Trove Classifiers by running ``setup.py register --list-classifiers`` command, the HTML of https://upload.pypi.org/legacy/ was displayed on the console. Does this mean that the ``--list-classifiers`` option was broken when the PyPI endpoint changed? Or was it made intentional change? Either way, I could not find such a report or announcement.
I confirmed the execution of ``setup.py register --list-classifiers`` with the following combinations.
Python-3.5 + distutils setup: OK Python-3.5 + setuptools-26 setup: OK Python-3.5 + setuptools-27 setup: NG Python-3.5 + setuptools-38 setup: NG
Python-3.6 + distutils setup: NG Python-3.6 + setuptools-26 setup: NG Python-3.6 + setuptools-27 setup: NG Python-3.6 + setuptools-38 setup: NG
Also, in any of the above combinations, it was OK if I specified https://pypi.python.org/pypi as the repository.
(BTW, although document says "The --repository or -r option lets you specify a PyPI server different from the default", if there is no URL specified in ``.pypirc`` it will display "ValueError: <URL> not found in .pypirc")
So, in my understanding, ``register --list-classifiers`` does not work as expected.
Regards, -- Takayuki Shimizukawa
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig
I see.
I have no objection to deprecate the register command.
In the future (already?), that means we can not get Trove Classifiers list
on the command line with setup.py (I do not know how much this command was
used...).
Either way, I got it clearer.
Thanks.
Regards,
On Tue, Jan 30, 2018 at 7:51 AM Dustin Ingram
Yes, it seems broken. With the default repository of:
https://upload.pypi.org/legacy/
this would look at:
https://upload.pypi.org/legacy/?:action=list_classifiers
but the correct location would be:
https://pypi.org/pypi?:action=list_classifiers
Given that the `register` command is unnecessary for pypi.org, it might make more sense to deprecate it than attempt to fix it.
D.
On Mon, Jan 29, 2018 at 4:14 PM, Takayuki Shimizukawa
wrote: Hi,
I tried getting a list of Trove Classifiers by running ``setup.py register --list-classifiers`` command, the HTML of https://upload.pypi.org/legacy/ was displayed on the console. Does this mean that the ``--list-classifiers`` option was broken when the PyPI endpoint changed? Or was it made intentional change? Either way, I could not find such a report or announcement.
I confirmed the execution of ``setup.py register --list-classifiers`` with the following combinations.
Python-3.5 + distutils setup: OK Python-3.5 + setuptools-26 setup: OK Python-3.5 + setuptools-27 setup: NG Python-3.5 + setuptools-38 setup: NG
Python-3.6 + distutils setup: NG Python-3.6 + setuptools-26 setup: NG Python-3.6 + setuptools-27 setup: NG Python-3.6 + setuptools-38 setup: NG
Also, in any of the above combinations, it was OK if I specified https://pypi.python.org/pypi as the repository.
(BTW, although document says "The --repository or -r option lets you specify a PyPI server different from the default", if there is no URL specified in ``.pypirc`` it will display "ValueError: <URL> not found in .pypirc")
So, in my understanding, ``register --list-classifiers`` does not work as expected.
Regards, -- Takayuki Shimizukawa
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig
On 30 January 2018 at 09:10, Takayuki Shimizukawa
I see. I have no objection to deprecate the register command. In the future (already?), that means we can not get Trove Classifiers list on the command line with setup.py (I do not know how much this command was used...).
Right, but you can instead get them directly from the PyPI API with $ python3 -c "from urllib.request import urlopen; print(urlopen('https://pypi.org/pypi?:action=list_classifiers').read().decode())" (curl/wget/etc will also work, but the advantage of the above version is that it only requires the Python 3 standard library) Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
$ python3 -c "from urllib.request import urlopen; print(urlopen(' https://pypi.org/pypi?:action=list_classifiers').read().decode())"
Yeah, it is bit long... anyway, Thanks!
--
Takayuki Shimizukawa
On Tue, Jan 30, 2018 at 1:05 PM Nick Coghlan
I see. I have no objection to deprecate the register command. In the future (already?), that means we can not get Trove Classifiers
On 30 January 2018 at 09:10, Takayuki Shimizukawa
wrote: list on the command line with setup.py (I do not know how much this command was used...).
Right, but you can instead get them directly from the PyPI API with
$ python3 -c "from urllib.request import urlopen; print(urlopen(' https://pypi.org/pypi?:action=list_classifiers').read().decode())"
(curl/wget/etc will also work, but the advantage of the above version is that it only requires the Python 3 standard library)
Cheers, Nick.
-- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
participants (3)
-
Dustin Ingram
-
Nick Coghlan
-
Takayuki Shimizukawa