Skip to content

Commit

Permalink
#121 gh action pyproj
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Van Campenhout committed Sep 20, 2024
1 parent 5a2e0d3 commit 997c046
Show file tree
Hide file tree
Showing 9 changed files with 168 additions and 109 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/skosprovider.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: skosprovider backend tests
on:
push:
paths:
- skosprovider/**
- tests/**
- skosprovider.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
8 changes: 0 additions & 8 deletions .scrutinizer.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Currently the following other providers exist:
:class:`VocabularyProvider <skosprovider.providers.VocabularyProvider>`
interface with a `SQLAlchemy <http://www.sqlalchemy.org>`_ backend. This allows
using a RDBMS for reading, but also writing, :term:`SKOS` concepts.
* `Skosprovider_rdf <http://skosprovider-rdf.readthedocs.org/en/latest/>`_:
* `skosprovider <http://skosprovider-rdf.readthedocs.org/en/latest/>`_:
An implementation of the
:class:`VocabularyProvider <skosprovider.providers.VocabularyProvider>`
interface with a `RDFLib <https://rdflib.readthedocs.org/en/latest/>`_
Expand Down
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"
dynamic = ["readme"]
authors = [
{ name = "Flanders Heritage Agency", email = "ict@onroerenderfgoed.be" },
]
#license = "GPL-3.0-or-later"
description = "Abstraction layer for SKOS 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 = [
"language-tags==1.1.0",
"rfc3987==1.3.8",
"pyld==2.0.3",
"html5lib==1.1",
]

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

[project.optional-dependencies]
dev = [
"pytest==8.3.3",
"pytest-cov==5.0.0",
"coveralls==4.0.1",
"html5lib==1.1",
]

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

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

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

# Documentation
Sphinx==4.3.0
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 (pyproject.toml)
docopt==0.6.2
# via coveralls
frozendict==2.4.4
# via pyld
html5lib==1.1
# via skosprovider (pyproject.toml)
idna==3.10
# via requests
iniconfig==2.0.0
# via pytest
language-tags==1.1.0
# via skosprovider (pyproject.toml)
lxml==5.3.0
# via pyld
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pyld==2.0.3
# via skosprovider (pyproject.toml)
pytest==8.3.3
# via
# skosprovider (pyproject.toml)
# pytest-cov
pytest-cov==5.0.0
# via skosprovider (pyproject.toml)
requests==2.32.3
# via coveralls
rfc3987==1.3.8
# via skosprovider (pyproject.toml)
six==1.16.0
# via html5lib
urllib3==2.2.3
# via requests
webencodings==0.5.1
# via html5lib
18 changes: 16 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
cachetools==5.5.0
# via pyld
frozendict==2.4.4
# via pyld
html5lib==1.1
# via skosprovider (pyproject.toml)
language-tags==1.1.0
rfc3987==1.3.8
# via skosprovider (pyproject.toml)
lxml==5.3.0
# via pyld
pyld==2.0.3
html5lib==1.1
# via skosprovider (pyproject.toml)
rfc3987==1.3.8
# via skosprovider (pyproject.toml)
six==1.16.0
# via html5lib
webencodings==0.5.1
# via html5lib
53 changes: 0 additions & 53 deletions setup.py

This file was deleted.

20 changes: 0 additions & 20 deletions tox.ini

This file was deleted.

0 comments on commit 997c046

Please sign in to comment.