From 897a33b58ceddb5d1772938213e311dabf13d0bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 1 Sep 2024 13:13:10 +0300 Subject: [PATCH 1/2] Move project metadata to pyproject.yaml --- pyproject.toml | 36 ++++++++++++++++++++++++++++++++++++ setup.cfg | 27 --------------------------- 2 files changed, 36 insertions(+), 27 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4146e572e9..ecf4da3272 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,39 @@ +[project] +name = "PlexTraktSync" +dynamic = ["version"] +description = "Plex-Trakt-Sync is a two-way-sync between trakt.tv and Plex Media Server" +readme = "README.md" +license = {file = "LICENSE"} +# See: https://pypi.python.org/pypi?:action=list_classifiers +classifiers = [ + "Development Status :: 5 - Production/Stable", + + # Indicate who your project is intended for + "Environment :: Console", + "Operating System :: OS Independent", + + # Pick your license as you wish (see also "license" above) + "License :: OSI Approved :: MIT License", + + # List of Python versions and their support status: + # https://en.wikipedia.org/wiki/History_of_Python#Support + # https://endoflife.date/python + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] + +[tool.setuptools.dynamic] +version = {attr = "plextraktsync.__version__"} + +[project.urls] +Homepage = "https://github.com/Taxel/PlexTraktSync" +Repository = "https://github.com/Taxel/PlexTraktSync.git" +Issues = "https://github.com/Taxel/PlexTraktSync/issues" + [build-system] requires = [ "setuptools-declarative-requirements>=1.3.0", diff --git a/setup.cfg b/setup.cfg index b82271f05e..5eefe7431e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,30 +1,3 @@ -[metadata] -name = PlexTraktSync -version = attr: plextraktsync.__version__ -description = Plex-Trakt-Sync is a two-way-sync between trakt.tv and Plex Media Server -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/Taxel/PlexTraktSync -license = MIT -license_file = LICENSE -classifiers = - # See: https://pypi.python.org/pypi?:action=list_classifiers - Environment :: Console - License :: OSI Approved :: MIT License - Operating System :: OS Independent - # List of Python versions and their support status: - # https://en.wikipedia.org/wiki/History_of_Python#Support - # https://endoflife.date/python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 -project_urls = - Bug Tracker = https://github.com/Taxel/PlexTraktSync/issues - [options] packages = plextraktsync From 12fbcc2de50c93f6c1725473409c439e9c347e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 1 Sep 2024 13:29:55 +0300 Subject: [PATCH 2/2] Move requires-python to pyproject --- pyproject.toml | 1 + setup.cfg | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ecf4da3272..b5ae09c949 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", ] +requires-python = ">=3.8" [tool.setuptools.dynamic] version = {attr = "plextraktsync.__version__"} diff --git a/setup.cfg b/setup.cfg index 5eefe7431e..cdcba9e011 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,7 +17,6 @@ packages = plextraktsync.trakt plextraktsync.util plextraktsync.watch -python_requires = >=3.8 include_package_data = True [options.packages.find]