Skip to content

Restore package classifiers and metadata lost in pyproject.toml migration - #140

Open
Rehan30g wants to merge 1 commit into
TkTech:masterfrom
Rehan30g:fix/restore-project-metadata
Open

Restore package classifiers and metadata lost in pyproject.toml migration#140
Rehan30g wants to merge 1 commit into
TkTech:masterfrom
Rehan30g:fix/restore-project-metadata

Conversation

@Rehan30g

Copy link
Copy Markdown

Fixes #131.

The migration from setup.py to pyproject.toml in #124 dropped a
chunk of the project metadata that used to be set in setup.py:
classifiers, license, author, and keywords. This included the
License :: OSI Approved :: MIT License classifier, which is what
the PyPI license badge in the README depends on to render (hence the
"license missing???" report). It also left the placeholder
description = "Add your description here" in place.

This restores that metadata in [project]:

  • license, authors, keywords, classifiers (carried over from
    the old setup.py)
  • A real description
  • [project.urls] for the homepage and docs, since those were also
    present in the old setup.py via url=

Verified locally that pip install -e . and python -m build --sdist
both produce a PKG-INFO/egg-info with the classifiers and license
populated correctly, and the full test suite still passes.

…tion

The switch from setup.py to pyproject.toml in TkTech#124 dropped the
classifiers, license, author, and keyword metadata that used to be
set in setup.py, including the OSI license classifier that the
README's PyPI license badge depends on. Also fixes the leftover
'Add your description here' placeholder description.

Closes TkTech#131
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.

license missing???

1 participant