Skip to content

Commit

Permalink
#121 gh actions pyrpoj.toml (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Van Campenhout <[email protected]>
  • Loading branch information
vancamti and Tim Van Campenhout authored Sep 19, 2024
1 parent ed8afa1 commit 3faf336
Show file tree
Hide file tree
Showing 7 changed files with 194 additions and 107 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/skosprovider_rdf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: skosprovider_rdf backend tests
on:
push:
paths:
- skosprovider_rdf/**
- tests/**
- skosprovider_rdf.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
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

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

[project]
version = "1.3.0"
name = "skosprovider_rdf"
dynamic = ["readme"]
authors = [
{ name = "Flanders Heritage Agency", email = "[email protected]" },
]
#license = "GPL-3.0-or-later"
description = "skosprovider_rdf"
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 = [
"skosprovider==1.2.0",
"rdflib==6.2.0",
"html5lib==1.1",
]

[project.urls]
History = "https://github.com/OnroerendErfgoed/skosprovider_rdf/blob/master/HISTORY.rst"
Tracker = "https://github.com/OnroerendErfgoed/skosprovider_rdf/issues"
Source = "https://github.com/OnroerendErfgoed/skosprovider_rdf"
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",
]

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

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

# Testing
pytest==6.2.5
pytest-cov==3.0.0
coveralls==3.3.1
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-rdf (pyproject.toml)
docopt==0.6.2
# via coveralls
frozendict==2.4.4
# via pyld
html5lib==1.1
# via
# skosprovider-rdf (pyproject.toml)
# skosprovider
idna==3.10
# via requests
iniconfig==2.0.0
# via pytest
isodate==0.6.1
# via rdflib
language-tags==1.2.0
# via skosprovider
lxml==5.3.0
# via pyld
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pyld==2.0.4
# via skosprovider
pyparsing==3.1.4
# via rdflib
pytest==8.3.3
# via
# skosprovider-rdf (pyproject.toml)
# pytest-cov
pytest-cov==5.0.0
# via skosprovider-rdf (pyproject.toml)
rdflib==6.2.0
# via skosprovider-rdf (pyproject.toml)
requests==2.32.3
# via coveralls
rfc3987==1.3.8
# via skosprovider
setuptools==75.1.0
# via rdflib
six==1.16.0
# via
# html5lib
# isodate
skosprovider==1.2.0
# via skosprovider-rdf (pyproject.toml)
urllib3==2.2.3
# via requests
webencodings==0.5.1
# via html5lib
34 changes: 31 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
skosprovider==1.2.0
# -e git+https://github.com/koenedaele/skosprovider.git@DEV_0.7.0#egg=skosprovider
rdflib==6.2.0
cachetools==5.5.0
# via pyld
frozendict==2.4.4
# via pyld
html5lib==1.1
# via
# skosprovider-rdf (pyproject.toml)
# skosprovider
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.2.0
# via skosprovider-rdf (pyproject.toml)
rfc3987==1.3.8
# via skosprovider
setuptools==75.1.0
# via rdflib
six==1.16.0
# via
# html5lib
# isodate
skosprovider==1.2.0
# via skosprovider-rdf (pyproject.toml)
webencodings==0.5.1
# via html5lib
54 changes: 0 additions & 54 deletions setup.py

This file was deleted.

25 changes: 0 additions & 25 deletions tox.ini

This file was deleted.

0 comments on commit 3faf336

Please sign in to comment.