python-template-project 0.2.0__tar.gz → 0.2.2__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.
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/rename_project.sh +3 -0
- python_template_project-0.2.2/.github/update_funding.py +46 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.gitignore +4 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.idea/runConfigurations/module_cli.xml +1 -1
- python_template_project-0.2.2/.pre-commit-config-linux.yaml +15 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/HISTORY.md +304 -262
- {python_template_project-0.2.0 → python_template_project-0.2.2}/Makefile +2 -0
- {python_template_project-0.2.0/src/python_template_project.egg-info → python_template_project-0.2.2}/PKG-INFO +3 -4
- {python_template_project-0.2.0 → python_template_project-0.2.2}/README.md +17 -2
- python_template_project-0.2.2/config.yaml +41 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/.nav.yml +1 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/develop/contributing.md +39 -2
- python_template_project-0.2.2/docs/funding/funding.md +55 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/index.md +1 -1
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/usage/cli.md +17 -3
- {python_template_project-0.2.0 → python_template_project-0.2.2}/pyproject.toml +1 -2
- python_template_project-0.2.2/scripts/generate_config_docs.py +22 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/scripts/show_tree.py +4 -4
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project/_version.py +16 -3
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project/cli/cli.py +21 -16
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project/config/config.py +40 -60
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project/core/logging.py +9 -9
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project/gui/gui.py +8 -9
- {python_template_project-0.2.0 → python_template_project-0.2.2/src/python_template_project.egg-info}/PKG-INFO +3 -4
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project.egg-info/SOURCES.txt +4 -5
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project.egg-info/requires.txt +1 -2
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project.egg-info/top_level.txt +0 -1
- {python_template_project-0.2.0 → python_template_project-0.2.2}/uv.lock +16 -5
- python_template_project-0.2.0/config.yaml +0 -96
- python_template_project-0.2.0/src/generic_config_cli_gui/cli_generator.py +0 -177
- python_template_project-0.2.0/src/generic_config_cli_gui/config_framework.py +0 -362
- python_template_project-0.2.0/src/generic_config_cli_gui/gui_generator.py +0 -225
- python_template_project-0.2.0/tests/__init__.py +0 -0
- python_template_project-0.2.0/tests/test_generic_cli.py +0 -128
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/FUNDING.yml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/actions/setup-environment/action.yml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/dependabot.yml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/init.sh +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/release_message.sh +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/template.yml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/workflows/build-macos.yml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/workflows/build.yml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/workflows/main.yml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/workflows/release.yml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/workflows/rename_project.yml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.github/workflows/update_readme.yml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.idea/runConfigurations/config_generate.xml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.idea/runConfigurations/module_gui.xml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.pre-commit-config.yaml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/.readthedocs.yaml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/LICENSE +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/_static/img/favicon.png +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/_static/img/logo.png +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/css/custom.css +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/develop/make_windows.md +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/develop/naming_convention.md +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/develop/pypi_release.md +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/getting-started/install.md +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/getting-started/virtual-environment.md +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/docs/usage/config.md +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/examples/kuhkopfsteig.gpx +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/examples/rother_lilienstein.gpx +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/examples/teneriffa.gpx +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/mkdocs.yml +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/scripts/show_filelist.ps1 +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/scripts/show_tree.ps1 +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/scripts/update_readme.py +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/setup.cfg +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/__init__.py +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/firewall_handler.py +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/main.py +0 -0
- {python_template_project-0.2.0/src/generic_config_cli_gui → python_template_project-0.2.2/src/python_template_project}/__init__.py +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project/__main__.py +0 -0
- {python_template_project-0.2.0/src/python_template_project → python_template_project-0.2.2/src/python_template_project/cli}/__init__.py +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project/cli/__main__.py +0 -0
- {python_template_project-0.2.0/src/python_template_project/cli → python_template_project-0.2.2/src/python_template_project/config}/__init__.py +0 -0
- {python_template_project-0.2.0/src/python_template_project/config → python_template_project-0.2.2/src/python_template_project/core}/__init__.py +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project/core/base.py +0 -0
- {python_template_project-0.2.0/src/python_template_project/core → python_template_project-0.2.2/src/python_template_project/gui}/__init__.py +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project/gui/__main__.py +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project.egg-info/dependency_links.txt +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/src/python_template_project.egg-info/entry_points.txt +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/template.yml.url +0 -0
- {python_template_project-0.2.0/src/python_template_project/gui → python_template_project-0.2.2/tests}/__init__.py +0 -0
- {python_template_project-0.2.0 → python_template_project-0.2.2}/tests/test_gpx.py +0 -0
|
@@ -74,5 +74,8 @@ fi
|
|
|
74
74
|
# Remove the template.yml to indicate that the template has been applied
|
|
75
75
|
echo "Removing .github/template.yml"
|
|
76
76
|
rm -f .github/template.yml
|
|
77
|
+
# Remove rename_project.yml to prevent re-running the renaming script
|
|
78
|
+
echo "Removing .github/workflows/rename_project.yml"
|
|
79
|
+
rm -f .github/workflows/rename_project.yml
|
|
77
80
|
|
|
78
81
|
echo "Project renaming complete!"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# scripts/update_funding.py
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
import requests
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
# Define the URL of your central FUNDING.md file on GitHub
|
|
7
|
+
FUNDING_REPO_URL = "https://raw.githubusercontent.com/pamagister/FUNDING/main/README.md"
|
|
8
|
+
|
|
9
|
+
# Define the destination path within the current repository
|
|
10
|
+
# This will create 'docs/funding/funding.md'
|
|
11
|
+
DST_THIS_REPO = Path("docs/funding/funding.md")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def update_funding_file():
|
|
15
|
+
"""
|
|
16
|
+
Downloads the FUNDING.md file from the central repository
|
|
17
|
+
and saves it to the specified path within the current repository.
|
|
18
|
+
"""
|
|
19
|
+
print(f"Attempting to download FUNDING.md from: {FUNDING_REPO_URL}")
|
|
20
|
+
|
|
21
|
+
try:
|
|
22
|
+
# Send a GET request to the URL
|
|
23
|
+
response = requests.get(FUNDING_REPO_URL)
|
|
24
|
+
response.raise_for_status() # Raise an HTTPError for bad responses (4xx or 5xx)
|
|
25
|
+
|
|
26
|
+
# Ensure the parent directory (e.g., 'docs/funding/') exists
|
|
27
|
+
DST_THIS_REPO.parent.mkdir(parents=True, exist_ok=True)
|
|
28
|
+
|
|
29
|
+
# Write the content to the destination file
|
|
30
|
+
with open(DST_THIS_REPO, "wb") as f:
|
|
31
|
+
f.write(response.content)
|
|
32
|
+
|
|
33
|
+
print(f"Successfully updated FUNDING.md at: {DST_THIS_REPO}")
|
|
34
|
+
|
|
35
|
+
except requests.exceptions.RequestException as e:
|
|
36
|
+
print(f"Error downloading FUNDING.md: {e}", file=sys.stderr)
|
|
37
|
+
sys.exit(1) # Exit with an error code
|
|
38
|
+
except IOError as e:
|
|
39
|
+
print(f"Error writing FUNDING.md to file: {e}", file=sys.stderr)
|
|
40
|
+
sys.exit(1) # Exit with an error code
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
if __name__ == "__main__":
|
|
44
|
+
# Ensure the 'requests' library is installed for this script to run.
|
|
45
|
+
# If not, install it using: pip install requests
|
|
46
|
+
update_funding_file()
|
|
@@ -197,3 +197,7 @@ cython_debug/
|
|
|
197
197
|
/.idea/python-template-project.iml
|
|
198
198
|
/.idea/inspectionProfiles/profiles_settings.xml
|
|
199
199
|
/.idea/inspectionProfiles/Project_Default.xml
|
|
200
|
+
/src/python_template_project/_version.py
|
|
201
|
+
/release/config.yaml
|
|
202
|
+
/release/python-template-project.exe
|
|
203
|
+
/release/README.md
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
15
15
|
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
|
16
16
|
<option name="SCRIPT_NAME" value="python_template_project.cli" />
|
|
17
|
-
<option name="PARAMETERS" value="
|
|
17
|
+
<option name="PARAMETERS" value="--elevation False --min_dist 50 examples/teneriffa.gpx" />
|
|
18
18
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
19
19
|
<option name="EMULATE_TERMINAL" value="false" />
|
|
20
20
|
<option name="MODULE_MODE" value="true" />
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# the actual pre-commit is defined in the Makefile
|
|
2
|
+
# install and activate pre-commit:
|
|
3
|
+
# > pre-commit install
|
|
4
|
+
#
|
|
5
|
+
# on Linux, rename this file to .pre-commit-config.yaml and use this one
|
|
6
|
+
|
|
7
|
+
repos:
|
|
8
|
+
- repo: local
|
|
9
|
+
hooks:
|
|
10
|
+
- id: run-make-precommit
|
|
11
|
+
name: Run `make precommit`
|
|
12
|
+
entry: bash -c "export PATH=$HOME/.local/bin:$PATH && uv run make precommit"
|
|
13
|
+
language: system
|
|
14
|
+
always_run: true
|
|
15
|
+
pass_filenames: false
|