Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#104 #107 gh actions pyproj #108

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/skosprovider_getty.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: skosprovider_getty backend tests
on:
push:
paths:
- skosprovider_getty/**
- tests/**
- skosprovider_getty.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
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

65 changes: 65 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"

[project]
version = "1.2.0"
name = "skosprovider_getty"
dynamic = ["readme"]
authors = [
{ name = "Flanders Heritage Agency", email = "[email protected]" },
]
license = "MIT"
description = "Skosprovider implementation of the Getty Vocabularies"
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 = [
"requests==2.32.3",
"skosprovider==1.2.0",
"rdflib==6.3.2",
]

[project.urls]
History = "https://github.com/OnroerendErfgoed/skosprovider_getty/blob/master/CHANGES.rst"
Tracker = "https://github.com/OnroerendErfgoed/skosprovider_getty/issues"
Source = "https://github.com/OnroerendErfgoed/skosprovider_getty"
Documentation = "https://skosprovider-getty.readthedocs.io/en/latest/"

[project.optional-dependencies]
dev = [
"uv==0.4.1",
"pytest==8.3.3",
"pytest-cov==5.0.0",
"coveralls==4.0.1",
"sphinx==8.0.2",
]

##
# Build tool specific
##
[tool.hatch.build.targets.wheel]
# In the wheel we want to have skosprovider_getty in the root as python module.
only-include = [
"/skosprovider_getty",
]

[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 = "CHANGES.rst" },
]
105 changes: 95 additions & 10 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,95 @@
# Runtime requirements
--requirement requirements.txt

# Testing
pytest==6.2.5
pytest-cov==3.0.0
coveralls==3.3.1

# Documentation
Sphinx==4.3.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-getty (pyproject.toml)
docopt==0.6.2
# via coveralls
docutils==0.21.2
# via sphinx
frozendict==2.4.4
# via pyld
html5lib==1.1
# via skosprovider
idna==3.10
# via requests
imagesize==1.4.1
# via sphinx
iniconfig==2.0.0
# via pytest
isodate==0.6.1
# via rdflib
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
packaging==24.1
# via
# pytest
# sphinx
pluggy==1.5.0
# via pytest
pygments==2.18.0
# via sphinx
pyld==2.0.4
# via skosprovider
pyparsing==3.1.4
# via rdflib
pytest==8.3.3
# via
# skosprovider-getty (pyproject.toml)
# pytest-cov
pytest-cov==5.0.0
# via skosprovider-getty (pyproject.toml)
rdflib==6.3.2
# via skosprovider-getty (pyproject.toml)
requests==2.32.3
# via
# skosprovider-getty (pyproject.toml)
# coveralls
# sphinx
rfc3987==1.3.8
# via skosprovider
six==1.16.0
# via
# html5lib
# isodate
skosprovider==1.2.0
# via skosprovider-getty (pyproject.toml)
snowballstemmer==2.2.0
# via sphinx
sphinx==8.0.2
# via skosprovider-getty (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
urllib3==2.2.3
# via requests
uv==0.4.1
# via skosprovider-getty (pyproject.toml)
webencodings==0.5.1
# via html5lib
39 changes: 37 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
requests==2.31.0
skosprovider==1.2.0
cachetools==5.5.0
# via pyld
certifi==2024.8.30
# via requests
charset-normalizer==3.3.2
# via requests
frozendict==2.4.4
# via pyld
html5lib==1.1
# via skosprovider
idna==3.10
# via requests
isodate==0.6.1
# via rdflib
language-tags==1.2.0
# via skosprovider
lxml==5.3.0
# via pyld
pyld==2.0.4
# via skosprovider
pyparsing==3.1.4
# via rdflib
rdflib==6.3.2
# via skosprovider-getty (pyproject.toml)
requests==2.32.3
# via skosprovider-getty (pyproject.toml)
rfc3987==1.3.8
# via skosprovider
six==1.16.0
# via
# html5lib
# isodate
skosprovider==1.2.0
# via skosprovider-getty (pyproject.toml)
urllib3==2.2.3
# via requests
webencodings==0.5.1
# via html5lib
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

43 changes: 0 additions & 43 deletions setup.py

This file was deleted.

21 changes: 0 additions & 21 deletions tox.ini

This file was deleted.