pyconarr 0.2.2a12__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyconarr
3
- Version: 0.2.2a12
3
+ Version: 0.3.1
4
4
  Summary:
5
5
  License: GPLv3
6
6
  Author: Clem
@@ -13,7 +13,6 @@ Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
15
  Requires-Dist: fastapi (==0.110.0)
16
- Requires-Dist: pyctuator (>=1.2.0,<2.0.0)
17
16
  Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
18
17
  Requires-Dist: requests (>=2.31.0,<3.0.0)
19
18
  Requires-Dist: setuptools (>=69.1.1,<70.0.0)
@@ -0,0 +1,11 @@
1
+ from importlib import metadata
2
+
3
+ import yaml
4
+
5
+
6
+ def get_version():
7
+ return metadata.version("pyconarr")
8
+
9
+
10
+ with open("config/pyconarr.yml", "r") as f:
11
+ config = yaml.safe_load(f)
@@ -0,0 +1,7 @@
1
+ import logging
2
+
3
+ from pyconarr.libs.config import config
4
+ from pyconarr.libs.route import app
5
+
6
+ logging.info("Starting app " + app.title)
7
+ logging.debug("Jellyfin server URL : " + config["jellyfin"]["url"])
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyconarr"
3
- version = "0.2.2a12"
3
+ version = "0.3.1"
4
4
  readme = "README.md"
5
5
  description = ""
6
6
  license = "GPLv3"
@@ -16,7 +16,6 @@ toml = "^0.10.2"
16
16
  setuptools = "^69.1.1"
17
17
  requests = "^2.31.0"
18
18
  pyyaml = "^6.0.1"
19
- pyctuator = "^1.2.0"
20
19
 
21
20
  [tool.poetry.group.dev.dependencies]
22
21
  pytest = "^8.0.0"
@@ -1,20 +0,0 @@
1
- import os
2
- from importlib import metadata
3
- from pathlib import Path
4
-
5
- import toml
6
- import yaml
7
-
8
-
9
- def get_version():
10
- try:
11
- my_version = metadata.version("pyconarr")
12
- except metadata.PackageNotFoundError:
13
- my_version = toml.load(Path(os.getcwd()) / "pyproject.toml")["tool"]["poetry"][
14
- "version"
15
- ]
16
- return my_version
17
-
18
-
19
- with open("config/pyconarr.yml", "r") as f:
20
- config = yaml.safe_load(f)
@@ -1,17 +0,0 @@
1
- import logging
2
-
3
- from pyconarr.libs.config import config
4
- from pyconarr.libs.route import app
5
- from pyctuator.pyctuator import Pyctuator
6
-
7
- logging.info("Starting app " + app.title)
8
- logging.debug("Jellyfin server URL : " + config["jellyfin"]["url"])
9
-
10
-
11
- Pyctuator(
12
- app,
13
- config["pyctuator"]["name"],
14
- app_url=config["pyctuator"]["app_url"],
15
- pyctuator_endpoint_url=config["pyctuator"]["endpoint_url"],
16
- registration_url=config["pyctuator"]["registration_url"],
17
- )
File without changes
File without changes