Skip to content

Commit

Permalink
feature/template maintenance 20240725 (#43)
Browse files Browse the repository at this point in the history
# Added
- add .jpeg to ignores, for playright screenshots

# Changes
- update a bunch of requirements and dependencies

# Fixed
- fix `pdm lock-all` by using wildcard python `3.11.*` versions

---------

Signed-off-by: Nicolas Drebenstedt <[email protected]>
Co-authored-by: RKI | Metadata Exchange <[email protected]>
  • Loading branch information
cutoffthetop and RKIMetadataExchange authored Aug 12, 2024
1 parent cf7f28e commit 6c948ad
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/renovatebot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 1

- name: Run renovatebot
uses: renovatebot/[email protected].2
uses: renovatebot/[email protected].4
env:
RENOVATE_GIT_PRIVATE_KEY: ${{ secrets.GPG_SIGNING_KEY }}
RENOVATE_REPOSITORIES: "robert-koch-institut/mex-template"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ htmlcov/
nosetests.xml
coverage.xml
*.cover
*.jpeg
*.py,cover
.hypothesis/
.pytest_cache/
Expand Down
1 change: 1 addition & 0 deletions mex-{{ cookiecutter.project_name }}/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ htmlcov/
nosetests.xml
coverage.xml
*.cover
*.jpeg
*.py,cover
.hypothesis/
.pytest_cache/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
needs: release
steps:
- name: Build, tag and push docker image to ghcr
uses: GlueOps/[email protected].3
uses: GlueOps/[email protected].4
with:
{% raw %}tags: "${{ github.sha }},${{ needs.release.outputs.tag }},latest"{% endraw %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 1

- name: Run renovatebot
uses: renovatebot/[email protected].2
uses: renovatebot/[email protected].4
env:
RENOVATE_GIT_PRIVATE_KEY: {% raw %}${{ secrets.GPG_SIGNING_KEY }}{% endraw %}
RENOVATE_REPOSITORIES: "robert-koch-institut/mex-{{ cookiecutter.project_name }}"
Expand Down
1 change: 1 addition & 0 deletions mex-{{ cookiecutter.project_name }}/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ htmlcov/
nosetests.xml
coverage.xml
*.cover
*.jpeg
*.py,cover
.hypothesis/
.pytest_cache/
Expand Down
2 changes: 1 addition & 1 deletion mex-{{ cookiecutter.project_name }}/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM python:3.11 as base
FROM python:3.11 AS base

LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.description="{{ cookiecutter.short_summary }}"
Expand Down
4 changes: 2 additions & 2 deletions mex-{{ cookiecutter.project_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ optional-dependencies.dev = [
"pytest-xdist==3.6.1",
"pytest==8.3.1",
"ruff==0.5.4",
"sphinx==7.4.0",
"sphinx==7.4.5",
]

[project.scripts]
Expand All @@ -40,7 +40,7 @@ distribution = true

[tool.pdm.scripts]
update-all = { cmd = "pdm update --group :all --update-all --save-compatible" }
lock-all = { cmd = "pdm lock --group :all --refresh" }
lock-all = { cmd = "pdm lock --group :all --python='==3.11.*'" }
install-all = { cmd = "pdm install --group :all --frozen-lockfile" }
export-all = { cmd = "pdm export --group :all --no-hashes -f requirements" }
apidoc = { cmd = "pdm run sphinx-apidoc -f -o docs/source mex" }
Expand Down
4 changes: 2 additions & 2 deletions mex-{{ cookiecutter.project_name }}/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cruft==2.15.0
mex-release @ git+https://github.com/robert-koch-institut/mex-release.git
pdm==2.17.1
pre-commit==3.7.1
pdm==2.17.3
pre-commit==3.8.0
wheel==0.43.0
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cruft==2.15.0
mex-release @ git+https://github.com/robert-koch-institut/mex-release.git
pdm==2.17.1
pre-commit==3.7.1
pdm==2.17.3
pre-commit==3.8.0
wheel==0.43.0

0 comments on commit 6c948ad

Please sign in to comment.