diff --git a/.drone.jsonnet b/.drone.jsonnet index 9400766..f1f653b 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -26,7 +26,7 @@ local PipelineLint = { steps: [ { name: 'flake8', - image: 'python:3.8', + image: 'python:3.9', environment: { PY_COLORS: 1, }, @@ -54,9 +54,10 @@ local PipelineTest = { PythonVersion(pyversion='3.6'), PythonVersion(pyversion='3.7'), PythonVersion(pyversion='3.8'), + PythonVersion(pyversion='3.9'), { name: 'codecov', - image: 'python:3.8', + image: 'python:3.9', environment: { PY_COLORS: 1, CODECOV_TOKEN: { from_secret: 'codecov_token' }, @@ -91,7 +92,7 @@ local PipelineSecurity = { steps: [ { name: 'bandit', - image: 'python:3.8', + image: 'python:3.9', environment: { PY_COLORS: 1, }, @@ -120,7 +121,7 @@ local PipelineBuildPackage = { steps: [ { name: 'build', - image: 'python:3.8', + image: 'python:3.9', commands: [ 'python setup.py sdist bdist_wheel', ], @@ -178,7 +179,7 @@ local PipelineBuildContainer(arch='amd64') = { steps: [ { name: 'build', - image: 'python:3.8', + image: 'python:3.9', commands: [ 'python setup.py bdist_wheel', ], @@ -253,10 +254,9 @@ local PipelineDocs = { steps: [ { name: 'assets', - image: 'byrnedo/alpine-curl', + image: 'thegeeklab/alpine-tools', commands: [ - 'mkdir -p docs/themes/hugo-geekdoc/', - 'curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C docs/themes/hugo-geekdoc/ --strip-components=1', + 'make doc', ], }, { diff --git a/.drone.yml b/.drone.yml index 2c4a33a..a9837d5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ platform: steps: - name: flake8 - image: python:3.8 + image: python:3.9 commands: - pip install -r dev-requirements.txt -qq - pip install -qq . @@ -83,8 +83,21 @@ steps: depends_on: - clone +- name: python39-pytest + image: python:3.9 + commands: + - pip install -r dev-requirements.txt -qq + - pip install -qq . + - pytest ansiblelater --cov=ansiblelater --cov-append --no-cov-on-fail + - ansible-later --help + - ansible-later --version + environment: + PY_COLORS: 1 + depends_on: + - clone + - name: codecov - image: python:3.8 + image: python:3.9 commands: - pip install codecov -qq - codecov --required -X gcov @@ -117,7 +130,7 @@ platform: steps: - name: bandit - image: python:3.8 + image: python:3.9 commands: - pip install -r dev-requirements.txt -qq - pip install -qq . @@ -144,7 +157,7 @@ platform: steps: - name: build - image: python:3.8 + image: python:3.9 commands: - python setup.py sdist bdist_wheel @@ -200,7 +213,7 @@ platform: steps: - name: build - image: python:3.8 + image: python:3.9 commands: - python setup.py bdist_wheel @@ -276,7 +289,7 @@ platform: steps: - name: build - image: python:3.8 + image: python:3.9 commands: - python setup.py bdist_wheel @@ -352,7 +365,7 @@ platform: steps: - name: build - image: python:3.8 + image: python:3.9 commands: - python setup.py bdist_wheel @@ -431,10 +444,9 @@ concurrency: steps: - name: assets - image: byrnedo/alpine-curl + image: thegeeklab/alpine-tools commands: - - mkdir -p docs/themes/hugo-geekdoc/ - - curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C docs/themes/hugo-geekdoc/ --strip-components=1 + - make doc - name: markdownlint image: node:lts-alpine @@ -600,6 +612,6 @@ depends_on: --- kind: signature -hmac: c698684952096d475443bdc0acf44b6c4c4fd45b928f36504fd79c7ec68b82a8 +hmac: 6acd5ac50b0b72bac4369915f173bb9ee4a279923cfbef91909feceadf07ee35 ... diff --git a/dev-requirements.txt b/dev-requirements.txt index 1d053e7..ea113a4 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,9 +1,9 @@ -pydocstyle<4.0.0 +pydocstyle flake8 flake8-colors flake8-blind-except flake8-builtins -flake8-docstrings<=3.0.0 +flake8-docstrings flake8-isort flake8-logging-format flake8-polyfill diff --git a/renovate.json b/renovate.json index f45d8f1..91ced0d 100644 --- a/renovate.json +++ b/renovate.json @@ -1,5 +1,14 @@ { - "extends": [ - "config:base" - ] + "extends": ["config:base"], + "regexManagers": [ + { + "fileMatch": ["^Makefile$"], + "matchStrings": [ + "# renovate: datasource=(?\\S+) depName=(?\\S+)( versioning=(?.*?))?\\n.*?_VERSION := (?.*)\\s" + ] + } + ], + "droneci": { + "enabled": false + } } diff --git a/setup.py b/setup.py index 5d8abf3..c3de15a 100644 --- a/setup.py +++ b/setup.py @@ -55,6 +55,7 @@ setup( "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", "Topic :: Utilities", "Topic :: Software Development", ],