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
<shimizuk...@gmail.com> 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
>
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to