diff --git a/jellyfin_apiclient_python/__init__.py b/jellyfin_apiclient_python/__init__.py index 0ba94cc..0e425b4 100644 --- a/jellyfin_apiclient_python/__init__.py +++ b/jellyfin_apiclient_python/__init__.py @@ -8,6 +8,8 @@ ################################################################################################# +__version__ = '1.9.2' + class NullHandler(logging.Handler): def emit(self, record): diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0558f1e --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,33 @@ +[build-system] +requires = [ "setuptools>=61.0.0",] + +[project] +name = "jellyfin-apiclient-python" +authors = [ + {name = "Ian Walton", email = "iwalton3@gmail.com"}, +] +dynamic = ["version"] +description = "Python API client for Jellyfin" +readme = "README.md" +license = {file = "LICENSE.md"} +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: OS Independent", +] +requires-python='>=3.6' +dependencies=[ + 'requests', + 'urllib3', + 'websocket_client', + 'certifi' +] + +[project.urls] +Repository = "https://github.com/iwalton3/jellyfin-apiclient-python" + +[tool.setuptools] +packages = ["jellyfin_apiclient_python"] + +[tool.setuptools.dynamic] +version = {attr = "jellyfin_apiclient_python.__version__"} diff --git a/setup.py b/setup.py deleted file mode 100644 index 713aa81..0000000 --- a/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -from setuptools import setup - -with open("README.md", "r") as fh: - long_description = fh.read() - -setup( - name='jellyfin-apiclient-python', - version='1.9.2', - author="Ian Walton", - author_email="iwalton3@gmail.com", - description="Python API client for Jellyfin", - license='GPLv3', - long_description=open('README.md').read(), - long_description_content_type="text/markdown", - url="https://github.com/iwalton3/jellyfin-apiclient-python", - packages=['jellyfin_apiclient_python'], - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", - "Operating System :: OS Independent", - ], - python_requires='>=3.6', - install_requires=['requests', 'urllib3', 'websocket_client', 'certifi'] -)