pybutt 2.0.0__tar.gz → 2.0.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.
Files changed (44) hide show
  1. {pybutt-2.0.0/pybutt.egg-info → pybutt-2.0.1}/PKG-INFO +2 -1
  2. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/cli/app.py +5 -4
  3. {pybutt-2.0.0 → pybutt-2.0.1/pybutt.egg-info}/PKG-INFO +2 -1
  4. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt.egg-info/requires.txt +1 -0
  5. {pybutt-2.0.0 → pybutt-2.0.1}/pyproject.toml +2 -1
  6. {pybutt-2.0.0 → pybutt-2.0.1}/LICENSE +0 -0
  7. {pybutt-2.0.0 → pybutt-2.0.1}/README.md +0 -0
  8. {pybutt-2.0.0 → pybutt-2.0.1}/old_tests/app.py +0 -0
  9. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/__init__.py +0 -0
  10. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/cli/__init__.py +0 -0
  11. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/cli/combine_command.py +0 -0
  12. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/cli/export_command.py +0 -0
  13. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/cli/import_command.py +0 -0
  14. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/cli/inspect_command.py +0 -0
  15. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/cli/purge_command.py +0 -0
  16. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/core/__init__.py +0 -0
  17. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/core/base.py +0 -0
  18. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/core/config.py +0 -0
  19. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/core/logobs.py +0 -0
  20. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/exceptions.py +0 -0
  21. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/files/__init__.py +0 -0
  22. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/files/combine.py +0 -0
  23. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/files/inspect.py +0 -0
  24. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/files/manifest.py +0 -0
  25. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/io/__init__.py +0 -0
  26. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/io/combiner.py +0 -0
  27. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/io/exporter.py +0 -0
  28. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/io/importer.py +0 -0
  29. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt/io/purger.py +0 -0
  30. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt.egg-info/SOURCES.txt +0 -0
  31. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt.egg-info/dependency_links.txt +0 -0
  32. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt.egg-info/entry_points.txt +0 -0
  33. {pybutt-2.0.0 → pybutt-2.0.1}/pybutt.egg-info/top_level.txt +0 -0
  34. {pybutt-2.0.0 → pybutt-2.0.1}/setup.cfg +0 -0
  35. {pybutt-2.0.0 → pybutt-2.0.1}/tests/conftest.py +0 -0
  36. {pybutt-2.0.0 → pybutt-2.0.1}/tests/test_cli.py +0 -0
  37. {pybutt-2.0.0 → pybutt-2.0.1}/tests/test_cli_help.py +0 -0
  38. {pybutt-2.0.0 → pybutt-2.0.1}/tests/test_combiner.py +0 -0
  39. {pybutt-2.0.0 → pybutt-2.0.1}/tests/test_core.py +0 -0
  40. {pybutt-2.0.0 → pybutt-2.0.1}/tests/test_exporter.py +0 -0
  41. {pybutt-2.0.0 → pybutt-2.0.1}/tests/test_files.py +0 -0
  42. {pybutt-2.0.0 → pybutt-2.0.1}/tests/test_import_retry_logic.py +0 -0
  43. {pybutt-2.0.0 → pybutt-2.0.1}/tests/test_logobs.py +0 -0
  44. {pybutt-2.0.0 → pybutt-2.0.1}/tests/test_purge.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pybutt
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Requires-Python: >=3.12
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -16,6 +16,7 @@ Requires-Dist: ruff; extra == "dev"
16
16
  Requires-Dist: isort; extra == "dev"
17
17
  Requires-Dist: pytest; extra == "dev"
18
18
  Requires-Dist: build; extra == "dev"
19
+ Requires-Dist: twine; extra == "dev"
19
20
  Dynamic: license-file
20
21
 
21
22
  # PyButt
@@ -1,6 +1,5 @@
1
1
  import getpass
2
- import tomllib
3
- from pathlib import Path
2
+ from importlib.metadata import PackageNotFoundError, version
4
3
 
5
4
  import typer
6
5
 
@@ -25,8 +24,10 @@ based on manifest definitions.
25
24
 
26
25
 
27
26
  def _get_project_version() -> str:
28
- p = Path(__file__).resolve().parents[2] / "pyproject.toml"
29
- return tomllib.loads(p.read_text(encoding="utf-8"))["project"]["version"]
27
+ try:
28
+ return version("pybutt")
29
+ except PackageNotFoundError:
30
+ return "unknown"
30
31
 
31
32
 
32
33
  def _version_callback(ctx, param, value: bool):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pybutt
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Requires-Python: >=3.12
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -16,6 +16,7 @@ Requires-Dist: ruff; extra == "dev"
16
16
  Requires-Dist: isort; extra == "dev"
17
17
  Requires-Dist: pytest; extra == "dev"
18
18
  Requires-Dist: build; extra == "dev"
19
+ Requires-Dist: twine; extra == "dev"
19
20
  Dynamic: license-file
20
21
 
21
22
  # PyButt
@@ -11,3 +11,4 @@ ruff
11
11
  isort
12
12
  pytest
13
13
  build
14
+ twine
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pybutt"
7
- version = "2.0.0"
7
+ version = "2.0.1"
8
8
  readme = "README.md"
9
9
  requires-python = ">=3.12"
10
10
  dependencies = [
@@ -23,6 +23,7 @@ dev = [
23
23
  "isort",
24
24
  "pytest",
25
25
  "build",
26
+ "twine",
26
27
  ]
27
28
 
28
29
  [project.scripts]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes