my-PV 0.0.1.dev3__tar.gz → 0.0.1.dev4__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.
Files changed (27) hide show
  1. my_pv-0.0.1.dev4/.github/dependabot.yml +15 -0
  2. my_pv-0.0.1.dev4/.github/workflows/check-format.yml +11 -0
  3. my_pv-0.0.1.dev4/.github/workflows/pypi-publish.yml +30 -0
  4. {my_pv-0.0.1.dev3 → my_pv-0.0.1.dev4}/PKG-INFO +1 -1
  5. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/__init__.py +1 -1
  6. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/_version.py +2 -2
  7. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/__init__.py +1 -1
  8. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/connection.py +1 -1
  9. {my_pv-0.0.1.dev3 → my_pv-0.0.1.dev4}/pyproject.toml +4 -7
  10. {my_pv-0.0.1.dev3 → my_pv-0.0.1.dev4}/.gitignore +0 -0
  11. {my_pv-0.0.1.dev3 → my_pv-0.0.1.dev4}/LICENSE +0 -0
  12. {my_pv-0.0.1.dev3 → my_pv-0.0.1.dev4}/README.md +0 -0
  13. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/000000.json +0 -0
  14. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/140100.json +0 -0
  15. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/160150.json +0 -0
  16. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/160151.json +0 -0
  17. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/160152.json +0 -0
  18. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/200100.json +0 -0
  19. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/200103.json +0 -0
  20. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/200110.json +0 -0
  21. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/200113.json +0 -0
  22. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/200300.json +0 -0
  23. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/200310.json +0 -0
  24. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/210300.json +0 -0
  25. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/configs/210900.json +0 -0
  26. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/exceptions.py +0 -0
  27. {my_pv-0.0.1.dev3/mypv → my_pv-0.0.1.dev4/my_pv}/py.typed +0 -0
@@ -0,0 +1,15 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "pip" # See documentation for possible values
9
+ directory: "/" # Location of package manifests
10
+ schedule:
11
+ interval: "weekly"
12
+ - package-ecosystem: "github-actions"
13
+ directory: "/"
14
+ schedule:
15
+ interval: "weekly"
@@ -0,0 +1,11 @@
1
+ name: Check Python code format
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ linter_name:
7
+ name: ruff check
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v6
11
+ - uses: astral-sh/ruff-action@v3
@@ -0,0 +1,30 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ deploy:
9
+ runs-on: ubuntu-latest
10
+ environment: pypi
11
+ permissions:
12
+ id-token: write # required for OIDC
13
+ contents: read
14
+
15
+ steps:
16
+ - uses: actions/checkout@v6
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v6
19
+ with:
20
+ python-version: '3.x'
21
+ - name: Install dependencies
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ pip install build
25
+ - name: Build package
26
+ run: python -m build
27
+ - name: Publish package
28
+ uses: pypa/gh-action-pypi-publish@release/v1
29
+ with:
30
+ print-hash: true
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: my-PV
3
- Version: 0.0.1.dev3
3
+ Version: 0.0.1.dev4
4
4
  Summary: Library to interface with my-PV devices.
5
5
  Project-URL: Homepage, https://my-pv.com/
6
6
  Project-URL: Repository, https://github.com/my-PV/py-mypv
@@ -20,7 +20,7 @@ import logging
20
20
  import re
21
21
  from abc import ABC, abstractmethod
22
22
 
23
- from mypv.exceptions import MyPVConnectionError
23
+ from my_pv.exceptions import MyPVConnectionError
24
24
 
25
25
  from .configs import read_config
26
26
  from .connection import (
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.0.1.dev3'
22
- __version_tuple__ = version_tuple = (0, 0, 1, 'dev3')
21
+ __version__ = version = '0.0.1.dev4'
22
+ __version_tuple__ = version_tuple = (0, 0, 1, 'dev4')
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -68,7 +68,7 @@ async def read_config(serial_number: str) -> dict | None:
68
68
  for config_file in config_files:
69
69
  try:
70
70
  text = await asyncio.get_running_loop().run_in_executor(
71
- None, importlib.resources.read_text, "mypv.configs", config_file
71
+ None, importlib.resources.read_text, "my_pv.configs", config_file
72
72
  )
73
73
 
74
74
  if text is not None and len(text) > 0:
@@ -27,7 +27,7 @@ from urllib.parse import urlencode, urlunsplit
27
27
  from aiohttp import ClientSession
28
28
  from aiohttp.client_exceptions import ClientConnectionError, ConnectionTimeoutError
29
29
 
30
- from mypv.exceptions import MyPVAuthenticationError, MyPVConnectionError
30
+ from my_pv.exceptions import MyPVAuthenticationError, MyPVConnectionError
31
31
 
32
32
  logger = logging.getLogger(__name__)
33
33
 
@@ -3,10 +3,7 @@ requires = ["hatchling>=1.29", "hatch-vcs"]
3
3
  build-backend = "hatchling.build"
4
4
 
5
5
  [tool.hatch.build.hooks.vcs]
6
- version-file = "mypv/_version.py"
7
-
8
- [tool.hatch.build.targets.sdist]
9
- packages = [ "mypv" ]
6
+ version-file = "my_pv/_version.py"
10
7
 
11
8
  [tool.hatch.version]
12
9
  source = "vcs"
@@ -41,10 +38,10 @@ Issues = "https://github.com/my-PV/py-mypv/issues"
41
38
  [tool.isort]
42
39
  # https://github.com/PyCQA/isort/wiki/isort-Settings
43
40
  profile = "black"
44
- skip = "mypv/_version.py"
41
+ skip = "my_pv/_version.py"
45
42
 
46
43
  [tool.black]
47
- exclude = 'mypv/_version.py'
44
+ exclude = 'my_pv/_version.py'
48
45
 
49
46
  [tool.pylint]
50
47
  ignore = "_version.py"
@@ -52,7 +49,7 @@ recursive = "y"
52
49
 
53
50
  [tool.mypy]
54
51
  python_version = "3.14"
55
- mypy_path = "mypv"
52
+ mypy_path = "my_pv"
56
53
 
57
54
  [[tool.mypy.overrides]]
58
55
  module = ["*._version"]
File without changes
File without changes
File without changes