ferronier 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ferronier-0.2.0/.coverage +0 -0
- ferronier-0.2.0/.gitlab-ci.yml +49 -0
- ferronier-0.2.0/.pre-commit-config.yaml +25 -0
- ferronier-0.2.0/CHANGELOG.md +10 -0
- ferronier-0.2.0/LICENCE +674 -0
- ferronier-0.2.0/PKG-INFO +31 -0
- ferronier-0.2.0/README.md +6 -0
- ferronier-0.2.0/TODO.md +38 -0
- ferronier-0.2.0/logo.png +0 -0
- ferronier-0.2.0/logo.svg +325 -0
- ferronier-0.2.0/plugins/.gitignore +1 -0
- ferronier-0.2.0/pyproject.toml +80 -0
- ferronier-0.2.0/requirements.txt +5 -0
- ferronier-0.2.0/src/ferronier/__init__.py +18 -0
- ferronier-0.2.0/src/ferronier/__main__.py +278 -0
- ferronier-0.2.0/src/ferronier/data/__init__.py +155 -0
- ferronier-0.2.0/src/ferronier/data/fileformat.py +37 -0
- ferronier-0.2.0/src/ferronier/data/preprocessor.py +69 -0
- ferronier-0.2.0/src/ferronier/data/source/dict.py +23 -0
- ferronier-0.2.0/src/ferronier/data/source/local.py +66 -0
- ferronier-0.2.0/src/ferronier/data/source/merge.py +34 -0
- ferronier-0.2.0/src/ferronier/data/source/remote.py +56 -0
- ferronier-0.2.0/src/ferronier/data/source/self.py +28 -0
- ferronier-0.2.0/src/ferronier/expand.py +285 -0
- ferronier-0.2.0/src/ferronier/markdown.py +75 -0
- ferronier-0.2.0/src/ferronier/plugins.py +182 -0
- ferronier-0.2.0/src/ferronier/py.typed +0 -0
- ferronier-0.2.0/src/ferronier/themes/__init__.py +103 -0
- ferronier-0.2.0/src/ferronier/themes/portail/__init__.py +22 -0
- ferronier-0.2.0/src/ferronier/themes/portail/templates/card.html +76 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/__init__.py +20 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/content/index.html +2 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/css/bootstrap.min.css +6 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/css/bootstrap.min.css.map +1 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/css/fa-brands.min.css +6 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/css/fa-solid.min.css +6 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/css/ferronier.css +185 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/css/fontawesome.min.css +8 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/img/brigit.png +0 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/img/favicon.ico +0 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/img/komit.png +0 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/js/bootstrap.bundle.min.js +7 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/js/ferronier.js +34 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/webfonts/fa-brands-400.woff2 +0 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/static/webfonts/fa-solid-900.woff2 +0 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/card.html +63 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/footer.html +12 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/head-metadata.html +31 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/head.html +13 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/header-filters.html +47 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/header-intro.html +5 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/header-left.html +13 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/header-right.html +5 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/header-title.html +23 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/header.html +30 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/index.html +50 -0
- ferronier-0.2.0/src/ferronier/themes/ressourcerie/templates/main.html +22 -0
- ferronier-0.2.0/src/ferronier/unionpath.py +134 -0
- ferronier-0.2.0/src/ferronier/utils.py +64 -0
- ferronier-0.2.0/tests/.gitignore +1 -0
- ferronier-0.2.0/tests/__init__.py +75 -0
- ferronier-0.2.0/tests/requirements.txt +4 -0
- ferronier-0.2.0/tests/test_data/.cache/3a2e8bfc77a8b8592a64593ea22e330a +3 -0
- ferronier-0.2.0/tests/test_data/.cache/723d5abbd6edd36055dc2e7799751db6 +5 -0
- ferronier-0.2.0/tests/test_data/.cache/baeb7938c300f18d78e8ebe3391858c1 +4 -0
- ferronier-0.2.0/tests/test_data/.cache/bc1d17a16e10683a80ec405cd0f37cb9 +8 -0
- ferronier-0.2.0/tests/test_data/.cache/c06c82c6b90efce08f4b5e1703a11d0a +1 -0
- ferronier-0.2.0/tests/test_data/dict.control.json +19 -0
- ferronier-0.2.0/tests/test_data/dict.toml +7 -0
- ferronier-0.2.0/tests/test_data/format-local-csv.control.json +12 -0
- ferronier-0.2.0/tests/test_data/format-local-csv.csv +3 -0
- ferronier-0.2.0/tests/test_data/format-local-csv.toml +4 -0
- ferronier-0.2.0/tests/test_data/format-local-json.control.json +8 -0
- ferronier-0.2.0/tests/test_data/format-local-json.json +8 -0
- ferronier-0.2.0/tests/test_data/format-local-json.toml +1 -0
- ferronier-0.2.0/tests/test_data/format-local-toml.control.json +3 -0
- ferronier-0.2.0/tests/test_data/format-local-toml.toml +1 -0
- ferronier-0.2.0/tests/test_data/format-local-yaml.control.json +7 -0
- ferronier-0.2.0/tests/test_data/format-local-yaml.toml +4 -0
- ferronier-0.2.0/tests/test_data/format-local-yaml.yaml +4 -0
- ferronier-0.2.0/tests/test_data/format-remote-csv.control.json +1 -0
- ferronier-0.2.0/tests/test_data/format-remote-csv.toml +1 -0
- ferronier-0.2.0/tests/test_data/format-remote-json.control.json +1 -0
- ferronier-0.2.0/tests/test_data/format-remote-json.toml +1 -0
- ferronier-0.2.0/tests/test_data/format-remote-toml.control.json +1 -0
- ferronier-0.2.0/tests/test_data/format-remote-toml.toml +1 -0
- ferronier-0.2.0/tests/test_data/format-remote-yaml.control.json +1 -0
- ferronier-0.2.0/tests/test_data/format-remote-yaml.toml +4 -0
- ferronier-0.2.0/tests/test_data/merge-dict.control.toml +4 -0
- ferronier-0.2.0/tests/test_data/merge-dict.toml +9 -0
- ferronier-0.2.0/tests/test_data/merge-dict1.json +5 -0
- ferronier-0.2.0/tests/test_data/merge-dict2.toml +2 -0
- ferronier-0.2.0/tests/test_data/merge-list.control.json +8 -0
- ferronier-0.2.0/tests/test_data/merge-list.toml +5 -0
- ferronier-0.2.0/tests/test_data/merge-list1.json +5 -0
- ferronier-0.2.0/tests/test_data/single-local.control.json +5 -0
- ferronier-0.2.0/tests/test_data/single-local.json +5 -0
- ferronier-0.2.0/tests/test_data/single-local.toml +3 -0
- ferronier-0.2.0/tests/test_data/single-remote.control.json +1 -0
- ferronier-0.2.0/tests/test_data/single-remote.toml +1 -0
- ferronier-0.2.0/tests/test_data/single-self.control.json +5 -0
- ferronier-0.2.0/tests/test_data/single-self.toml +7 -0
- ferronier-0.2.0/tests/test_data/string-yaml.control.json +1 -0
- ferronier-0.2.0/tests/test_data/string-yaml.toml +1 -0
- ferronier-0.2.0/tests/test_data/string-yaml.yaml +1 -0
- ferronier-0.2.0/tests/test_data.py +39 -0
- ferronier-0.2.0/tests/test_expand.py +67 -0
- ferronier-0.2.0/tests/test_markdown.py +39 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-chain.control.json +9 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-chain.json +3 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-chain.toml +9 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-functions-date.control.yaml +6 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-functions-date.toml +15 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-functions-json.control.json +7 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-functions-json.json +7 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-functions-json.toml +5 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-functions-rename.control.json +21 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-functions-rename.json +19 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-functions-rename.toml +5 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-long.control.yaml +15 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-long.json +10 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-long.toml +18 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-short.control.json +10 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-short.json +10 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-short.toml +5 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-wildcard-dict.control.json +16 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-wildcard-dict.json +8 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-wildcard-dict.toml +4 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-wildcard-list.control.json +16 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-wildcard-list.json +8 -0
- ferronier-0.2.0/tests/test_preprocess/preprocess-wildcard-list.toml +4 -0
- ferronier-0.2.0/tests/test_preprocess.py +43 -0
- ferronier-0.2.0/tests/test_unionpath/a/1/2/a +0 -0
- ferronier-0.2.0/tests/test_unionpath/a/a +1 -0
- ferronier-0.2.0/tests/test_unionpath/b/11/b +0 -0
- ferronier-0.2.0/tests/test_unionpath/c/1/2/c +0 -0
- ferronier-0.2.0/tests/test_unionpath/c/11/22/c +0 -0
- ferronier-0.2.0/tests/test_unionpath/c/a +1 -0
- ferronier-0.2.0/tests/test_unionpath/c/c +0 -0
- ferronier-0.2.0/tests/test_unionpath/control/1/2/a +0 -0
- ferronier-0.2.0/tests/test_unionpath/control/1/2/c +0 -0
- ferronier-0.2.0/tests/test_unionpath/control/11/22/c +0 -0
- ferronier-0.2.0/tests/test_unionpath/control/11/b +0 -0
- ferronier-0.2.0/tests/test_unionpath/control/a +1 -0
- ferronier-0.2.0/tests/test_unionpath/control/c +0 -0
- ferronier-0.2.0/tests/test_unionpath.py +46 -0
- ferronier-0.2.0/tox.toml +70 -0
|
Binary file
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
default:
|
|
2
|
+
image: paternal/pythons
|
|
3
|
+
cache:
|
|
4
|
+
paths:
|
|
5
|
+
- .pip-cache/
|
|
6
|
+
|
|
7
|
+
stages:
|
|
8
|
+
- build
|
|
9
|
+
- test
|
|
10
|
+
- publish
|
|
11
|
+
|
|
12
|
+
variables:
|
|
13
|
+
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip-cache"
|
|
14
|
+
|
|
15
|
+
build:
|
|
16
|
+
stage: build
|
|
17
|
+
before_script:
|
|
18
|
+
- python3 --version
|
|
19
|
+
- python3 -m pip install --upgrade pip
|
|
20
|
+
- python3 -m pip install build
|
|
21
|
+
script:
|
|
22
|
+
- python3 -m build
|
|
23
|
+
artifacts:
|
|
24
|
+
paths:
|
|
25
|
+
- dist/
|
|
26
|
+
|
|
27
|
+
test:
|
|
28
|
+
stage: test
|
|
29
|
+
before_script:
|
|
30
|
+
- python3 -m pip install tox
|
|
31
|
+
script:
|
|
32
|
+
- tox
|
|
33
|
+
coverage: '/^TOTAL.*\s(\d+)\%$/'
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
publish:
|
|
37
|
+
stage: publish
|
|
38
|
+
before_script:
|
|
39
|
+
- python3 -m pip install twine
|
|
40
|
+
script:
|
|
41
|
+
- |
|
|
42
|
+
export TWINE_PASSWORD=${PYPI_TOKEN}
|
|
43
|
+
export TWINE_USERNAME=__token__
|
|
44
|
+
if [[ "$CI_COMMIT_TAG" == ferronier-v* ]]
|
|
45
|
+
then
|
|
46
|
+
python3 -m twine upload dist/*
|
|
47
|
+
fi
|
|
48
|
+
rules:
|
|
49
|
+
- if: $CI_COMMIT_TAG
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# See https://pre-commit.com for more information
|
|
2
|
+
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v6.0.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
- id: end-of-file-fixer
|
|
9
|
+
- id: check-yaml
|
|
10
|
+
- id: check-added-large-files
|
|
11
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
12
|
+
rev: v3.21.2
|
|
13
|
+
hooks:
|
|
14
|
+
- id: pyupgrade
|
|
15
|
+
args: [--py314-plus]
|
|
16
|
+
|
|
17
|
+
- repo: https://github.com/pycqa/isort
|
|
18
|
+
rev: 8.0.1
|
|
19
|
+
hooks:
|
|
20
|
+
- id: isort
|
|
21
|
+
|
|
22
|
+
- repo: https://github.com/psf/black
|
|
23
|
+
rev: 26.3.1
|
|
24
|
+
hooks:
|
|
25
|
+
- id: black
|