GJDutils 0.3.4__tar.gz → 0.3.6__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 (72) hide show
  1. {gjdutils-0.3.4 → gjdutils-0.3.6}/PKG-INFO +1 -1
  2. {gjdutils-0.3.4 → gjdutils-0.3.6}/pyproject.toml +4 -1
  3. gjdutils-0.3.6/src/gjdutils/__init__.py +5 -0
  4. gjdutils-0.3.6/src/gjdutils/__version__.py +3 -0
  5. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/pypi_build.py +6 -17
  6. gjdutils-0.3.4/src/gjdutils/__init__.py +0 -7
  7. {gjdutils-0.3.4 → gjdutils-0.3.6}/.gitignore +0 -0
  8. {gjdutils-0.3.4 → gjdutils-0.3.6}/LICENSE +0 -0
  9. {gjdutils-0.3.4 → gjdutils-0.3.6}/README.md +0 -0
  10. {gjdutils-0.3.4 → gjdutils-0.3.6}/docs/CODING_SHELL_SCRIPTS.md +0 -0
  11. {gjdutils-0.3.4 → gjdutils-0.3.6}/planning/250215_publishing_to_pypi.md +0 -0
  12. {gjdutils-0.3.4 → gjdutils-0.3.6}/planning/250215_rename_gdutils_to_gjdutils.md +0 -0
  13. {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/check_git_clean.py +0 -0
  14. {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/check_locally.py +0 -0
  15. {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/check_pypiprod.py +0 -0
  16. {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/check_pypitest.py +0 -0
  17. {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/deploy_all.py +0 -0
  18. {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/deploy_pypiprod.py +0 -0
  19. {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/deploy_pypitest.py +0 -0
  20. {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/export_all.sh +0 -0
  21. {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/install_all_dev_dependencies.py +0 -0
  22. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/audios.py +0 -0
  23. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/caching.py +0 -0
  24. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/cmd.py +0 -0
  25. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/colab.py +0 -0
  26. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/collection_utils.py +0 -0
  27. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/decorators.py +0 -0
  28. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/dicts.py +0 -0
  29. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/dsci.py +0 -0
  30. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/dt.py +0 -0
  31. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/env.py +0 -0
  32. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/errors.py +0 -0
  33. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/files.py +0 -0
  34. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/functions.py +0 -0
  35. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/google_translate.py +0 -0
  36. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/hashing.py +0 -0
  37. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/html.py +0 -0
  38. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/indexing.py +0 -0
  39. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/iterfunc.py +0 -0
  40. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/jsons.py +0 -0
  41. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/lists.py +0 -0
  42. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/llm_utils.py +0 -0
  43. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/llms_claude.py +0 -0
  44. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/llms_openai.py +0 -0
  45. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/misc.py +0 -0
  46. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/num.py +0 -0
  47. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/obsolete/google_text_to_speech.py +0 -0
  48. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/obsolete/llms_obsolete.py +0 -0
  49. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/outloud_text_to_speech.py +0 -0
  50. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/print_utils.py +0 -0
  51. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/prompt_templates.py +0 -0
  52. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/pytest_utils.py +0 -0
  53. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/rand.py +0 -0
  54. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/regex.py +0 -0
  55. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/requirements_dev.txt +0 -0
  56. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/runtime.py +0 -0
  57. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/sets.py +0 -0
  58. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/shell.py +0 -0
  59. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/stopwatch.py +0 -0
  60. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/strings.py +0 -0
  61. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/todo/convert_parquet.py +0 -0
  62. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/typ.py +0 -0
  63. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/voice_speechrecognition.py +0 -0
  64. {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/web.py +0 -0
  65. {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/__init__.py +0 -0
  66. {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_env_integration.py +0 -0
  67. {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_git_status.py +0 -0
  68. {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_indexing.py +0 -0
  69. {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_num.py +0 -0
  70. {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_print_utils.py +0 -0
  71. {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_rand.py +0 -0
  72. {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_strings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GJDutils
3
- Version: 0.3.4
3
+ Version: 0.3.6
4
4
  Summary: A collection of useful utility functions (basics, data science/AI, web development, etc)
5
5
  Project-URL: Homepage, https://github.com/gregdetre/gjdutils
6
6
  Project-URL: Repository, https://github.com/gregdetre/gjdutils
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  # case-insensitive
3
3
  name = "GJDutils"
4
- version = "0.3.4"
4
+ dynamic = ["version"]
5
5
  authors = [
6
6
  { name="Greg Detre", email="greg@gregdetre.com" },
7
7
  ]
@@ -92,6 +92,9 @@ Repository = "https://github.com/gregdetre/gjdutils"
92
92
  requires = ["hatchling"]
93
93
  build-backend = "hatchling.build"
94
94
 
95
+ [tool.hatch.version]
96
+ path = "src/gjdutils/__version__.py"
97
+
95
98
  [tool.hatch.build.targets.sdist]
96
99
  exclude = [
97
100
  "dist/",
@@ -0,0 +1,5 @@
1
+ """
2
+ GJDutils - A collection of useful utility functions
3
+ """
4
+
5
+ from gjdutils.__version__ import __version__
@@ -0,0 +1,3 @@
1
+ """Single source of truth for package version."""
2
+
3
+ __version__ = "0.3.6"
@@ -12,26 +12,11 @@ from packaging.version import Version
12
12
  from importlib.metadata import metadata
13
13
 
14
14
  from gjdutils.cmd import run_cmd
15
+ from gjdutils import __version__
15
16
 
16
17
  console = Console()
17
18
 
18
19
 
19
- def get_version() -> str:
20
- """Get package version from pyproject.toml.
21
-
22
- We read directly from pyproject.toml rather than using Python's packaging machinery
23
- because we've had issues with the correct version being accessed in deployment/checking
24
- machinery that creates virtualenvs. This provides a more reliable way to access the
25
- true version from the source."""
26
- with open("pyproject.toml", "rb") as f:
27
- data = tomllib.load(f)
28
- return data["project"]["version"]
29
-
30
-
31
- # Type for PyPI environment
32
- PyPIEnv = Literal["test", "prod"]
33
-
34
-
35
20
  def verify_installation(python_path: Path):
36
21
  # Command: python -c "import gjdutils; print(gjdutils.__version__)"
37
22
  retcode, installed_version, extra = run_cmd(
@@ -39,7 +24,7 @@ def verify_installation(python_path: Path):
39
24
  before_msg="Verify package installation by importing and checking version...",
40
25
  fatal_msg="Failed to import gjdutils",
41
26
  )
42
- expected_version = get_version()
27
+ expected_version = __version__
43
28
  assert (
44
29
  installed_version == expected_version
45
30
  ), f"Installed version {installed_version} does not match expected version {expected_version}"
@@ -47,6 +32,10 @@ def verify_installation(python_path: Path):
47
32
  return installed_version
48
33
 
49
34
 
35
+ # Type for PyPI environment
36
+ PyPIEnv = Literal["test", "prod"]
37
+
38
+
50
39
  def check_install_optional_features(python_path: Path, *, from_test_pypi: bool = False):
51
40
  """Test installation of optional feature sets."""
52
41
  # Get optional dependency groups from package metadata
@@ -1,7 +0,0 @@
1
- """
2
- GJDutils - A collection of useful utility functions
3
- """
4
-
5
- from gjdutils.pypi_build import get_version
6
-
7
- __version__ = get_version()
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