Skip to content

Commit 381d2e9

Browse files
authored
feat!: Update lower Python dependency to 3.11 (#278)
feat: Update Poetry dependencies chore: Config file updates
1 parent c341043 commit 381d2e9

7 files changed

Lines changed: 572 additions & 416 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
uses: broadinstitute/shared-workflows/.github/workflows/python-unit-test.yaml@v6.0.0
2323
with:
2424
python_package_name: cert_manager
25-
python_versions: '{ "versions": [ "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ] }'
25+
python_versions: '{ "versions": [ "3.11", "3.12", "3.13", "3.14" ] }'

.gitignore

Lines changed: 272 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,274 @@
1-
# Virtual environment
2-
/.venv/
3-
4-
# Temporary Python files
5-
*.pyc
1+
# https://github.com/github/gitignore/blob/main/Python.gitignore
2+
# Byte-compiled / optimized / DLL files
63
__pycache__/
4+
*.py[codz]
5+
*$py.class
6+
7+
# C extensions
8+
*.so
9+
10+
# Distribution / packaging
11+
.Python
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
744
.coverage
8-
/tmp/
9-
10-
# Generated project
11-
/build/*
12-
/dist
13-
/.eggs/
14-
/*.egg-info
15-
/TemplateDemo/
16-
*.xml
17-
18-
# VSCode settings
19-
.vscode
20-
.ruff_cache
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py.cover
51+
.hypothesis/
52+
.pytest_cache/
53+
cover/
54+
55+
# Translations
56+
*.mo
57+
*.pot
58+
59+
# Django stuff:
60+
*.log
61+
local_settings.py
62+
db.sqlite3
63+
db.sqlite3-journal
64+
65+
# Flask stuff:
66+
instance/
67+
.webassets-cache
68+
69+
# Scrapy stuff:
70+
.scrapy
71+
72+
# Sphinx documentation
73+
docs/_build/
74+
75+
# PyBuilder
76+
.pybuilder/
77+
target/
78+
79+
# Jupyter Notebook
80+
.ipynb_checkpoints
81+
82+
# IPython
83+
profile_default/
84+
ipython_config.py
85+
86+
# pyenv
87+
# For a library or package, you might want to ignore these files since the code is
88+
# intended to run in multiple environments; otherwise, check them in:
89+
# .python-version
90+
91+
# pipenv
92+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
94+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
95+
# install all needed dependencies.
96+
# Pipfile.lock
97+
98+
# UV
99+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100+
# This is especially recommended for binary packages to ensure reproducibility, and is more
101+
# commonly ignored for libraries.
102+
# uv.lock
103+
104+
# poetry
105+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106+
# This is especially recommended for binary packages to ensure reproducibility, and is more
107+
# commonly ignored for libraries.
108+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109+
# poetry.lock
110+
# poetry.toml
111+
112+
# pdm
113+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116+
# pdm.lock
117+
# pdm.toml
118+
.pdm-python
119+
.pdm-build/
120+
121+
# pixi
122+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123+
# pixi.lock
124+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125+
# in the .venv directory. It is recommended not to include this directory in version control.
126+
.pixi
127+
128+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
129+
__pypackages__/
130+
131+
# Celery stuff
132+
celerybeat-schedule
133+
celerybeat.pid
134+
135+
# Redis
136+
*.rdb
137+
*.aof
138+
*.pid
139+
140+
# RabbitMQ
141+
mnesia/
142+
rabbitmq/
143+
rabbitmq-data/
144+
145+
# ActiveMQ
146+
activemq-data/
147+
148+
# SageMath parsed files
149+
*.sage.py
150+
151+
# Environments
152+
.env
153+
.envrc
154+
.venv
155+
env/
156+
venv/
157+
ENV/
158+
env.bak/
159+
venv.bak/
160+
161+
# Spyder project settings
162+
.spyderproject
163+
.spyproject
164+
165+
# Rope project settings
166+
.ropeproject
167+
168+
# mkdocs documentation
169+
/site
170+
171+
# mypy
172+
.mypy_cache/
173+
.dmypy.json
174+
dmypy.json
175+
176+
# Pyre type checker
177+
.pyre/
178+
179+
# pytype static type analyzer
180+
.pytype/
181+
182+
# Cython debug symbols
183+
cython_debug/
184+
185+
# PyCharm
186+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
187+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
188+
# and can be added to the global gitignore or merged into this file. For a more nuclear
189+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
190+
# .idea/
191+
192+
# Abstra
193+
# Abstra is an AI-powered process automation framework.
194+
# Ignore directories containing user credentials, local state, and settings.
195+
# Learn more at https://abstra.io/docs
196+
.abstra/
197+
198+
# Visual Studio Code
199+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
200+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
201+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
202+
# you could uncomment the following to ignore the entire vscode folder
203+
# .vscode/
204+
205+
# Ruff stuff:
206+
.ruff_cache/
207+
208+
# PyPI configuration file
209+
.pypirc
210+
211+
# Marimo
212+
marimo/_static/
213+
marimo/_lsp/
214+
__marimo__/
215+
216+
# Streamlit
217+
.streamlit/secrets.toml
218+
219+
# https://github.com/github/gitignore/blob/main/Global/macOS.gitignore
220+
# General
221+
.DS_Store
222+
__MACOSX/
223+
.AppleDouble
224+
.LSOverride
225+
Icon[]
226+
227+
# Thumbnails
228+
._*
229+
230+
# Files that might appear in the root of a volume
231+
.DocumentRevisions-V100
232+
.fseventsd
233+
.Spotlight-V100
234+
.TemporaryItems
235+
.Trashes
236+
.VolumeIcon.icns
237+
.com.apple.timemachine.donotpresent
238+
239+
# Directories potentially created on remote AFP share
240+
.AppleDB
241+
.AppleDesktop
242+
Network Trash Folder
243+
Temporary Items
244+
.apdisk
245+
246+
# https://github.com/github/gitignore/blob/main/Global/Windows.gitignore
247+
# Windows thumbnail cache files
248+
Thumbs.db
249+
Thumbs.db:encryptable
250+
ehthumbs.db
251+
ehthumbs_vista.db
252+
253+
# Dump file
254+
*.stackdump
255+
256+
# Folder config file
257+
[Dd]esktop.ini
258+
259+
# Recycle Bin used on file shares
260+
$RECYCLE.BIN/
261+
262+
# Windows Installer files
263+
*.cab
264+
*.msi
265+
*.msix
266+
*.msm
267+
*.msp
268+
269+
# Windows shortcuts
270+
*.lnk
271+
272+
# Local ignores
273+
etc/*
274+
tmp/*

.pre-commit-config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ repos:
1717
- --allow-missing-credentials
1818
- id: detect-private-key
1919
- id: end-of-file-fixer
20-
exclude: ".bumpversion.cfg"
20+
exclude: .bumpversion.cfg
2121
- id: mixed-line-ending
22+
exclude: .gitignore
2223
- id: name-tests-test
2324
args:
2425
- --django
@@ -27,16 +28,16 @@ repos:
2728
- -b main
2829
- id: trailing-whitespace
2930
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.13.1
31+
rev: v0.15.14
3132
hooks:
3233
- id: ruff
3334
args: [--fix, --exit-non-zero-on-fix]
3435
- repo: https://github.com/abravalheri/validate-pyproject
35-
rev: v0.24.1
36+
rev: v0.25
3637
hooks:
3738
- id: validate-pyproject
3839
- repo: https://github.com/adrienverge/yamllint.git
39-
rev: v1.37.1
40+
rev: v1.38.0
4041
hooks:
4142
- id: yamllint
4243
args:

Containerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM docker.io/node:bookworm AS prettier-install
2-
RUN yarn add prettier@3
2+
RUN npm install -g yarn \
3+
&& yarn add prettier@3
34

45
FROM python:3.11-slim-bookworm
56

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Manager REST API. python-cert_manager is open sourced under the
88

99
## Basics
1010

11-
`cert_manager` runs on [Python][1] >= 3.9
11+
`cert_manager` runs on [Python][1] >= 3.11
1212

1313
## Features
1414

0 commit comments

Comments
 (0)