Skip to content

Commit f370510

Browse files
committed
Version 1.0.0
1 parent c79e6fe commit f370510

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+9873
-3742
lines changed

.github/workflows/ci.yml

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.9", "3.14"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v4
21+
with:
22+
version: "latest"
23+
24+
- name: Set up Python ${{ matrix.python-version }}
25+
run: uv python install ${{ matrix.python-version }}
26+
27+
- name: Create virtual environment
28+
run: uv venv --python ${{ matrix.python-version }}
29+
30+
- name: Install dependencies
31+
run: uv pip install -e ".[dev,lint,test]"
32+
33+
- name: Run linting
34+
run: uv run make lint
35+
36+
typecheck:
37+
runs-on: ubuntu-latest
38+
strategy:
39+
matrix:
40+
python-version: ["3.9", "3.14"]
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
45+
- name: Install uv
46+
uses: astral-sh/setup-uv@v4
47+
with:
48+
version: "latest"
49+
50+
- name: Set up Python ${{ matrix.python-version }}
51+
run: uv python install ${{ matrix.python-version }}
52+
53+
- name: Create virtual environment
54+
run: uv venv --python ${{ matrix.python-version }}
55+
56+
- name: Install dependencies
57+
run: uv pip install -e ".[dev,lint,test]"
58+
59+
- name: Run type checking
60+
run: uv run make ty
61+
62+
test:
63+
runs-on: ubuntu-latest
64+
strategy:
65+
matrix:
66+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
67+
tests-command: ["test", "test-sqlalchemy14"]
68+
69+
services:
70+
postgres:
71+
image: postgres:17.4
72+
env:
73+
POSTGRES_USER: postgres
74+
POSTGRES_PASSWORD: postgres
75+
POSTGRES_DB: test
76+
options: >-
77+
--health-cmd pg_isready
78+
--health-interval 10s
79+
--health-timeout 5s
80+
--health-retries 5
81+
ports:
82+
- 5433:5432
83+
84+
steps:
85+
- uses: actions/checkout@v4
86+
87+
- name: Install uv
88+
uses: astral-sh/setup-uv@v5
89+
with:
90+
version: "latest"
91+
92+
- name: Set up Python ${{ matrix.python-version }}
93+
run: uv python install ${{ matrix.python-version }}
94+
95+
- name: Create virtual environment
96+
run: uv venv --python ${{ matrix.python-version }}
97+
98+
- name: Install dependencies
99+
run: uv pip install -e ".[dev,lint,test]"
100+
101+
- name: Run tests
102+
run: make ${{ matrix.tests-command }}
103+
env:
104+
DB_TEST_USER: postgres
105+
DB_TEST_PASSWORD: postgres
106+
DB_TEST_HOST: localhost
107+
DB_TEST_PORT: 5433

.gitignore

Lines changed: 170 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,173 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
13
*.py[cod]
2-
*.egg-info
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/
343
.coverage
44+
.coverage.*
445
.cache
5-
.tox
6-
docs/build
7-
htmlcov
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+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# UV
98+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
#uv.lock
102+
103+
# poetry
104+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105+
# This is especially recommended for binary packages to ensure reproducibility, and is more
106+
# commonly ignored for libraries.
107+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108+
#poetry.lock
109+
110+
# pdm
111+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112+
#pdm.lock
113+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114+
# in version control.
115+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116+
.pdm.toml
117+
.pdm-python
118+
.pdm-build/
119+
120+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121+
__pypackages__/
122+
123+
# Celery stuff
124+
celerybeat-schedule
125+
celerybeat.pid
126+
127+
# SageMath parsed files
128+
*.sage.py
129+
130+
# Environments
131+
.env
132+
.venv
133+
env/
134+
venv/
135+
ENV/
136+
env.bak/
137+
venv.bak/
138+
139+
# Spyder project settings
140+
.spyderproject
141+
.spyproject
142+
143+
# Rope project settings
144+
.ropeproject
145+
146+
# mkdocs documentation
147+
/site
148+
149+
# Pyre type checker
150+
.pyre/
151+
152+
# pytype static type analyzer
153+
.pytype/
154+
155+
# Cython debug symbols
156+
cython_debug/
157+
158+
# PyCharm
159+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161+
# and can be added to the global gitignore or merged into this file. For a more nuclear
162+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
163+
#.idea/
164+
165+
# PyPI configuration file
166+
.pypirc
167+
168+
# VSCode
169+
.vscode/
170+
*.code-workspace
171+
172+
# Claude
173+
.claude/

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

CHANGELOG

Lines changed: 0 additions & 32 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Changelog
2+
3+
## [1.0.0]
4+

CONTRIBUTORS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Fabrizio Romano <[email protected]>
2+
Mark McArdle <[email protected]>
3+
Matt Yule-Bennett <[email protected]>
4+
Dave Charness <[email protected]>
5+
Erik Cederberg <[email protected]>
6+
Jakub Borys <[email protected]>
7+
Julio Trigo <[email protected]>

0 commit comments

Comments
 (0)