Skip to content

Commit feee20c

Browse files
committed
fix: uv, update deps, fix tests
- switch to uv, update transitive deps, gitignore - node20 deprecations - fix 2 tests tripping over dtype issues
1 parent d22552c commit feee20c

6 files changed

Lines changed: 1864 additions & 893 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ permissions:
1414

1515
env:
1616
DEFAULT_PYTHON_VERSION: '3.11'
17-
DEFAULT_POETRY_VERSION: '1.6.0'
18-
1917

2018

2119
jobs:
@@ -37,12 +35,13 @@ jobs:
3735

3836

3937
steps:
40-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v5
4139

42-
- uses: corriander/gha/poetry/test@main
40+
- uses: actions/setup-python@v6
4341
with:
4442
python-version: ${{ matrix.python-version == 'default' && env.DEFAULT_PYTHON_VERSION || matrix.python-version }}
45-
poetry-version: ${{ env.DEFAULT_POETRY_VERSION }}
43+
44+
- uses: corriander/gha/uv/test@main
4645

4746
release:
4847
name: 🚀 Release
@@ -59,14 +58,26 @@ jobs:
5958
release-type: python
6059
package-name: vdd
6160

62-
- uses: actions/checkout@v4
61+
- uses: actions/checkout@v5
62+
63+
- uses: astral-sh/setup-uv@v7
64+
if: steps.release.outputs.release_created
65+
66+
- name: Build
67+
if: steps.release.outputs.release_created
68+
run: uv build
6369

64-
- uses: corriander/gha/poetry/publish@main
70+
- uses: svenstaro/upload-release-action@v2
6571
if: steps.release.outputs.release_created
6672
with:
67-
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
68-
poetry-version: ${{ env.DEFAULT_POETRY_VERSION }}
69-
release-tag: ${{ steps.release.outputs.tag_name }}
70-
github-token: ${{ secrets.GITHUB_TOKEN }}
71-
pypi-token: ${{ secrets.PYPI_TOKEN }}
72-
dynamic-versioning: false
73+
repo_token: ${{ secrets.GITHUB_TOKEN }}
74+
file: dist/*
75+
tag: ${{ steps.release.outputs.tag_name }}
76+
file_glob: true
77+
make_latest: false
78+
79+
- name: Publish to PyPI
80+
if: steps.release.outputs.release_created
81+
run: uv publish
82+
env:
83+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}

.gitignore

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[codz]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py.cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
*.ipynb
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

0 commit comments

Comments
 (0)