Skip to content
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

Metadata-Version is not 1.2 when Project-URL fields are present #1756

Closed
wrobell opened this issue May 1, 2019 · 3 comments

Comments

@wrobell
Copy link

commented May 1, 2019

I am uploaded the following project using twine 1.13.0

https://pypi.org/project/atimer/ (see setup.py at https://gitlab.com/wrobell/atimer)

This projects was uploaded with python setup.py upload in first place, but for last few releases twine was used.

Despite using the tool, the project_urls is ignored.

EDIT: btzen does not contain project_urls, so dropped from the description.

@di

This comment has been minimized.

Copy link
Member

commented May 1, 2019

The Project-URL metadata field was introduced in version 1.2, but your source distributions are indicating that their metadata version is 1.1 (even though they contain Project-URL fields):

$ tar xfO atimer-0.3.2.tar.gz atimer-0.3.2/PKG-INFO
Metadata-Version: 1.1
Name: atimer
Version: 0.3.2
Summary: atimer - timer library for asyncio
Home-page: https://wrobell.dcmod.org/atimer
Author: Artur Wroblewski
Author-email: wrobell@riseup.net
License: GPLv3+
Project-URL: Documentation, https://wrobell.dcmod.org/atimer/
Project-URL: Code, https://gitlab.com/wrobell/atimer
Project-URL: Issue tracker, https://gitlab.com/wrobell/atimer/issues
Description: The `atimer` library implements asynchronous timer Python coroutine
        based on POSIX timers. The coroutine can be used with Python `asyncio
        <https://docs.python.org/3/library/asyncio.html>`_ module API.

        The main features are

        - expires at regular intervals
        - tracks number of expirations if a long running task causes overrun
        - starts synchronized with system clock at the edge of an interval
        - measures time while system is suspended

        The `atimer` library is licensed under terms of GPL license, version 3, see
        `COPYING <https://www.gnu.org/licenses/gpl-3.0.en.html>`_ file for details.

Platform: UNKNOWN
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 4 - Beta

How are you building these distributions?

@wrobell

This comment has been minimized.

Copy link
Author

commented May 1, 2019

I am using python setup.py sdist.

For the completness

$ twine3 --version
twine version 1.13.0 (pkginfo: 1.5.0.1, requests: 2.21.0, setuptools: 41.0.1,
requests-toolbelt: 0.9.1, tqdm: 4.28.1)
@di

This comment has been minimized.

Copy link
Member

commented May 1, 2019

Looks like this is a bug in setuptools, it's not forcing the 1.2 version when project URLs are present.

I'm going to transfer this issue to that repo. In the meantime, you can add the Maintainer or Maintainer-Email fields to force the 1.2 version.

@di di changed the title project_urls is being ignored on PyPI despite project uploaded with twine Metadata-Version is not 1.2 when Project-URL fields are present May 1, 2019

@di di transferred this issue from pypa/warehouse May 1, 2019

venthur added a commit to venthur/setuptools that referenced this issue May 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.