gitlab ci: fix lint and long descriptions
This commit is contained in:
parent
9f757f41b6
commit
ffdc6517f5
3 changed files with 11 additions and 1 deletions
|
@ -23,9 +23,10 @@ cache:
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- python --version ; pip --version # For debugging
|
- python --version ; pip --version # For debugging
|
||||||
- pip install virtualenv twine wheel
|
- pip install virtualenv
|
||||||
- virtualenv venv
|
- virtualenv venv
|
||||||
- source venv/bin/activate
|
- source venv/bin/activate
|
||||||
|
- pip install -r requirements.dev.txt
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- lint
|
- lint
|
||||||
|
|
4
requirements.dev.txt
Normal file
4
requirements.dev.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
-r requirements.tests.txt
|
||||||
|
twine
|
||||||
|
wheel
|
||||||
|
pre-commit
|
5
setup.py
5
setup.py
|
@ -1,8 +1,10 @@
|
||||||
|
import pathlib
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
version = "0.1"
|
version = "0.1"
|
||||||
|
HERE = pathlib.Path(__file__).parent
|
||||||
|
|
||||||
|
|
||||||
def parse_requirements(file):
|
def parse_requirements(file):
|
||||||
|
@ -20,11 +22,14 @@ def parse_requirements(file):
|
||||||
|
|
||||||
requires = parse_requirements("requirements.txt")
|
requires = parse_requirements("requirements.txt")
|
||||||
tests_requires = parse_requirements("requirements.tests.txt")
|
tests_requires = parse_requirements("requirements.tests.txt")
|
||||||
|
README = (HERE / "README.md").read_text()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="opnsense-prom-exporter",
|
name="opnsense-prom-exporter",
|
||||||
version=version,
|
version=version,
|
||||||
description="OPNSense Prometheus exporter",
|
description="OPNSense Prometheus exporter",
|
||||||
|
long_description=README,
|
||||||
|
long_description_content_type="text/markdown",
|
||||||
author="Pierre Verkest",
|
author="Pierre Verkest",
|
||||||
author_email="pierreverkest84@gmail.com",
|
author_email="pierreverkest84@gmail.com",
|
||||||
url="https://gitlab.com/micro-entreprise/opnsense-prom-exporter",
|
url="https://gitlab.com/micro-entreprise/opnsense-prom-exporter",
|
||||||
|
|
Loading…
Reference in a new issue