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.
- {gjdutils-0.3.4 → gjdutils-0.3.6}/PKG-INFO +1 -1
- {gjdutils-0.3.4 → gjdutils-0.3.6}/pyproject.toml +4 -1
- gjdutils-0.3.6/src/gjdutils/__init__.py +5 -0
- gjdutils-0.3.6/src/gjdutils/__version__.py +3 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/pypi_build.py +6 -17
- gjdutils-0.3.4/src/gjdutils/__init__.py +0 -7
- {gjdutils-0.3.4 → gjdutils-0.3.6}/.gitignore +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/LICENSE +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/README.md +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/docs/CODING_SHELL_SCRIPTS.md +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/planning/250215_publishing_to_pypi.md +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/planning/250215_rename_gdutils_to_gjdutils.md +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/check_git_clean.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/check_locally.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/check_pypiprod.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/check_pypitest.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/deploy_all.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/deploy_pypiprod.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/deploy_pypitest.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/export_all.sh +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/scripts/install_all_dev_dependencies.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/audios.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/caching.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/cmd.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/colab.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/collection_utils.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/decorators.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/dicts.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/dsci.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/dt.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/env.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/errors.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/files.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/functions.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/google_translate.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/hashing.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/html.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/indexing.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/iterfunc.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/jsons.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/lists.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/llm_utils.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/llms_claude.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/llms_openai.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/misc.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/num.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/obsolete/google_text_to_speech.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/obsolete/llms_obsolete.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/outloud_text_to_speech.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/print_utils.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/prompt_templates.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/pytest_utils.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/rand.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/regex.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/requirements_dev.txt +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/runtime.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/sets.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/shell.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/stopwatch.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/strings.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/todo/convert_parquet.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/typ.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/voice_speechrecognition.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/src/gjdutils/web.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/__init__.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_env_integration.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_git_status.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_indexing.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_num.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_print_utils.py +0 -0
- {gjdutils-0.3.4 → gjdutils-0.3.6}/tests/test_rand.py +0 -0
- {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.
|
|
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
|
-
|
|
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/",
|
|
@@ -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 =
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|