pyatv
pyatv copied to clipboard
Modernize packaging
- Move static metadata to
pyproject.toml - Adopt PEP 639 license expression https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-and-license-files
- Remove
zip_safe. It's considered obsolete. - Remove
platforms="any". It's basically unused at this point. The better option is the"Operating System :: OS Independent"classifier which is already present. - Remove explicit
include_package_data=True. This is the default forpyproject.tomlbased configs in setuptools. - Remove
setup_requires. This has been replaced bybuild-system.requires. Furthermorepytest-runnerisn't required for the build itself. - Remove
test_suiteandtests_require. Running tests via setuptools has long been deprecated and isn't used here anyways. - Remove
download_url. This can be obtained from PyPI and is unnecessary. - Replace
python setup.pycall withpython -m build. - Remove
tool.black.target-version. Black is able to infer that fromproject.requires-python.
Metadata diff
...
-Author: Pierre Ståhl
-Author-email: [email protected]
+Author-email: Pierre Ståhl <[email protected]>
-License: MIT
+License-Expression: MIT
-Home-page: https://pyatv.dev
-Download-URL: https://github.com/postlund/pyatv/archive/refs/tags/v0.16.0.zip
+Project-URL: Homepage, https://pyatv.dev
...
-Platform: any
...
-Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
...
@postlund This is ready now as well.