Skip to content

Commit 2aec6af

Browse files
authored
set up repo (#1)
* uv sync still makes problems [no ci] * uv sync now works [no ci] * ci should work now
1 parent 094f0e9 commit 2aec6af

File tree

9 files changed

+77
-68
lines changed

9 files changed

+77
-68
lines changed

.github/rulesets/branches/main.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "main",
44
"target": "branch",
55
"source_type": "Repository",
6-
"source": "EED-Solutions/eed_package_template",
6+
"source": "EED-Solutions/eed_docker_python_uv",
77
"enforcement": "active",
88
"conditions": {
99
"ref_name": {

.github/rulesets/tags/semantic versioning.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "semantic versioning",
44
"target": "tag",
55
"source_type": "Repository",
6-
"source": "EED-Solutions/eed_package_template",
6+
"source": "EED-Solutions/eed_docker_python_uv",
77
"enforcement": "active",
88
"conditions": {
99
"ref_name": {
@@ -56,4 +56,4 @@
5656
}
5757
],
5858
"bypass_actors": []
59-
}
59+
}

README.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
# eed_package_template
22

3-
## Creating a New Repository from This Template
3+
## Description
44

5-
1. In the EED-Solutions organization, create a new repository using this template and assign it a new name, such as `eed_my_new_package`.
6-
2. Create a new branch (e.g., `repo_configuration`).
7-
3. Delete the `uv.lock` file.
8-
4. Update `project.toml` by renaming `eed-package-template` to your new package name (e.g., `eed-my-new-package`).
9-
5. Set up a virtual environment using `uv`.
10-
6. Install pre-commit hooks.
11-
7. Add a note indicating the commit ID from which this repository was created, for example:
5+
- created from this template: <https://github.com/EED-Solutions/eed_package_template/tree/f94454015a1b237a0699bf26f8edcdb3c861cc95>
126
```
13-
- created from this template: https://github.com/EED-Solutions/eed_package_template/releases/tag/0.1.0
14-
```
15-
8. Rename the directory `src/eed_package_template` to match your new package name (e.g., `src/eed_my_new_package`).
16-
9. Use VS Code's find and replace feature to update all instances of `eed_package_template` with your new package name.
17-
10. Commit all changes, create a pull request, and ensure all CI pipelines pass.
18-
11. Update repository settings as needed (e.g., import branch/tag rulesets, general settings). For more information, see [this guide](https://eed-solutions.atlassian.net/wiki/x/BIA8Mw) (private access). Rulesets are documented under ``.github\rulesets`` and can be imported.
19-
12. Merge the pull request and create the initial release (e.g., `0.1.0`).
207
218
## Github actions
229

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
2-
name = "eed-package-template"
3-
version = "0.2.0"
4-
description = "Add your description here"
2+
name = "eed-docker-python-uv"
3+
version = "0.1.0"
4+
description = "Manages the Python environment for EED-Solutions Docker images using uv."
55
readme = "README.md"
66
authors = [
77
{ name = "EED85", email = "eric.brahmann@eed-solutions.de" }
@@ -24,7 +24,7 @@ dev = [
2424
]
2525

2626
[project.scripts]
27-
hello_world = "eed_package_template.hello_world:hello_world"
27+
hello_world = "eed_docker_python_uv.hello_world:hello_world"
2828

2929
[tool.ruff]
3030
# Set the maximum line length to 79.

tests/test_hello_world.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from eed_package_template import hello_world
1+
from eed_docker_python_uv import hello_world
22

33

44
def test_hello_world() -> None:
@@ -12,6 +12,6 @@ def test_hello_world() -> None:
1212
assert "Hello from" in result, (
1313
"Greeting message should start with 'Hello from'"
1414
)
15-
assert "eed_package_template" in result, (
15+
assert "eed_docker_python_uv" in result, (
1616
"Greeting message should include 'eed-package-template'"
1717
)

uv.lock

Lines changed: 66 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)