oe-python-template-example 0.0.2__tar.gz → 0.0.4__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.
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.copier-answers.yml +3 -3
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.github/workflows/docker-image-build-publish.yml +1 -1
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.vscode/settings.json +2 -2
- oe_python_template_example-0.0.4/CHANGELOG.md +32 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/PKG-INFO +65 -12
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/README.md +64 -11
- oe_python_template_example-0.0.4/RELEASE_NOTES.md +32 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/SERVICE_CONNECTIONS.md +4 -4
- oe_python_template_example-0.0.4/VERSION +1 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/_readme_header.md +2 -2
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/_readme_main.md +62 -9
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/conf.py +2 -2
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/index.rst +1 -1
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/pyproject.toml +2 -2
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/sonar-project.properties +1 -1
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/uv.lock +1 -1
- oe_python_template_example-0.0.2/CHANGELOG.md +0 -17
- oe_python_template_example-0.0.2/RELEASE_NOTES.md +0 -17
- oe_python_template_example-0.0.2/VERSION +0 -1
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.act-env +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.act-secret +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.devcontainer/Dockerfile +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.devcontainer/devcontainer.json +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.devcontainer/onCreateCommand +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.devcontainer/postAttachCommand +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.devcontainer/postCreateCommand +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.env.example +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.github/workflows/package-build-publish-release.yml +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.github/workflows/test-and-report.yml +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.gitignore +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.pre-commit-config.yaml +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.python-version +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.readthedocs.yml +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.secrets.baseline +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.vscode/extensions.json +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/CODEOWNERS +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/CONTRIBUTING.md +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/Dockerfile +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/LICENSE +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/_readme_footer.md +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/bin/git-cliff +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/bump +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/codecov.yml +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/compose.yaml +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/Makefile +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/make.bat +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/_static/.keep +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/contributing.rst +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/latexmkrc +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/main.rst +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/reference.rst +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/release-notes.rst +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/examples/__init__.py +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/examples/notebook.ipynb +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/examples/notebook.py +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/examples/script.py +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/examples/streamlit.py +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/CHANGELOG.md +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/LICENSE-APACHE +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/LICENSE-MIT +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/README.md +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/completions/_git-cliff +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/completions/_git-cliff.ps1 +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/completions/git-cliff.bash +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/completions/git-cliff.elv +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/completions/git-cliff.fish +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/git-cliff-completions +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/git-cliff-mangen +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/man/git-cliff.1 +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0-x86_64-unknown-linux-gnu.tar.gz +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/github-action-run +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/latexmkrc +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/logo.png +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/noxfile.py +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/src/oe_python_template_example/__init__.py +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/src/oe_python_template_example/cli.py +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/src/oe_python_template_example/constants.py +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/src/oe_python_template_example/service.py +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/tests/__init__.py +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/tests/cli_test.py +0 -0
- {oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/tests/fixtures/.keep +0 -0
@@ -1,10 +1,10 @@
|
|
1
|
-
_commit: v0.
|
2
|
-
_src_path:
|
1
|
+
_commit: v0.2.2
|
2
|
+
_src_path: gh:helmut-hoffer-von-ankershoffen/oe-python-template
|
3
3
|
author_email: helmuthva@gmail.com
|
4
4
|
author_github_username: helmut-hoffer-von-ankershoffen
|
5
5
|
author_name: Helmut Hoffer von Ankershoffen
|
6
6
|
docker_io_image_name: oe-python-template-example
|
7
|
-
docker_io_owner:
|
7
|
+
docker_io_owner: helmuthva
|
8
8
|
github_repository_name: oe-python-template-example
|
9
9
|
github_repository_owner: helmut-hoffer-von-ankershoffen
|
10
10
|
github_repository_url_https: https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example
|
@@ -65,8 +65,8 @@
|
|
65
65
|
"github.copilot.chat.generateTests.codeLens": true,
|
66
66
|
"github.copilot.chat.search.semanticTextResults": true,
|
67
67
|
"sonarlint.connectedMode.project": {
|
68
|
-
"connectionId": "
|
69
|
-
"projectKey": "
|
68
|
+
"connectionId": "helmut-hoffer-von-ankershoffen",
|
69
|
+
"projectKey": "helmut-hoffer-von-ankershoffen_oe-python-template-example"
|
70
70
|
},
|
71
71
|
"pre-commit-helper.runOnSave": "fixes",
|
72
72
|
"pre-commit-helper.excludedHookIds": [
|
@@ -0,0 +1,32 @@
|
|
1
|
+
[🧠 OE Python Template Example](https://oe-python-template-example.readthedocs.io/en/latest/)
|
2
|
+
|
3
|
+
## [0.0.4](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/compare/v0.0.3..0.0.4) - 2025-03-02
|
4
|
+
|
5
|
+
### 📚 Documentation
|
6
|
+
|
7
|
+
- Update - ([45fbb4d](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/45fbb4d287dc8575bbe5895f14f52186a42e8c56))
|
8
|
+
|
9
|
+
|
10
|
+
## [0.0.3](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/compare/v0.0.2..v0.0.3) - 2025-03-02
|
11
|
+
|
12
|
+
### ⚙️ Miscellaneous Tasks
|
13
|
+
|
14
|
+
- Docker.io username - ([afc5d08](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/afc5d08c6ccc5f6c6c3824600c4e0fdef1690154))
|
15
|
+
- Copier from repo - ([fa01793](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/fa017930245289f795bbfe9a3204f75103fd19bc))
|
16
|
+
|
17
|
+
|
18
|
+
## [0.0.2] - 2025-03-02
|
19
|
+
|
20
|
+
### ⛰️ Features
|
21
|
+
|
22
|
+
- Initial commit - ([7986b87](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/7986b87fef683b0274acc87c6a11404f13de874e))
|
23
|
+
|
24
|
+
### ⚙️ Miscellaneous Tasks
|
25
|
+
|
26
|
+
- Bump - ([21554f6](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/21554f61f5cee12c9595b71381888bfa281c8005))
|
27
|
+
|
28
|
+
## New Contributors ❤️
|
29
|
+
|
30
|
+
* @helmut-hoffer-von-ankershoffen made their first contribution
|
31
|
+
|
32
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oe-python-template-example
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.4
|
4
4
|
Summary: 🧠 Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
|
5
5
|
Project-URL: Homepage, https://oe-python-template-example.readthedocs.io/en/latest/
|
6
6
|
Project-URL: Documentation, https://oe-python-template-example.readthedocs.io/en/latest/
|
@@ -75,8 +75,8 @@ Description-Content-Type: text/markdown
|
|
75
75
|
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commits/main/)
|
76
76
|
[](https://pypi.python.org/pypi/oe-python-template-example)
|
77
77
|
[](https://pypi.python.org/pypi/oe-python-template-example)
|
78
|
-
[](https://hub.docker.com/r/helmuthva/oe-python-template-example/tags)
|
79
|
+
[](https://hub.docker.com/r/helmuthva/oe-python-template-example/)
|
80
80
|
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template)
|
81
81
|
<!---
|
82
82
|
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/pkgs/container/oe-python-template-example)
|
@@ -91,9 +91,60 @@ Description-Content-Type: text/markdown
|
|
91
91
|
Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
|
92
92
|
|
93
93
|
Use Cases:
|
94
|
-
1)
|
95
|
-
2)
|
96
|
-
3)
|
94
|
+
1) Fast and easy to use project setup
|
95
|
+
2) Consistent update of already scaffolded projects to benefit from new and improved features.
|
96
|
+
3) Dummy CLI application and service demonstrating example usage of the generated directory structure and build pipeline
|
97
|
+
|
98
|
+
## Scaffolding Instructions
|
99
|
+
|
100
|
+
Step 1: Install uv package manager and copier
|
101
|
+
```shell
|
102
|
+
if [[ "$OSTYPE" == "darwin"* ]]; then # Install dependencies for macOS X
|
103
|
+
if ! command -v brew &> /dev/null; then ## Install Homebrew if not present
|
104
|
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
105
|
+
fi
|
106
|
+
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then # Install dependencies for Linux
|
107
|
+
sudo apt-get update -y && sudo apt-get install curl -y # Install curl
|
108
|
+
fi
|
109
|
+
if ! command -v uvx &> /dev/null; then # Install uv package manager if not present
|
110
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
111
|
+
source $HOME/.local/bin/env
|
112
|
+
fi
|
113
|
+
uv tool install copier # Install copier as global tool
|
114
|
+
```
|
115
|
+
|
116
|
+
Step 2: Now create an empty repo on GitHub and clone it to your local machine in a directory of your choice. Change to that directory.
|
117
|
+
|
118
|
+
Step 3: Scaffold the project
|
119
|
+
```shell
|
120
|
+
copier copy gh:helmut-hoffer-von-ankershoffen/oe-python-template .
|
121
|
+
```
|
122
|
+
Step 4: Setup the local environment
|
123
|
+
|
124
|
+
```shell
|
125
|
+
uv run nox -s setup_eev
|
126
|
+
```
|
127
|
+
|
128
|
+
Step 5: Perform inital commit and push
|
129
|
+
```shell
|
130
|
+
git add .
|
131
|
+
git commit -m "feat: Initial commit"
|
132
|
+
```
|
133
|
+
|
134
|
+
Visit your GitHub repository and check the Actions tab. The CI workflow should fail at the SonarQube step,
|
135
|
+
as this external service is not yet configured for our new repository.
|
136
|
+
|
137
|
+
Step 6: Follow the instructions in SERVICE_CONNECTIONS.md to setup the connections to external services
|
138
|
+
such as Cloudcov, SonarQube Cloud, Read The Docs, Docker.io, GHCR.io and Streamlit Community Cloud.
|
139
|
+
|
140
|
+
Step 7: Release the first versions
|
141
|
+
```shell
|
142
|
+
./bump
|
143
|
+
```
|
144
|
+
Notes:
|
145
|
+
* You can remove this section post having successfully scafolded your project.
|
146
|
+
* The following sections refer to the dummy application and service provided by this template.
|
147
|
+
Use them as inspiration and adapt them to your own project.
|
97
148
|
|
98
149
|
## Overview
|
99
150
|
|
@@ -122,6 +173,7 @@ uvx oe-python-template-example --help # all CLI commands
|
|
122
173
|
uvx oe-python-template-example command --help # all options for command
|
123
174
|
```
|
124
175
|
|
176
|
+
|
125
177
|
## Highlights
|
126
178
|
|
127
179
|
* Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
|
@@ -135,9 +187,10 @@ uvx oe-python-template-example command --help # all options for command
|
|
135
187
|
* Compliant with modern linting and formatting standards (powered by [Ruff](https://github.com/astral-sh/ruff))
|
136
188
|
* Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate))
|
137
189
|
* [A-grade code quality](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template-example) in security, maintainability, and reliability with low technical debt and low codesmell (verified by SonarQube)
|
138
|
-
* 1-liner for installation and execution of command line interface (CLI) via [uv(x)](https://github.com/astral-sh/uv) or [Docker](https://hub.docker.com/r/
|
190
|
+
* 1-liner for installation and execution of command line interface (CLI) via [uv(x)](https://github.com/astral-sh/uv) or [Docker](https://hub.docker.com/r/helmuthva/oe-python-template-example/tags)
|
139
191
|
* Setup for developing inside a [devcontainer](https://code.visualstudio.com/docs/devcontainers/containers) included (supports VSCode and GitHub Codespaces)
|
140
192
|
|
193
|
+
|
141
194
|
## Usage Examples
|
142
195
|
|
143
196
|
### Minimal Python Script:
|
@@ -245,16 +298,16 @@ Now run the usage examples again.
|
|
245
298
|
You can as well run the CLI within Docker.
|
246
299
|
|
247
300
|
```shell
|
248
|
-
docker run
|
249
|
-
docker run
|
250
|
-
docker run
|
251
|
-
docker run
|
301
|
+
docker run helmuthva/oe-python-template-example --help
|
302
|
+
docker run helmuthva/oe-python-template-example hello-world
|
303
|
+
docker run helmuthva/oe-python-template-example hello-world --json
|
304
|
+
docker run helmuthva/oe-python-template-example echo "Lorem"
|
252
305
|
```
|
253
306
|
|
254
307
|
Execute command:
|
255
308
|
|
256
309
|
```shell
|
257
|
-
docker run --env THE_VAR=MY_VALUE
|
310
|
+
docker run --env THE_VAR=MY_VALUE helmuthva/oe-python-template-example echo "Lorem Ipsum"
|
258
311
|
```
|
259
312
|
|
260
313
|
Or use docker compose
|
@@ -16,8 +16,8 @@
|
|
16
16
|
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commits/main/)
|
17
17
|
[](https://pypi.python.org/pypi/oe-python-template-example)
|
18
18
|
[](https://pypi.python.org/pypi/oe-python-template-example)
|
19
|
-
[](https://hub.docker.com/r/helmuthva/oe-python-template-example/tags)
|
20
|
+
[](https://hub.docker.com/r/helmuthva/oe-python-template-example/)
|
21
21
|
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template)
|
22
22
|
<!---
|
23
23
|
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/pkgs/container/oe-python-template-example)
|
@@ -32,9 +32,60 @@
|
|
32
32
|
Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
|
33
33
|
|
34
34
|
Use Cases:
|
35
|
-
1)
|
36
|
-
2)
|
37
|
-
3)
|
35
|
+
1) Fast and easy to use project setup
|
36
|
+
2) Consistent update of already scaffolded projects to benefit from new and improved features.
|
37
|
+
3) Dummy CLI application and service demonstrating example usage of the generated directory structure and build pipeline
|
38
|
+
|
39
|
+
## Scaffolding Instructions
|
40
|
+
|
41
|
+
Step 1: Install uv package manager and copier
|
42
|
+
```shell
|
43
|
+
if [[ "$OSTYPE" == "darwin"* ]]; then # Install dependencies for macOS X
|
44
|
+
if ! command -v brew &> /dev/null; then ## Install Homebrew if not present
|
45
|
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
46
|
+
fi
|
47
|
+
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then # Install dependencies for Linux
|
48
|
+
sudo apt-get update -y && sudo apt-get install curl -y # Install curl
|
49
|
+
fi
|
50
|
+
if ! command -v uvx &> /dev/null; then # Install uv package manager if not present
|
51
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
52
|
+
source $HOME/.local/bin/env
|
53
|
+
fi
|
54
|
+
uv tool install copier # Install copier as global tool
|
55
|
+
```
|
56
|
+
|
57
|
+
Step 2: Now create an empty repo on GitHub and clone it to your local machine in a directory of your choice. Change to that directory.
|
58
|
+
|
59
|
+
Step 3: Scaffold the project
|
60
|
+
```shell
|
61
|
+
copier copy gh:helmut-hoffer-von-ankershoffen/oe-python-template .
|
62
|
+
```
|
63
|
+
Step 4: Setup the local environment
|
64
|
+
|
65
|
+
```shell
|
66
|
+
uv run nox -s setup_eev
|
67
|
+
```
|
68
|
+
|
69
|
+
Step 5: Perform inital commit and push
|
70
|
+
```shell
|
71
|
+
git add .
|
72
|
+
git commit -m "feat: Initial commit"
|
73
|
+
```
|
74
|
+
|
75
|
+
Visit your GitHub repository and check the Actions tab. The CI workflow should fail at the SonarQube step,
|
76
|
+
as this external service is not yet configured for our new repository.
|
77
|
+
|
78
|
+
Step 6: Follow the instructions in SERVICE_CONNECTIONS.md to setup the connections to external services
|
79
|
+
such as Cloudcov, SonarQube Cloud, Read The Docs, Docker.io, GHCR.io and Streamlit Community Cloud.
|
80
|
+
|
81
|
+
Step 7: Release the first versions
|
82
|
+
```shell
|
83
|
+
./bump
|
84
|
+
```
|
85
|
+
Notes:
|
86
|
+
* You can remove this section post having successfully scafolded your project.
|
87
|
+
* The following sections refer to the dummy application and service provided by this template.
|
88
|
+
Use them as inspiration and adapt them to your own project.
|
38
89
|
|
39
90
|
## Overview
|
40
91
|
|
@@ -63,6 +114,7 @@ uvx oe-python-template-example --help # all CLI commands
|
|
63
114
|
uvx oe-python-template-example command --help # all options for command
|
64
115
|
```
|
65
116
|
|
117
|
+
|
66
118
|
## Highlights
|
67
119
|
|
68
120
|
* Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
|
@@ -76,9 +128,10 @@ uvx oe-python-template-example command --help # all options for command
|
|
76
128
|
* Compliant with modern linting and formatting standards (powered by [Ruff](https://github.com/astral-sh/ruff))
|
77
129
|
* Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate))
|
78
130
|
* [A-grade code quality](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template-example) in security, maintainability, and reliability with low technical debt and low codesmell (verified by SonarQube)
|
79
|
-
* 1-liner for installation and execution of command line interface (CLI) via [uv(x)](https://github.com/astral-sh/uv) or [Docker](https://hub.docker.com/r/
|
131
|
+
* 1-liner for installation and execution of command line interface (CLI) via [uv(x)](https://github.com/astral-sh/uv) or [Docker](https://hub.docker.com/r/helmuthva/oe-python-template-example/tags)
|
80
132
|
* Setup for developing inside a [devcontainer](https://code.visualstudio.com/docs/devcontainers/containers) included (supports VSCode and GitHub Codespaces)
|
81
133
|
|
134
|
+
|
82
135
|
## Usage Examples
|
83
136
|
|
84
137
|
### Minimal Python Script:
|
@@ -186,16 +239,16 @@ Now run the usage examples again.
|
|
186
239
|
You can as well run the CLI within Docker.
|
187
240
|
|
188
241
|
```shell
|
189
|
-
docker run
|
190
|
-
docker run
|
191
|
-
docker run
|
192
|
-
docker run
|
242
|
+
docker run helmuthva/oe-python-template-example --help
|
243
|
+
docker run helmuthva/oe-python-template-example hello-world
|
244
|
+
docker run helmuthva/oe-python-template-example hello-world --json
|
245
|
+
docker run helmuthva/oe-python-template-example echo "Lorem"
|
193
246
|
```
|
194
247
|
|
195
248
|
Execute command:
|
196
249
|
|
197
250
|
```shell
|
198
|
-
docker run --env THE_VAR=MY_VALUE
|
251
|
+
docker run --env THE_VAR=MY_VALUE helmuthva/oe-python-template-example echo "Lorem Ipsum"
|
199
252
|
```
|
200
253
|
|
201
254
|
Or use docker compose
|
@@ -0,0 +1,32 @@
|
|
1
|
+
[🧠 OE Python Template Example](https://oe-python-template-example.readthedocs.io/en/latest/)
|
2
|
+
|
3
|
+
## [0.0.4](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/compare/v0.0.3..v0.0.4) - 2025-03-02
|
4
|
+
|
5
|
+
### 📚 Documentation
|
6
|
+
|
7
|
+
- Update - ([45fbb4d](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/45fbb4d287dc8575bbe5895f14f52186a42e8c56))
|
8
|
+
|
9
|
+
|
10
|
+
## [0.0.3](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/compare/v0.0.2..v0.0.3) - 2025-03-02
|
11
|
+
|
12
|
+
### ⚙️ Miscellaneous Tasks
|
13
|
+
|
14
|
+
- Docker.io username - ([afc5d08](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/afc5d08c6ccc5f6c6c3824600c4e0fdef1690154))
|
15
|
+
- Copier from repo - ([fa01793](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/fa017930245289f795bbfe9a3204f75103fd19bc))
|
16
|
+
|
17
|
+
|
18
|
+
## [0.0.2] - 2025-03-02
|
19
|
+
|
20
|
+
### ⛰️ Features
|
21
|
+
|
22
|
+
- Initial commit - ([7986b87](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/7986b87fef683b0274acc87c6a11404f13de874e))
|
23
|
+
|
24
|
+
### ⚙️ Miscellaneous Tasks
|
25
|
+
|
26
|
+
- Bump - ([21554f6](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/21554f61f5cee12c9595b71381888bfa281c8005))
|
27
|
+
|
28
|
+
## New Contributors ❤️
|
29
|
+
|
30
|
+
* @helmut-hoffer-von-ankershoffen made their first contribution
|
31
|
+
|
32
|
+
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/SERVICE_CONNECTIONS.md
RENAMED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
1. Sign-Up at https://app.codecov.io/
|
6
6
|
2. Configure via https://app.codecov.io/gh/helmut-hoffer-von-ankershoffen
|
7
|
-
3. Copy value of `CODECOV_TOKEN` into your clipboard
|
7
|
+
3. Select (o) Repository token. Copy value of `CODECOV_TOKEN` into your clipboard
|
8
8
|
4. Goto https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/settings/secrets/actions/new and create a new repository secret called `CODECOV_TOKEN`, pasting the token from your clipboard as value
|
9
9
|
5. Re-run the `CI / test` GitHub job in case you tried before and it failed as Codecov was not yet wired up
|
10
10
|
|
@@ -21,7 +21,7 @@
|
|
21
21
|
|
22
22
|
## Generating and publishing documentation via ReadTheDocs (readthedocs.org)
|
23
23
|
|
24
|
-
1. Sign-Up at https://
|
24
|
+
1. Sign-Up at https://readthedocs.org/
|
25
25
|
2. Goto https://app.readthedocs.org/dashboard/import/ and search for your repo by enterin oe-python-template-example in the search bar
|
26
26
|
3. Select the repo and click Continue, then Next.
|
27
27
|
4. On https://app.readthedocs.org/projects/oe-python-template-example/ wait for the build of the documentation to finish
|
@@ -42,8 +42,8 @@
|
|
42
42
|
## Publishing Docker images to Docker Hub (docker.io)
|
43
43
|
|
44
44
|
1. Sign-Up at https://hub.docker.com/
|
45
|
-
2. Click on your avatar or profile pic and copy the username
|
46
|
-
3. Goto https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/settings/secrets/actions/new and create a new repository secret called `
|
45
|
+
2. Click on your avatar or profile pic and copy the username below that into your clipboard.
|
46
|
+
3. Goto https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/settings/secrets/actions/new and create a new repository secret called `DOCKER_USERNAME`, setting your username at Docker Hub as the value
|
47
47
|
4. Goto https://app.docker.com/settings/personal-access-tokens/create and create a new access token setting the description to oe-python-template-example, permissions Read & Write & Delete. Copy the value of the token into your clipboard.
|
48
48
|
5. Goto https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/settings/secrets/actions/new and create a new repository secret called `DOCKER_PASSWORD`, pasting the token from your clipboard as the value
|
49
49
|
6. In case your `CI / test` job passed, and you are ready to release and publish, bump the version of your project by executing `bump`. In case you tried before completing this setup script, you can as well go to https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/actions/workflows/package-build-publish-release.yml, click on the failed job, and re-run.
|
@@ -0,0 +1 @@
|
|
1
|
+
0.0.4
|
@@ -16,8 +16,8 @@
|
|
16
16
|
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commits/main/)
|
17
17
|
[](https://pypi.python.org/pypi/oe-python-template-example)
|
18
18
|
[](https://pypi.python.org/pypi/oe-python-template-example)
|
19
|
-
[](https://hub.docker.com/r/helmuthva/oe-python-template-example/tags)
|
20
|
+
[](https://hub.docker.com/r/helmuthva/oe-python-template-example/)
|
21
21
|
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template)
|
22
22
|
<!---
|
23
23
|
[](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/pkgs/container/oe-python-template-example)
|
@@ -1,9 +1,60 @@
|
|
1
1
|
Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
|
2
2
|
|
3
3
|
Use Cases:
|
4
|
-
1)
|
5
|
-
2)
|
6
|
-
3)
|
4
|
+
1) Fast and easy to use project setup
|
5
|
+
2) Consistent update of already scaffolded projects to benefit from new and improved features.
|
6
|
+
3) Dummy CLI application and service demonstrating example usage of the generated directory structure and build pipeline
|
7
|
+
|
8
|
+
## Scaffolding Instructions
|
9
|
+
|
10
|
+
Step 1: Install uv package manager and copier
|
11
|
+
```shell
|
12
|
+
if [[ "$OSTYPE" == "darwin"* ]]; then # Install dependencies for macOS X
|
13
|
+
if ! command -v brew &> /dev/null; then ## Install Homebrew if not present
|
14
|
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
15
|
+
fi
|
16
|
+
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then # Install dependencies for Linux
|
17
|
+
sudo apt-get update -y && sudo apt-get install curl -y # Install curl
|
18
|
+
fi
|
19
|
+
if ! command -v uvx &> /dev/null; then # Install uv package manager if not present
|
20
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
21
|
+
source $HOME/.local/bin/env
|
22
|
+
fi
|
23
|
+
uv tool install copier # Install copier as global tool
|
24
|
+
```
|
25
|
+
|
26
|
+
Step 2: Now create an empty repo on GitHub and clone it to your local machine in a directory of your choice. Change to that directory.
|
27
|
+
|
28
|
+
Step 3: Scaffold the project
|
29
|
+
```shell
|
30
|
+
copier copy gh:helmut-hoffer-von-ankershoffen/oe-python-template .
|
31
|
+
```
|
32
|
+
Step 4: Setup the local environment
|
33
|
+
|
34
|
+
```shell
|
35
|
+
uv run nox -s setup_eev
|
36
|
+
```
|
37
|
+
|
38
|
+
Step 5: Perform inital commit and push
|
39
|
+
```shell
|
40
|
+
git add .
|
41
|
+
git commit -m "feat: Initial commit"
|
42
|
+
```
|
43
|
+
|
44
|
+
Visit your GitHub repository and check the Actions tab. The CI workflow should fail at the SonarQube step,
|
45
|
+
as this external service is not yet configured for our new repository.
|
46
|
+
|
47
|
+
Step 6: Follow the instructions in SERVICE_CONNECTIONS.md to setup the connections to external services
|
48
|
+
such as Cloudcov, SonarQube Cloud, Read The Docs, Docker.io, GHCR.io and Streamlit Community Cloud.
|
49
|
+
|
50
|
+
Step 7: Release the first versions
|
51
|
+
```shell
|
52
|
+
./bump
|
53
|
+
```
|
54
|
+
Notes:
|
55
|
+
* You can remove this section post having successfully scafolded your project.
|
56
|
+
* The following sections refer to the dummy application and service provided by this template.
|
57
|
+
Use them as inspiration and adapt them to your own project.
|
7
58
|
|
8
59
|
## Overview
|
9
60
|
|
@@ -32,6 +83,7 @@ uvx oe-python-template-example --help # all CLI commands
|
|
32
83
|
uvx oe-python-template-example command --help # all options for command
|
33
84
|
```
|
34
85
|
|
86
|
+
|
35
87
|
## Highlights
|
36
88
|
|
37
89
|
* Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
|
@@ -45,9 +97,10 @@ uvx oe-python-template-example command --help # all options for command
|
|
45
97
|
* Compliant with modern linting and formatting standards (powered by [Ruff](https://github.com/astral-sh/ruff))
|
46
98
|
* Up-to-date dependencies (monitored by [Renovate](https://github.com/renovatebot/renovate))
|
47
99
|
* [A-grade code quality](https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template-example) in security, maintainability, and reliability with low technical debt and low codesmell (verified by SonarQube)
|
48
|
-
* 1-liner for installation and execution of command line interface (CLI) via [uv(x)](https://github.com/astral-sh/uv) or [Docker](https://hub.docker.com/r/
|
100
|
+
* 1-liner for installation and execution of command line interface (CLI) via [uv(x)](https://github.com/astral-sh/uv) or [Docker](https://hub.docker.com/r/helmuthva/oe-python-template-example/tags)
|
49
101
|
* Setup for developing inside a [devcontainer](https://code.visualstudio.com/docs/devcontainers/containers) included (supports VSCode and GitHub Codespaces)
|
50
102
|
|
103
|
+
|
51
104
|
## Usage Examples
|
52
105
|
|
53
106
|
### Minimal Python Script:
|
@@ -155,16 +208,16 @@ Now run the usage examples again.
|
|
155
208
|
You can as well run the CLI within Docker.
|
156
209
|
|
157
210
|
```shell
|
158
|
-
docker run
|
159
|
-
docker run
|
160
|
-
docker run
|
161
|
-
docker run
|
211
|
+
docker run helmuthva/oe-python-template-example --help
|
212
|
+
docker run helmuthva/oe-python-template-example hello-world
|
213
|
+
docker run helmuthva/oe-python-template-example hello-world --json
|
214
|
+
docker run helmuthva/oe-python-template-example echo "Lorem"
|
162
215
|
```
|
163
216
|
|
164
217
|
Execute command:
|
165
218
|
|
166
219
|
```shell
|
167
|
-
docker run --env THE_VAR=MY_VALUE
|
220
|
+
docker run --env THE_VAR=MY_VALUE helmuthva/oe-python-template-example echo "Lorem Ipsum"
|
168
221
|
```
|
169
222
|
|
170
223
|
Or use docker compose
|
@@ -25,7 +25,7 @@ extensions = [
|
|
25
25
|
project = "oe-python-template-example"
|
26
26
|
author = "Helmut Hoffer von Ankershoffen"
|
27
27
|
copyright = f" (c) 2025-{datetime.now(UTC).year}, {author}" # noqa: A001
|
28
|
-
version = "0.0.
|
28
|
+
version = "0.0.4"
|
29
29
|
release = version
|
30
30
|
github_username = "helmut-hoffer-von-ankershoffen"
|
31
31
|
github_repository = "oe-python-template-example"
|
@@ -76,7 +76,7 @@ html_theme_options = {
|
|
76
76
|
"announcement": (
|
77
77
|
'<a target="_blank" href="https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example">GitHub</a> - ' # noqa: E501
|
78
78
|
'<a target="_blank" href="https://pypi.org/project/oe-python-template-example">PyPI</a> - '
|
79
|
-
'<a target="_blank" href="https://hub.docker.com/r/
|
79
|
+
'<a target="_blank" href="https://hub.docker.com/r/helmuthva/oe-python-template-example/tags">Docker</a> - '
|
80
80
|
'<a target="_blank" href="https://sonarcloud.io/summary/new_code?id=helmut-hoffer-von-ankershoffen_oe-python-template-example">SonarQube</a> - ' # noqa: E501
|
81
81
|
'<a target="_blank" href="https://app.codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template-example">Codecov</a>'
|
82
82
|
),
|
@@ -20,7 +20,7 @@
|
|
20
20
|
:github:
|
21
21
|
:pypi: oe-python-template-example
|
22
22
|
|
23
|
-
Docker <https://hub.docker.com/r/
|
23
|
+
Docker <https://hub.docker.com/r/helmuthva/oe-python-template-example/tags>
|
24
24
|
SonarQube <https://sonarcloud.io/summary/new_code?id=>
|
25
25
|
Codecov <https://app.codecov.io/gh/helmut-hoffer-von-ankershoffen/oe-python-template-example>
|
26
26
|
ghcr.io <https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/pkgs/container/oe-python-template-example>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "oe-python-template-example"
|
3
|
-
version = "0.0.
|
3
|
+
version = "0.0.4"
|
4
4
|
description = "🧠 Example project scaffolded and kept up to date with OE Python Template (oe-python-template)."
|
5
5
|
readme = "README.md"
|
6
6
|
authors = [
|
@@ -193,7 +193,7 @@ source = ["src/"]
|
|
193
193
|
|
194
194
|
|
195
195
|
[tool.bumpversion]
|
196
|
-
current_version = "0.0.
|
196
|
+
current_version = "0.0.4"
|
197
197
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
198
198
|
serialize = ["{major}.{minor}.{patch}"]
|
199
199
|
search = "{current_version}"
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/sonar-project.properties
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
sonar.projectKey=helmut-hoffer-von-ankershoffen_oe-python-template-example
|
2
2
|
sonar.organization=helmut-hoffer-von-ankershoffen
|
3
|
-
sonar.projectVersion=0.0.
|
3
|
+
sonar.projectVersion=0.0.4
|
4
4
|
sonar.projectDescription=OE Python Template Example
|
5
5
|
sonar.links.homepage=https://oe-python-template-example.readthedocs.io/en/latest/
|
6
6
|
sonar.links.scm=https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example
|
@@ -1,17 +0,0 @@
|
|
1
|
-
[🧠 OE Python Template Example](https://oe-python-template-example.readthedocs.io/en/latest/)
|
2
|
-
|
3
|
-
## [0.0.2] - 2025-03-02
|
4
|
-
|
5
|
-
### ⛰️ Features
|
6
|
-
|
7
|
-
- Initial commit - ([7986b87](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/7986b87fef683b0274acc87c6a11404f13de874e))
|
8
|
-
|
9
|
-
### ⚙️ Miscellaneous Tasks
|
10
|
-
|
11
|
-
- Bump - ([21554f6](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/21554f61f5cee12c9595b71381888bfa281c8005))
|
12
|
-
|
13
|
-
## New Contributors ❤️
|
14
|
-
|
15
|
-
* @helmut-hoffer-von-ankershoffen made their first contribution
|
16
|
-
|
17
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
[🧠 OE Python Template Example](https://oe-python-template-example.readthedocs.io/en/latest/)
|
2
|
-
|
3
|
-
## [0.0.2] - 2025-03-02
|
4
|
-
|
5
|
-
### ⛰️ Features
|
6
|
-
|
7
|
-
- Initial commit - ([7986b87](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/7986b87fef683b0274acc87c6a11404f13de874e))
|
8
|
-
|
9
|
-
### ⚙️ Miscellaneous Tasks
|
10
|
-
|
11
|
-
- Bump - ([21554f6](https://github.com/helmut-hoffer-von-ankershoffen/oe-python-template-example/commit/21554f61f5cee12c9595b71381888bfa281c8005))
|
12
|
-
|
13
|
-
## New Contributors ❤️
|
14
|
-
|
15
|
-
* @helmut-hoffer-von-ankershoffen made their first contribution
|
16
|
-
|
17
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
0.0.2
|
File without changes
|
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.devcontainer/Dockerfile
RENAMED
File without changes
|
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.devcontainer/onCreateCommand
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.pre-commit-config.yaml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/.vscode/extensions.json
RENAMED
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
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/_static/.keep
RENAMED
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/contributing.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/reference.rst
RENAMED
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/docs/source/release-notes.rst
RENAMED
File without changes
|
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/examples/notebook.ipynb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/CHANGELOG.md
RENAMED
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/LICENSE-APACHE
RENAMED
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/LICENSE-MIT
RENAMED
File without changes
|
{oe_python_template_example-0.0.2 → oe_python_template_example-0.0.4}/git-cliff-2.7.0/README.md
RENAMED
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
|