diff --git a/.codacy.yml b/.codacy.yml index 072696f..c6b8587 100644 --- a/.codacy.yml +++ b/.codacy.yml @@ -1,3 +1,8 @@ ---- +engines: + bandit: + exclude_paths: + - "doc/source/conf.py" + - "src/geolink2oereb/lib/interfaces/oerebkrmtrsfr/v2_0/classes.py" + exclude_paths: - - src/geolink2oereb/lib/interfaces/oerebkrmtrsfr/v2_0/classes.py + - "src/geolink2oereb/lib/interfaces/oerebkrmtrsfr/v2_0/classes.py" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0b521b..6db40cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,10 +23,10 @@ jobs: CI: true run: | python -V - pip install -r requirements.txt - git --no-pager diff --check `git log --oneline | tail -1 | cut --fields=1 --delimiter=' '` - flake8 - py.test -vv --cov-config .coveragerc --cov geolink2oereb tests + make .venv/requirements.timestamp + make git-attributes + make lint + make test - name: Send coverage run: | bash <(curl -s https://codecov.io/bash) diff --git a/Makefile b/Makefile index ac42c6f..34a5d3e 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,10 @@ check: git-attributes lint test .PHONY: clean clean: rm -rf .venv + rm -rf .pytest_cache + rm -rf build + rm -rf dist + rm -f .coverage .PHONY: build @@ -40,6 +44,7 @@ build: .venv/requirements.timestamp .PHONY: deploy deploy: .venv/requirements.timestamp + # .venv/bin/twine upload -r testpypi dist/* .venv/bin/python setup.py clean sdist bdist_wheel upload diff --git a/README.md b/README.md index 642e88a..5750325 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ OEREBlex geoLink Formatter ========================== -|![license](https://img.shields.io/pypi/l/geolink2oereb.svg)|![python version](https://img.shields.io/pypi/pyversions/geolink2oereb.svg)|![format](https://img.shields.io/pypi/format/geolink2oereb.svg)|![status](https://img.shields.io/pypi/status/geolink2oereb.svg)|![build status](https://github.com/openoereb/geolink2oereb/actions/workflows/ci.yml/badge.svg)| |coverage report| |dependencies| |code quality| +|![license](https://img.shields.io/pypi/l/geolink2oereb.svg)|![python version](https://img.shields.io/pypi/pyversions/geolink2oereb.svg)|![format](https://img.shields.io/pypi/format/geolink2oereb.svg)|![status](https://img.shields.io/pypi/status/geolink2oereb.svg)|![build status](https://github.com/openoereb/geolink2oereb/actions/workflows/ci.yml/badge.svg)|coverage report|dependencies|code quality| This is a small library, meant to be used in combination with OEREBlex. It is capable of parsing a received geoLink response (XML) and converting it to multiple formats, such as HTML, which can be styled for diff --git a/requirements.txt b/requirements.txt index 255945c..a81a7b9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ Sphinx==6.2.1 sphinx_rtd_theme==1.2.1 pyramid_oereb[recommend]==2.4.3 six==1.16.0 +twine==4.0.2 diff --git a/setup.py b/setup.py index 7d51460..2b3ed41 100644 --- a/setup.py +++ b/setup.py @@ -28,6 +28,7 @@ description='Transforms a geolink to OeREBKRMtrsfr_V2_0 document entities', license='BSD', long_description='{readme}\n\n{changelog}'.format(readme=readme, changelog=changelog), + long_description_content_type='text/markdown', classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers",