Skip to content

Commit

Permalink
Merge pull request #36 from Erotemic/add_dunder_version
Browse files Browse the repository at this point in the history
Move __version__ single source of truth to package __init__
  • Loading branch information
iwalton3 authored Jan 21, 2024
2 parents 5692966 + 0236068 commit 913322c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 24 deletions.
2 changes: 2 additions & 0 deletions jellyfin_apiclient_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#################################################################################################

__version__ = '1.9.2'


class NullHandler(logging.Handler):
def emit(self, record):
Expand Down
33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[build-system]
requires = [ "setuptools>=61.0.0",]

[project]
name = "jellyfin-apiclient-python"
authors = [
{name = "Ian Walton", email = "[email protected]"},
]
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__"}
24 changes: 0 additions & 24 deletions setup.py

This file was deleted.

0 comments on commit 913322c

Please sign in to comment.