scripthelper 24.2__tar.gz → 25.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.
- {scripthelper-24.2 → scripthelper-25.1}/.gitignore +5 -1
- {scripthelper-24.2 → scripthelper-25.1}/CHANGELOG.md +4 -0
- {scripthelper-24.2 → scripthelper-25.1}/PKG-INFO +4 -7
- scripthelper-25.1/justfile +51 -0
- {scripthelper-24.2 → scripthelper-25.1}/pyproject.toml +14 -4
- scripthelper-25.1/venv/.gitignore +1 -0
- scripthelper-25.1/venv/.tox-info.json +6 -0
- scripthelper-25.1/venv/CACHEDIR.TAG +1 -0
- scripthelper-25.1/venv/Scripts/python.exe +0 -0
- scripthelper-25.1/venv/Scripts/pythonw.exe +0 -0
- scripthelper-24.2/justfile +0 -65
- {scripthelper-24.2 → scripthelper-25.1}/LICENSE +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/README.compiled.md +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/README.md +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/compile-readme.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example1.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example10.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example2.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example2b.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example3.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example4.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example4module.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example5.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example6.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example7.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example8.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/example9.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/mypy.ini +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/src/scripthelper/__init__.py +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/src/scripthelper/py.typed +0 -0
- {scripthelper-24.2 → scripthelper-25.1}/test_examples.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: scripthelper
|
|
3
|
-
Version:
|
|
3
|
+
Version: 25.1
|
|
4
4
|
Summary: Helper module for creating simple Python scripts
|
|
5
5
|
Project-URL: Homepage, https://github.com/presidento/scripthelper
|
|
6
6
|
Project-URL: Changelog, https://github.com/presidento/scripthelper/blob/main/CHANGELOG.md
|
|
@@ -17,18 +17,15 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
21
|
Classifier: Topic :: Utilities
|
|
21
22
|
Classifier: Typing :: Typed
|
|
23
|
+
Requires-Python: >=3.9
|
|
22
24
|
Requires-Dist: coloredlogs>=10.0
|
|
23
25
|
Requires-Dist: persistedstate>=23.6
|
|
24
26
|
Requires-Dist: prettyprinter>=0.18.0
|
|
25
27
|
Requires-Dist: stackprinter>=0.2.10
|
|
26
28
|
Requires-Dist: tqdm>=4.31.1
|
|
27
|
-
Provides-Extra: dev
|
|
28
|
-
Requires-Dist: black; extra == 'dev'
|
|
29
|
-
Requires-Dist: build; extra == 'dev'
|
|
30
|
-
Requires-Dist: mypy; extra == 'dev'
|
|
31
|
-
Requires-Dist: twine; extra == 'dev'
|
|
32
29
|
Description-Content-Type: text/markdown
|
|
33
30
|
|
|
34
31
|
# scripthelper
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
set shell := ["nu", "-c"]
|
|
2
|
+
|
|
3
|
+
# Bootstrap with all supported Python versions
|
|
4
|
+
bootstrap:
|
|
5
|
+
touch README.compiled.md
|
|
6
|
+
uv lock --upgrade
|
|
7
|
+
uv sync --all-groups
|
|
8
|
+
uv run tox run --notest
|
|
9
|
+
|
|
10
|
+
# Compile README.md
|
|
11
|
+
compile-readme:
|
|
12
|
+
just py compile-readme.py
|
|
13
|
+
|
|
14
|
+
# Run python command with the default Python version
|
|
15
|
+
py *ARGS:
|
|
16
|
+
uv run python -X dev {{ ARGS }}
|
|
17
|
+
|
|
18
|
+
# Run every check against source code
|
|
19
|
+
check: check-format mypy test-all
|
|
20
|
+
|
|
21
|
+
# Check source code formatting in case I forgot to format them
|
|
22
|
+
check-format:
|
|
23
|
+
just py -m black --check src *.py
|
|
24
|
+
|
|
25
|
+
# Format source code with black
|
|
26
|
+
format:
|
|
27
|
+
just py -m black src *.py
|
|
28
|
+
|
|
29
|
+
# Check static typing
|
|
30
|
+
mypy:
|
|
31
|
+
just py -m mypy src *.py
|
|
32
|
+
|
|
33
|
+
# Test with all supported Python versions
|
|
34
|
+
test-all:
|
|
35
|
+
uv run tox run
|
|
36
|
+
|
|
37
|
+
# Run the tests default Python version
|
|
38
|
+
test *ARGS:
|
|
39
|
+
just py test_examples.py {{ ARGS }}
|
|
40
|
+
|
|
41
|
+
# Remove compiled assets
|
|
42
|
+
clean:
|
|
43
|
+
rm build dist scripthelper.egg-info --force --recursive --verbose
|
|
44
|
+
|
|
45
|
+
# Build the whole project, create a release
|
|
46
|
+
build: clean bootstrap check compile-readme
|
|
47
|
+
uv build
|
|
48
|
+
|
|
49
|
+
# Upload the release to PyPi
|
|
50
|
+
upload:
|
|
51
|
+
uv upload
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "scripthelper"
|
|
3
|
-
version = "
|
|
3
|
+
version = "25.1"
|
|
4
4
|
description = "Helper module for creating simple Python scripts"
|
|
5
5
|
readme = "README.compiled.md"
|
|
6
6
|
license = {text = "MIT License"}
|
|
@@ -15,9 +15,12 @@ classifiers = [
|
|
|
15
15
|
"Programming Language :: Python :: 3.11",
|
|
16
16
|
"Programming Language :: Python :: 3.12",
|
|
17
17
|
"Programming Language :: Python :: 3.13",
|
|
18
|
+
"Programming Language :: Python :: 3.14",
|
|
18
19
|
"Topic :: Utilities",
|
|
19
20
|
"Typing :: Typed",
|
|
20
21
|
]
|
|
22
|
+
requires-python = ">=3.9"
|
|
23
|
+
|
|
21
24
|
dependencies = [
|
|
22
25
|
"tqdm >= 4.31.1",
|
|
23
26
|
"coloredlogs >= 10.0",
|
|
@@ -26,14 +29,21 @@ dependencies = [
|
|
|
26
29
|
"persistedstate >= 23.6",
|
|
27
30
|
]
|
|
28
31
|
|
|
29
|
-
[
|
|
32
|
+
[dependency-groups]
|
|
30
33
|
dev = [
|
|
31
34
|
"black",
|
|
32
|
-
"build",
|
|
33
35
|
"mypy",
|
|
34
|
-
"
|
|
36
|
+
"tox-uv>=1.25",
|
|
37
|
+
"tox",
|
|
38
|
+
"uv",
|
|
35
39
|
]
|
|
36
40
|
|
|
41
|
+
[tool.tox]
|
|
42
|
+
env_list = ["py314", "py313", "py312", "py311", "py310", "py39"]
|
|
43
|
+
|
|
44
|
+
[tool.tox.env_run_base]
|
|
45
|
+
commands = [["python", "test_examples.py"]]
|
|
46
|
+
|
|
37
47
|
|
|
38
48
|
[[project.authors]]
|
|
39
49
|
name = "Máté Farkas"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Signature: 8a477f597d28d172789f06886806bc55
|
|
Binary file
|
|
Binary file
|
scripthelper-24.2/justfile
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
set shell := ["nu", "-c"]
|
|
2
|
-
|
|
3
|
-
DEFAULT_VERSION := "3.9"
|
|
4
|
-
SUPPORTED_VERSIONS := "['3.9' '3.10' '3.11' '3.12' '3.13']"
|
|
5
|
-
PYTHON_EXECUTABLE := if os_family() == "windows" { "Scripts/python.exe" } else { "bin/python3" }
|
|
6
|
-
SYSTEM_PYTHON_PREFIX := if os_family() == "windows" { "py -" } else { "python" }
|
|
7
|
-
|
|
8
|
-
# Bootstrap with all supported Python versions
|
|
9
|
-
bootstrap:
|
|
10
|
-
touch README.compiled.md
|
|
11
|
-
for version in {{ SUPPORTED_VERSIONS }} { just bootstrap-with $version }
|
|
12
|
-
just py -m pip install .[dev] --quiet --upgrade --upgrade-strategy eager
|
|
13
|
-
|
|
14
|
-
# Set up Python environment with specified Python version
|
|
15
|
-
bootstrap-with VERSION:
|
|
16
|
-
if not (".{{ VERSION }}.{{ os() }}.venv" | path exists) { {{ SYSTEM_PYTHON_PREFIX }}{{ VERSION }} -m venv .{{ VERSION }}.{{ os() }}.venv }
|
|
17
|
-
just python {{ VERSION }} -m pip install pip --quiet --upgrade
|
|
18
|
-
just python {{ VERSION }} -m pip install -e . --upgrade --upgrade-strategy eager
|
|
19
|
-
|
|
20
|
-
# Compile README.md
|
|
21
|
-
compile-readme:
|
|
22
|
-
just py compile-readme.py
|
|
23
|
-
|
|
24
|
-
# Run a specific Python interpreter
|
|
25
|
-
python VERSION *ARGS:
|
|
26
|
-
@^".{{ VERSION }}.{{ os() }}.venv/{{ PYTHON_EXECUTABLE }}" -X dev {{ ARGS }}
|
|
27
|
-
|
|
28
|
-
# Run python command with the default Python version
|
|
29
|
-
py *ARGS:
|
|
30
|
-
@just python {{DEFAULT_VERSION }} {{ ARGS }}
|
|
31
|
-
|
|
32
|
-
# Run every check against source code
|
|
33
|
-
check: check-format mypy test
|
|
34
|
-
|
|
35
|
-
# Check source code formatting in case I forgot to format them
|
|
36
|
-
check-format:
|
|
37
|
-
just py -m black --check src *.py
|
|
38
|
-
|
|
39
|
-
# Format source code with black
|
|
40
|
-
format:
|
|
41
|
-
just py -m black src *.py
|
|
42
|
-
|
|
43
|
-
# Check static typing
|
|
44
|
-
mypy:
|
|
45
|
-
just py -m mypy src *.py
|
|
46
|
-
|
|
47
|
-
# Test with all supported Python versions
|
|
48
|
-
test:
|
|
49
|
-
for version in {{ SUPPORTED_VERSIONS }} { just test-with $version }
|
|
50
|
-
|
|
51
|
-
# Run the tests with specified Python version
|
|
52
|
-
test-with VERSION *ARGS:
|
|
53
|
-
just python {{ VERSION }} test_examples.py {{ ARGS }}
|
|
54
|
-
|
|
55
|
-
# Remove compiled assets
|
|
56
|
-
clean:
|
|
57
|
-
rm build dist scripthelper.egg-info --force --recursive --verbose
|
|
58
|
-
|
|
59
|
-
# Build the whole project, create a release
|
|
60
|
-
build: clean bootstrap check compile-readme
|
|
61
|
-
just py -m build
|
|
62
|
-
|
|
63
|
-
# Upload the release to PyPi
|
|
64
|
-
upload:
|
|
65
|
-
just py -m twine upload dist/*
|
|
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
|