Skip to content

build: fix metainfo#52

Open
e-kwsm wants to merge 1 commit into
cmacmackin:masterfrom
e-kwsm:patch-1
Open

build: fix metainfo#52
e-kwsm wants to merge 1 commit into
cmacmackin:masterfrom
e-kwsm:patch-1

Conversation

@e-kwsm

@e-kwsm e-kwsm commented Jun 19, 2026

Copy link
Copy Markdown

Please use a simple string containing a SPDX expression for project.license. You can also use project.license-files. (Both options available on setuptools>=77.0.0).

By 2027-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.

See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.



Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.

Available configuration options are listed in:
https://setuptools.pypa.io/en/latest/userguide/declarative_config.html

This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.

See pypa/setuptools#5011 for details.



Please consider removing the following classifiers in favor of a SPDX license expression:

License :: OSI Approved :: GNU General Public License v3 (GPLv3)

See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.


@ZedThree

Copy link
Copy Markdown
Collaborator

Thanks @e-kwsm! I think we could also just do away with setup.cfg completely too. Would you mind also moving any remaining config into pyproject.toml?

> ********************************************************************************
> Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
>
> By 2027-Feb-18, you need to update your project and remove deprecated calls
> or your builds will no longer be supported.
>
> See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
> ********************************************************************************

> ********************************************************************************
> Usage of dash-separated 'description-file' will not be supported in future
> versions. Please use the underscore name 'description_file' instead.
>
>
> Available configuration options are listed in:
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
>
> This deprecation is overdue, please update your project and remove deprecated
> calls to avoid build errors in the future.
>
> See pypa/setuptools#5011 for details.
> ********************************************************************************

> ********************************************************************************
> Please consider removing the following classifiers in favor of a SPDX license expression:
>
> License :: OSI Approved :: GNU General Public License v3 (GPLv3)
>
> See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
> ********************************************************************************
@ZedThree

Copy link
Copy Markdown
Collaborator

Lovely, thanks @e-kwsm!

@e-kwsm

e-kwsm commented Jun 19, 2026

Copy link
Copy Markdown
Author

description-file = README.rst

README.rst is gone and
readme = "README.md"

is valid, so I just removed the file.

Comment thread pyproject.toml
]
keywords = ["Markdown", "typesetting", "include", "plugin", "extension"]
license = {text = "GNU General Public License v3 (GPLv3)"}
license = "GPL-3.0-only"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this seems to require setuptools>=76.0.

@ZedThree

Copy link
Copy Markdown
Collaborator

Bah, this is failing on py3.8. I'm not sure if this change also requires us to drop support for 3.8. I would guess that it's due to using an older setuptools, but it looks like it's failing when parsing pyproject.toml, so it might not even be possible to specify a new version of setuptools?

We should at least bump the required setuptools version to 77.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants