oe-python-template-example 0.0.3__py3-none-any.whl → 0.0.4__py3-none-any.whl
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.3.dist-info → oe_python_template_example-0.0.4.dist-info}/METADATA +57 -4
- {oe_python_template_example-0.0.3.dist-info → oe_python_template_example-0.0.4.dist-info}/RECORD +5 -5
- {oe_python_template_example-0.0.3.dist-info → oe_python_template_example-0.0.4.dist-info}/WHEEL +0 -0
- {oe_python_template_example-0.0.3.dist-info → oe_python_template_example-0.0.4.dist-info}/entry_points.txt +0 -0
- {oe_python_template_example-0.0.3.dist-info → oe_python_template_example-0.0.4.dist-info}/licenses/LICENSE +0 -0
{oe_python_template_example-0.0.3.dist-info → oe_python_template_example-0.0.4.dist-info}/METADATA
RENAMED
@@ -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/
|
@@ -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).
|
@@ -138,6 +190,7 @@ uvx oe-python-template-example command --help # all options for command
|
|
138
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:
|
{oe_python_template_example-0.0.3.dist-info → oe_python_template_example-0.0.4.dist-info}/RECORD
RENAMED
@@ -2,8 +2,8 @@ oe_python_template_example/__init__.py,sha256=-sCwS9lD6CvgWw88f7snBDF947PWIhEupJ
|
|
2
2
|
oe_python_template_example/cli.py,sha256=6giUEesoEuwytZnthiTBH9-ALkiwdkTL4TEb7vsqbGM,1351
|
3
3
|
oe_python_template_example/constants.py,sha256=6uQHr2CRgzWQWhUQCRRKiPuFhzKB2iblZk3dIRQ5dDc,358
|
4
4
|
oe_python_template_example/service.py,sha256=ZpsZFnnJm_3EqoVqGomfAyIjLVmWJFuJ3G9qatWj5yI,516
|
5
|
-
oe_python_template_example-0.0.
|
6
|
-
oe_python_template_example-0.0.
|
7
|
-
oe_python_template_example-0.0.
|
8
|
-
oe_python_template_example-0.0.
|
9
|
-
oe_python_template_example-0.0.
|
5
|
+
oe_python_template_example-0.0.4.dist-info/METADATA,sha256=-pexoz-5o86urvLccP2wWgrm1s29wUIIgPZDWyuUEnc,18808
|
6
|
+
oe_python_template_example-0.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
7
|
+
oe_python_template_example-0.0.4.dist-info/entry_points.txt,sha256=S2eCPB45b1Wgj_GsDRFAN-e4h7dBA5UPxT8od98erDE,82
|
8
|
+
oe_python_template_example-0.0.4.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
|
9
|
+
oe_python_template_example-0.0.4.dist-info/RECORD,,
|
{oe_python_template_example-0.0.3.dist-info → oe_python_template_example-0.0.4.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|