-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,048 additions
and
804 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,13 @@ | ||
[flake8] | ||
application_import_names = augeias, tests | ||
exclude = .venv, | ||
.venv2, | ||
alembic, | ||
.tox, | ||
venv, | ||
__pycache__, | ||
docs, | ||
fabfile.py | ||
import-order-style = pycharm | ||
max-line-length = 90 | ||
ignore = E402, E405, W503, F403, F405 |
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,40 @@ | ||
name: Augeias backend tests | ||
|
||
on: | ||
push: | ||
paths: | ||
- augeias/** | ||
- tests/** | ||
- .github/workflows/augeias_backend.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 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,25 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
types: [python] | ||
- id: trailing-whitespace | ||
types: [python] | ||
- repo: https://github.com/psf/black | ||
rev: 24.3.0 | ||
hooks: | ||
- id: black | ||
types: [python] | ||
args: [--preview] | ||
exclude: docs, tests | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-import-order==0.18.2 | ||
- flake8-bugbear==24.2.6 | ||
types: [python] | ||
exclude: docs |
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 @@ | ||
# Augeias | ||
|
||
[![image](https://badge.fury.io/py/augeias.png)](http://badge.fury.io/py/augeias) | ||
[![image](https://readthedocs.org/projects/augeias/badge/?version=latest)](https://readthedocs.org/projects/augeias/?badge=latest) | ||
[![image](https://travis-ci.org/OnroerendErfgoed/augeias.png?branch=master)](https://travis-ci.org/OnroerendErfgoed/augeias) | ||
[![image](https://coveralls.io/repos/OnroerendErfgoed/augeias/badge.svg?branch=master&service=github)](https://coveralls.io/r/OnroerendErfgoed/augeias?branch=master) | ||
[![image](https://scrutinizer-ci.com/g/OnroerendErfgoed/augeias/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/OnroerendErfgoed/augeias/?branch=master) | ||
|
||
Augeias. Stores your files. | ||
|
||
Augeias is a small, RESTful, webapplication that allows you to store | ||
digital objects in an object store. While it allows you to communicate | ||
with you objects as a service, it also decouples the storage | ||
implementation from the interface. | ||
|
||
## Werken met pip-compile / pip-sync | ||
full docs: https://pip-tools.readthedocs.io/en/latest/ | ||
|
||
Om te beginnen moet je eerst installeren: | ||
```sh | ||
pip install pip-tools | ||
``` | ||
|
||
#### Als dev, lokaal | ||
Zoals altijd maak je een venv aan. Daarin run je | ||
|
||
```sh | ||
pip-sync requirements-dev.txt | ||
``` | ||
Dit installeert alles inclusief libraries om testen te kunnen lopen en waitress etc. | ||
|
||
Fast pip-compile | ||
```sh | ||
PIP_COMPILE_ARGS="-v --no-header --strip-extras --no-emit-find-links pyproject.toml" | ||
uv pip compile $PIP_COMPILE_ARGS -o requirements.txt | ||
uv pip compile $PIP_COMPILE_ARGS -o requirements-dev.txt --all-extras | ||
``` |
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
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
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
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
augeias/scaffolds/augeias_scaffold/+package+/__init__.py_tmpl
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
augeias/scaffolds/augeias_scaffold/+package+/collections/__init__.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
augeias/scaffolds/augeias_scaffold/requirements-dev.txt_tmpl
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.