-
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
38 changed files
with
1,064 additions
and
835 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 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,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. | ||
|
||
## How to work with pip-compile / pip-sync | ||
full docs: https://pip-tools.readthedocs.io/en/latest/ | ||
|
||
First install the package: | ||
```sh | ||
pip install pip-tools | ||
``` | ||
|
||
#### local development | ||
Create a virutal environment and sync with the requirements-dev.txt file. | ||
|
||
```sh | ||
pip-sync requirements-dev.txt | ||
``` | ||
This will install all the packages needed for development, including testing libraries and waitress. | ||
|
||
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.