diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c539461..004d5db 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,9 +23,10 @@ cache: before_script: - python --version ; pip --version # For debugging - - pip install virtualenv twine wheel + - pip install virtualenv - virtualenv venv - source venv/bin/activate + - pip install -r requirements.dev.txt stages: - lint diff --git a/requirements.dev.txt b/requirements.dev.txt new file mode 100644 index 0000000..cb36319 --- /dev/null +++ b/requirements.dev.txt @@ -0,0 +1,4 @@ +-r requirements.tests.txt +twine +wheel +pre-commit diff --git a/setup.py b/setup.py index d532a1e..7bcbcd4 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,10 @@ +import pathlib from urllib.parse import urlparse from setuptools import find_packages, setup version = "0.1" +HERE = pathlib.Path(__file__).parent def parse_requirements(file): @@ -20,11 +22,14 @@ def parse_requirements(file): requires = parse_requirements("requirements.txt") tests_requires = parse_requirements("requirements.tests.txt") +README = (HERE / "README.md").read_text() setup( name="opnsense-prom-exporter", version=version, description="OPNSense Prometheus exporter", + long_description=README, + long_description_content_type="text/markdown", author="Pierre Verkest", author_email="pierreverkest84@gmail.com", url="https://gitlab.com/micro-entreprise/opnsense-prom-exporter",