-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from OnroerendErfgoed/feature/102-107-110-bac…
- Loading branch information
Showing
7 changed files
with
234 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: skosprovider_sqlalchemy backend tests | ||
on: | ||
push: | ||
paths: | ||
- skosprovider_sqlalchemy/** | ||
- tests/** | ||
- skosprovider_sqlalchemy.yaml | ||
- pyproject.toml | ||
- requirements*.txt | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ "3.10", "3.11", "3.12" ] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# You can test your matrix by printing the current Python version | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
|
||
- name: Install python requirements | ||
env: | ||
HATCH_BUILD_NO_HOOKS: true | ||
working-directory: ./ | ||
run: | | ||
pip --version | ||
pip install pip-tools | ||
pip-sync requirements-dev.txt | ||
pip install -e . | ||
- name: Python tests | ||
run: pytest tests --exitfirst --capture=no -vvv --full-trace |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-fancy-pypi-readme"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
version = "1.2.0" | ||
name = "skosprovider_sqlalchemy" | ||
dynamic = ["readme"] | ||
authors = [ | ||
{ name = "Flanders Heritage Agency", email = "[email protected]" }, | ||
] | ||
license = "MIT" | ||
description = "skosprovider_sqlalchemy" | ||
requires-python = ">=3.10,<3.13" | ||
keywords = ["rdf", "skos", "skosprovider", "vocabularies", "thesauri"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Programming Language :: Python", | ||
"Framework :: Pyramid", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
dependencies = [ | ||
"SQLAlchemy==2.0.35", | ||
"skosprovider==1.2.0", | ||
] | ||
|
||
[project.urls] | ||
History = "https://github.com/OnroerendErfgoed/skosprovider_sqlalchemy/blob/master/HISTORY.rst" | ||
Tracker = "https://github.com/OnroerendErfgoed/skosprovider_sqlalchemy/issues" | ||
Source = "https://github.com/OnroerendErfgoed/skosprovider_sqlalchemy" | ||
Documentation = "https://skosprovider_sqlalchemy.readthedocs.io/en/latest/" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"uv==0.4.11", | ||
"psycopg2-binary==2.9.9", | ||
"sphinx==8.0.2", | ||
"pytest==8.3.3", | ||
"pytest-cov==5.0.0", | ||
"coveralls==4.0.1", | ||
"flake8==7.1.1", | ||
] | ||
|
||
[project.scripts] | ||
init_skos_db = "skosprovider_sqlalchemy.scripts.init_skos_db:main" | ||
calc_visitation = "skosprovider_sqlalchemy.scripts.calc_visitation:main" | ||
|
||
## | ||
# Build tool specific | ||
## | ||
[tool.hatch.build.targets.wheel] | ||
# In the wheel we want to have skosprovider_sqlalchemy in the root as python module. | ||
only-include = [ | ||
"/skosprovider_sqlalchemy", | ||
] | ||
|
||
[tool.hatch.metadata] | ||
# This allows us to use github links as dependencies | ||
allow-direct-references = true | ||
|
||
[tool.hatch.metadata.hooks.fancy-pypi-readme] | ||
content-type = "text/x-rst" | ||
fragments = [ | ||
{ path = "README.rst" }, | ||
{ path = "HISTORY.rst" }, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,102 @@ | ||
# Runtime requirements | ||
--requirement requirements.txt | ||
|
||
# Postgresql database access | ||
psycopg2==2.9.5 | ||
|
||
# Documentation | ||
Sphinx==6.0.0 | ||
|
||
# Testing | ||
pytest==7.2.0 | ||
pytest-cov==4.0.0 | ||
coveralls==3.3.1 | ||
|
||
# Linting | ||
flake8==6.0.0 | ||
alabaster==1.0.0 | ||
# via sphinx | ||
babel==2.16.0 | ||
# via sphinx | ||
cachetools==5.5.0 | ||
# via pyld | ||
certifi==2024.8.30 | ||
# via requests | ||
charset-normalizer==3.3.2 | ||
# via requests | ||
coverage==7.6.1 | ||
# via | ||
# coveralls | ||
# pytest-cov | ||
coveralls==4.0.1 | ||
# via skosprovider-sqlalchemy (pyproject.toml) | ||
docopt==0.6.2 | ||
# via coveralls | ||
docutils==0.21.2 | ||
# via sphinx | ||
flake8==7.1.1 | ||
# via skosprovider-sqlalchemy (pyproject.toml) | ||
frozendict==2.4.4 | ||
# via pyld | ||
greenlet==3.1.0 | ||
# via sqlalchemy | ||
html5lib==1.1 | ||
# via skosprovider | ||
idna==3.10 | ||
# via requests | ||
imagesize==1.4.1 | ||
# via sphinx | ||
iniconfig==2.0.0 | ||
# via pytest | ||
jinja2==3.1.4 | ||
# via sphinx | ||
language-tags==1.2.0 | ||
# via skosprovider | ||
lxml==5.3.0 | ||
# via pyld | ||
markupsafe==2.1.5 | ||
# via jinja2 | ||
mccabe==0.7.0 | ||
# via flake8 | ||
packaging==24.1 | ||
# via | ||
# pytest | ||
# sphinx | ||
pluggy==1.5.0 | ||
# via pytest | ||
psycopg2-binary==2.9.9 | ||
# via skosprovider-sqlalchemy (pyproject.toml) | ||
pycodestyle==2.12.1 | ||
# via flake8 | ||
pyflakes==3.2.0 | ||
# via flake8 | ||
pygments==2.18.0 | ||
# via sphinx | ||
pyld==2.0.4 | ||
# via skosprovider | ||
pytest==8.3.3 | ||
# via | ||
# skosprovider-sqlalchemy (pyproject.toml) | ||
# pytest-cov | ||
pytest-cov==5.0.0 | ||
# via skosprovider-sqlalchemy (pyproject.toml) | ||
requests==2.32.3 | ||
# via | ||
# coveralls | ||
# sphinx | ||
rfc3987==1.3.8 | ||
# via skosprovider | ||
six==1.16.0 | ||
# via html5lib | ||
skosprovider==1.2.0 | ||
# via skosprovider-sqlalchemy (pyproject.toml) | ||
snowballstemmer==2.2.0 | ||
# via sphinx | ||
sphinx==8.0.2 | ||
# via skosprovider-sqlalchemy (pyproject.toml) | ||
sphinxcontrib-applehelp==2.0.0 | ||
# via sphinx | ||
sphinxcontrib-devhelp==2.0.0 | ||
# via sphinx | ||
sphinxcontrib-htmlhelp==2.1.0 | ||
# via sphinx | ||
sphinxcontrib-jsmath==1.0.1 | ||
# via sphinx | ||
sphinxcontrib-qthelp==2.0.0 | ||
# via sphinx | ||
sphinxcontrib-serializinghtml==2.0.0 | ||
# via sphinx | ||
sqlalchemy==2.0.35 | ||
# via skosprovider-sqlalchemy (pyproject.toml) | ||
typing-extensions==4.12.2 | ||
# via sqlalchemy | ||
urllib3==2.2.3 | ||
# via requests | ||
uv==0.4.11 | ||
# via skosprovider-sqlalchemy (pyproject.toml) | ||
webencodings==0.5.1 | ||
# via html5lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
SQLAlchemy==1.4.47 | ||
cachetools==5.5.0 | ||
# via pyld | ||
frozendict==2.4.4 | ||
# via pyld | ||
greenlet==3.1.0 | ||
# via sqlalchemy | ||
html5lib==1.1 | ||
# via skosprovider | ||
language-tags==1.2.0 | ||
# via skosprovider | ||
lxml==5.3.0 | ||
# via pyld | ||
pyld==2.0.4 | ||
# via skosprovider | ||
rfc3987==1.3.8 | ||
# via skosprovider | ||
six==1.16.0 | ||
# via html5lib | ||
skosprovider==1.2.0 | ||
# via skosprovider-sqlalchemy (pyproject.toml) | ||
sqlalchemy==2.0.35 | ||
# via skosprovider-sqlalchemy (pyproject.toml) | ||
typing-extensions==4.12.2 | ||
# via sqlalchemy | ||
webencodings==0.5.1 | ||
# via html5lib |