From ffdc6517f54933242bd5715a186320cb00336f92 Mon Sep 17 00:00:00 2001 From: Pierre Verkest Date: Fri, 1 Sep 2023 15:41:11 +0200 Subject: [PATCH] gitlab ci: fix lint and long descriptions --- .gitlab-ci.yml | 3 ++- requirements.dev.txt | 4 ++++ setup.py | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 requirements.dev.txt 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",