-
-
Notifications
You must be signed in to change notification settings - Fork 682
Open
Description
While setup.cfg can be completely replaced in favor of pyproject.toml, some parts of setup.py are definitely tricky and require attention. Good news is that we can keep both setup.py and pyproject.toml and progressively transition from the former to the latter.
setup.cfg:[rstcheck]section can be moved over topyproject.tomlaccording to the documentation.[metadata]section can be removed asREADME.mdis already used inlong_descriptionargument insetup.py.[sdist]:formats=gztarentry can be removed as this is already the default value. I'm not sure whyowner=rootandgroup=rootare needed, it has been added in f7a4002, it can probably be removed
setup.py:- The following
setuparguments can be moved over topyproject.tomlnameversionauthorauthor_emailurldownload_urllicensedescriptionlong_descriptionlong_description_content_typeis automatically detected so not needed anymorekeywordsclassifierspython_requiresinstall_requiresextras_requirecould either use quoted keys to keep current names inpyproject.toml, or switch to more standard names (this would be a breaking change, maybe as a follow-up task)packagesis not needed as build backend will automatically discover themscripts
data_filesis the trickiest part as this uses customsmart_install_dataclass, this will be investigated while switching fromdistutilstosetuptools.smart_install_libcould also be replaced, however it will require work around versioning.
- The following
Metadata
Metadata
Assignees
Labels
No labels