0
0
mirror of https://github.com/thegeeklab/certbot-dns-corenetworks.git synced 2024-06-02 16:59:40 +02:00

Compare commits

...

17 Commits
v0.2.0 ... main

Author SHA1 Message Date
8d5c0a9df7
add discontinued information 2021-03-20 16:23:14 +01:00
renovate[bot]
3353e2795d
chore(deps): update dependency pydocstyle to v6 (#12)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-20 16:01:13 +01:00
Renovate Bot
361d70c709 chore(deps): update dependency yapf to ^0.31.0 2021-03-13 01:54:30 +00:00
5ff33d0ed2
ci: disable poetry experimental installer (#9) 2021-02-18 22:27:54 +01:00
e060462724
ci: increase log level for poetry install steps 2021-02-18 11:18:30 +01:00
5b7c513e11
[skip ci] disable github strict status check 2021-02-18 11:13:11 +01:00
5bfb87d6ad
fix ci step naming (#8) 2021-02-18 10:09:13 +01:00
f05cba4d44
fix ci badge 2021-01-17 15:23:46 +01:00
e1369f6e2d
fix ci badge 2021-01-17 15:10:33 +01:00
903eb6ce6a
remove unnecessary docker_config secret from drone config 2021-01-16 15:45:38 +01:00
c4450824f1
re-sign drone config 2021-01-16 15:21:38 +01:00
Renovate Bot
ceefd593df chore(deps): update dependency flake8-blind-except to ^0.2.0 2021-01-07 21:46:35 +00:00
f131c2fb96
chore(devel): add codecov config file 2021-01-06 18:12:46 +01:00
21c897ef05
[skip ci] exclude .venv folder from isort 2021-01-03 21:43:56 +01:00
2eb4543f24
[skip ci] update year in license file 2021-01-03 21:40:24 +01:00
renovate[bot]
7e408cccea
fix(deps): update dependency corenetworks to ^0.2.0 (#5)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-03 15:06:20 +01:00
8cf92d2aae
[skip ci] fix changelog 2021-01-02 21:29:16 +01:00
9 changed files with 93 additions and 95 deletions

View File

@ -1,12 +1,13 @@
local PythonVersion(pyversion='3.6') = {
name: 'python' + std.strReplace(pyversion, '.', ''),
name: 'python' + std.strReplace(pyversion, '.', '') + '-pytest',
image: 'python:' + pyversion,
environment: {
PY_COLORS: 1,
},
commands: [
'pip install poetry poetry-dynamic-versioning -qq',
'poetry install -q',
'poetry config experimental.new-installer false',
'poetry install',
'poetry run pytest',
'poetry version',
],
@ -17,7 +18,6 @@ local PythonVersion(pyversion='3.6') = {
local PipelineLint = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'lint',
platform: {
os: 'linux',
@ -33,7 +33,8 @@ local PipelineLint = {
commands: [
'git fetch -tq',
'pip install poetry poetry-dynamic-versioning -qq',
'poetry install -q',
'poetry config experimental.new-installer false',
'poetry install',
'poetry run yapf -dr ./certbot_dns_corenetworks',
],
},
@ -46,7 +47,8 @@ local PipelineLint = {
commands: [
'git fetch -tq',
'pip install poetry poetry-dynamic-versioning -qq',
'poetry install -q',
'poetry config experimental.new-installer false',
'poetry install',
'poetry run flake8 ./certbot_dns_corenetworks',
],
},
@ -58,7 +60,6 @@ local PipelineLint = {
local PipelineTest = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'test',
platform: {
os: 'linux',
@ -88,10 +89,10 @@ local PipelineTest = {
'codecov --required -X gcov',
],
depends_on: [
'python36',
'python37',
'python38',
'python39',
'python36-pytest',
'python37-pytest',
'python38-pytest',
'python39-pytest',
],
},
],
@ -105,7 +106,6 @@ local PipelineTest = {
local PipelineSecurity = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'security',
platform: {
os: 'linux',
@ -121,7 +121,8 @@ local PipelineSecurity = {
commands: [
'git fetch -tq',
'pip install poetry poetry-dynamic-versioning -qq',
'poetry install -q',
'poetry config experimental.new-installer false',
'poetry install',
'poetry run bandit -r ./certbot_dns_corenetworks -x ./certbot_dns_corenetworks/test',
],
},
@ -136,7 +137,6 @@ local PipelineSecurity = {
local PipelineBuildPackage = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'build-package',
platform: {
os: 'linux',
@ -200,7 +200,6 @@ local PipelineBuildPackage = {
local PipelineNotifications = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'notifications',
platform: {
os: 'linux',

View File

@ -12,7 +12,8 @@ steps:
commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq
- poetry install -q
- poetry config experimental.new-installer false
- poetry install
- poetry run yapf -dr ./certbot_dns_corenetworks
environment:
PY_COLORS: 1
@ -22,14 +23,12 @@ steps:
commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq
- poetry install -q
- poetry config experimental.new-installer false
- poetry install
- poetry run flake8 ./certbot_dns_corenetworks
environment:
PY_COLORS: 1
image_pull_secrets:
- docker_config
trigger:
ref:
- refs/heads/main
@ -50,11 +49,12 @@ steps:
commands:
- git fetch -tq
- name: python36
- name: python36-pytest
image: python:3.6
commands:
- pip install poetry poetry-dynamic-versioning -qq
- poetry install -q
- poetry config experimental.new-installer false
- poetry install
- poetry run pytest
- poetry version
environment:
@ -62,11 +62,12 @@ steps:
depends_on:
- fetch
- name: python37
- name: python37-pytest
image: python:3.7
commands:
- pip install poetry poetry-dynamic-versioning -qq
- poetry install -q
- poetry config experimental.new-installer false
- poetry install
- poetry run pytest
- poetry version
environment:
@ -74,11 +75,12 @@ steps:
depends_on:
- fetch
- name: python38
- name: python38-pytest
image: python:3.8
commands:
- pip install poetry poetry-dynamic-versioning -qq
- poetry install -q
- poetry config experimental.new-installer false
- poetry install
- poetry run pytest
- poetry version
environment:
@ -86,11 +88,12 @@ steps:
depends_on:
- fetch
- name: python39
- name: python39-pytest
image: python:3.9
commands:
- pip install poetry poetry-dynamic-versioning -qq
- poetry install -q
- poetry config experimental.new-installer false
- poetry install
- poetry run pytest
- poetry version
environment:
@ -108,13 +111,10 @@ steps:
from_secret: codecov_token
PY_COLORS: 1
depends_on:
- python36
- python37
- python38
- python39
image_pull_secrets:
- docker_config
- python36-pytest
- python37-pytest
- python38-pytest
- python39-pytest
trigger:
ref:
@ -139,14 +139,12 @@ steps:
commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq
- poetry install -q
- poetry config experimental.new-installer false
- poetry install
- poetry run bandit -r ./certbot_dns_corenetworks -x ./certbot_dns_corenetworks/test
environment:
PY_COLORS: 1
image_pull_secrets:
- docker_config
trigger:
ref:
- refs/heads/main
@ -207,9 +205,6 @@ steps:
ref:
- refs/tags/**
image_pull_secrets:
- docker_config
trigger:
ref:
- refs/heads/main
@ -245,9 +240,6 @@ steps:
- success
- failure
image_pull_secrets:
- docker_config
trigger:
ref:
- refs/heads/main
@ -261,6 +253,6 @@ depends_on:
---
kind: signature
hmac: ad1db2d5b56fbb3a9573f53f3a79f17c0d6775347b44572182bf60d89b577717
hmac: 5b86a521681485b2518a6bd3ff3e490bb07d076ac94d26ff84b86749b3d045fc
...

View File

@ -50,10 +50,8 @@ branches:
protection:
required_pull_request_reviews: null
required_status_checks:
strict: true
strict: false
contexts:
- continuous-integration/drone/pr
enforce_admins: null
restrictions: null
...

View File

@ -1,23 +1,7 @@
# Changelog
## v0.2.0 (2021-01-01)
## v0.2.1 (2021-03-20)
### Docs
### Breaking Changes
- add contributing information
- switch to new certbot syntax
### Build
- migrate to poetry
### Others
- replace master by main as default branch
- use renovate preset config
### Breaking Chnaged
- drop Python 2.7 support
- drop Python 3.5 support
- **Discontinued:** This project is no longer maintained

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2020 Robert Kaussow <mail@thegeeklab.de>
Copyright (c) 2021 Robert Kaussow <mail@thegeeklab.de>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,6 +1,6 @@
# certbot-dns-corenetworks
[![Build Status](https://img.shields.io/drone/build/thegeeklab/certbot-dns-corenetworks?logo=drone)](https://cloud.drone.io/thegeeklab/certbot-dns-corenetworks)
[![Build Status](https://img.shields.io/drone/build/thegeeklab/certbot-dns-corenetworks?logo=drone&server=https%3A%2F%2Fdrone.thegeeklab.de)](https://drone.thegeeklab.de/thegeeklab/certbot-dns-corenetworks)
[![Python Version](https://img.shields.io/pypi/pyversions/certbot-dns-corenetworks.svg)](https://pypi.org/project/certbot-dns-corenetworks/)
[![PyPi Status](https://img.shields.io/pypi/status/certbot-dns-corenetworks.svg)](https://pypi.org/project/certbot-dns-corenetworks/)
[![PyPi Release](https://img.shields.io/pypi/v/certbot-dns-corenetworks.svg)](https://pypi.org/project/certbot-dns-corenetworks/)
@ -8,6 +8,8 @@
[![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/certbot-dns-corenetworks)](https://github.com/thegeeklab/certbot-dns-corenetworks/graphs/contributors)
[![License: MIT](https://img.shields.io/github/license/thegeeklab/certbot-dns-corenetworks)](https://github.com/thegeeklab/certbot-dns-corenetworks/blob/main/LICENSE)
> **Discontinued:** This project is no longer maintained.
## Install
Install this package via pip in the same python environment where you installed your certbot.
@ -20,8 +22,8 @@ pip install certbot-dns-corenetworks
To start using DNS authentication for the Core Networks DNS API, pass the following arguments on certbot's command line:
| Option | Description |
| ----------------------------------------------------------------- | ------------------------------------------------ |
| Option | Description |
| ---------------------------------------- | ------------------------------------------------ |
| `--authenticator dns-corenetworks` | select the authenticator plugin (Required) |
| `--dns-corenetworks-credentials` | Hetzner DNS API credentials INI file. (Required) |
| `--dns-corenetworks-propagation-seconds` | Seconds to wait for the TXT record to propagate |

21
codecov.yml Normal file
View File

@ -0,0 +1,21 @@
codecov:
require_ci_to_pass: true
coverage:
status:
project:
default:
target: auto
threshold: 5%
branches:
- main
if_ci_failed: error
informational: false
only_pulls: false
patch:
default:
target: auto
threshold: 5%
branches:
- main
if_ci_failed: error
only_pulls: false

40
poetry.lock generated
View File

@ -143,16 +143,16 @@ six = "*"
[[package]]
name = "corenetworks"
version = "0.1.6"
description = "Python API client for Domain Management Automation with Core Networks https://www.core-networks.de/"
version = "0.2.0"
description = "Python library for the core-networks.de DNS API."
category = "main"
optional = false
python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<4"
python-versions = ">=3.6.0,<4.0.0"
[package.dependencies]
jsonschema = "*"
requests = "*"
six = "*"
jsonschema = ">=3.2.0,<4.0.0"
requests = ">=2.25.1,<3.0.0"
six = ">=1.15.0,<2.0.0"
[[package]]
name = "coverage"
@ -216,7 +216,7 @@ pyflakes = ">=2.2.0,<2.3.0"
[[package]]
name = "flake8-blind-except"
version = "0.1.1"
version = "0.2.0"
description = "A flake8 extension that checks for blind except: statements"
category = "dev"
optional = false
@ -535,11 +535,11 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
[[package]]
name = "pydocstyle"
version = "5.1.1"
version = "6.0.0"
description = "Python docstring style checker"
category = "dev"
optional = false
python-versions = ">=3.5"
python-versions = ">=3.6"
[package.dependencies]
snowballstemmer = "*"
@ -781,7 +781,7 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
[[package]]
name = "yapf"
version = "0.30.0"
version = "0.31.0"
description = "A formatter for Python code."
category = "dev"
optional = false
@ -905,7 +905,7 @@ test = ["zope.security", "zope.testrunner"]
[metadata]
lock-version = "1.1"
python-versions = "^3.6.0"
content-hash = "fcc89434b37effc052e4536ab72a77d8fa1fa537a31c52814b3c541ac6292918"
content-hash = "7847dbfaa4f6c4b787542106e228f1d2cdb75287461c3995215180f028889c31"
[metadata.files]
acme = [
@ -966,6 +966,7 @@ cffi = [
{file = "cffi-1.14.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:840793c68105fe031f34d6a086eaea153a0cd5c491cde82a74b420edd0a2b909"},
{file = "cffi-1.14.4-cp39-cp39-manylinux1_i686.whl", hash = "sha256:b18e0a9ef57d2b41f5c68beefa32317d286c3d6ac0484efd10d6e07491bb95dd"},
{file = "cffi-1.14.4-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:045d792900a75e8b1e1b0ab6787dd733a8190ffcf80e8c8ceb2fb10a29ff238a"},
{file = "cffi-1.14.4-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7ef7d4ced6b325e92eb4d3502946c78c5367bc416398d387b39591532536734e"},
{file = "cffi-1.14.4-cp39-cp39-win32.whl", hash = "sha256:ba4e9e0ae13fc41c6b23299545e5ef73055213e466bd107953e4a013a5ddd7e3"},
{file = "cffi-1.14.4-cp39-cp39-win_amd64.whl", hash = "sha256:f032b34669220030f905152045dfa27741ce1a6db3324a5bc0b96b6c7420c87b"},
{file = "cffi-1.14.4.tar.gz", hash = "sha256:1a465cbe98a7fd391d47dce4b8f7e5b921e6cd805ef421d04f5f66ba8f06086c"},
@ -985,8 +986,8 @@ configobj = [
{file = "configobj-5.0.6.tar.gz", hash = "sha256:a2f5650770e1c87fb335af19a9b7eb73fc05ccf22144eb68db7d00cd2bcb0902"},
]
corenetworks = [
{file = "corenetworks-0.1.6-py2.py3-none-any.whl", hash = "sha256:7014dba890e2e7b6e26396e6094d68bda136ff7aba161a3845c8bb8daba86d1e"},
{file = "corenetworks-0.1.6.tar.gz", hash = "sha256:78497640e133ae065385f6e9893b960fbfbedb74b8ce21caa4bb0c345c29cbaf"},
{file = "corenetworks-0.2.0-py3-none-any.whl", hash = "sha256:a9ee2e1045b00e9681db5a38432e6f5db4697ce4a0384763766dd5f8faf0f0ec"},
{file = "corenetworks-0.2.0.tar.gz", hash = "sha256:808705669509e9f3385084e96c722597a5f3a0a007cfb7d70f0b4b41f68cefb8"},
]
coverage = [
{file = "coverage-5.3.1-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:fabeeb121735d47d8eab8671b6b031ce08514c86b7ad8f7d5490a7b6dcd6267d"},
@ -1067,8 +1068,7 @@ flake8 = [
{file = "flake8-3.8.4.tar.gz", hash = "sha256:aadae8761ec651813c24be05c6f7b4680857ef6afaae4651a4eccaef97ce6c3b"},
]
flake8-blind-except = [
{file = "flake8-blind-except-0.1.1.tar.gz", hash = "sha256:aca3356633825544cec51997260fe31a8f24a1a2795ce8e81696b9916745e599"},
{file = "flake8_blind_except-0.1.1-py2.7.egg", hash = "sha256:0d7d1adb4cabf2268d6eebb815a7a5014bcb7e8419f7a74339c46d0b8847b858"},
{file = "flake8-blind-except-0.2.0.tar.gz", hash = "sha256:02a860a1a19cb602c006a3fe0778035b0d14d3f57929b4b798bc7d6684f204e5"},
]
flake8-builtins = [
{file = "flake8-builtins-1.5.3.tar.gz", hash = "sha256:09998853b2405e98e61d2ff3027c47033adbdc17f9fe44ca58443d876eb00f3b"},
@ -1177,8 +1177,8 @@ pycparser = [
{file = "pycparser-2.20.tar.gz", hash = "sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"},
]
pydocstyle = [
{file = "pydocstyle-5.1.1-py3-none-any.whl", hash = "sha256:aca749e190a01726a4fb472dd4ef23b5c9da7b9205c0a7857c06533de13fd678"},
{file = "pydocstyle-5.1.1.tar.gz", hash = "sha256:19b86fa8617ed916776a11cd8bc0197e5b9856d5433b777f51a3defe13075325"},
{file = "pydocstyle-6.0.0-py3-none-any.whl", hash = "sha256:d4449cf16d7e6709f63192146706933c7a334af7c0f083904799ccb851c50f6d"},
{file = "pydocstyle-6.0.0.tar.gz", hash = "sha256:164befb520d851dbcf0e029681b91f4f599c62c5cd8933fd54b1bfbd50e89e1f"},
]
pyflakes = [
{file = "pyflakes-2.2.0-py2.py3-none-any.whl", hash = "sha256:0d94e0e05a19e57a99444b6ddcf9a6eb2e5c68d3ca1e98e90707af8152c90a92"},
@ -1238,6 +1238,8 @@ pyyaml = [
{file = "PyYAML-5.3.1-cp37-cp37m-win_amd64.whl", hash = "sha256:73f099454b799e05e5ab51423c7bcf361c58d3206fa7b0d555426b1f4d9a3eaf"},
{file = "PyYAML-5.3.1-cp38-cp38-win32.whl", hash = "sha256:06a0d7ba600ce0b2d2fe2e78453a470b5a6e000a985dd4a4e54e436cc36b0e97"},
{file = "PyYAML-5.3.1-cp38-cp38-win_amd64.whl", hash = "sha256:95f71d2af0ff4227885f7a6605c37fd53d3a106fcab511b8860ecca9fcf400ee"},
{file = "PyYAML-5.3.1-cp39-cp39-win32.whl", hash = "sha256:ad9c67312c84def58f3c04504727ca879cb0013b2517c85a9a253f0cb6380c0a"},
{file = "PyYAML-5.3.1-cp39-cp39-win_amd64.whl", hash = "sha256:6034f55dab5fea9e53f436aa68fa3ace2634918e8b5994d82f3621c04ff5ed2e"},
{file = "PyYAML-5.3.1.tar.gz", hash = "sha256:b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d"},
]
requests = [
@ -1282,8 +1284,8 @@ urllib3 = [
{file = "urllib3-1.26.2.tar.gz", hash = "sha256:19188f96923873c92ccb987120ec4acaa12f0461fa9ce5d3d0772bc965a39e08"},
]
yapf = [
{file = "yapf-0.30.0-py2.py3-none-any.whl", hash = "sha256:3abf61ba67cf603069710d30acbc88cfe565d907e16ad81429ae90ce9651e0c9"},
{file = "yapf-0.30.0.tar.gz", hash = "sha256:3000abee4c28daebad55da6c85f3cd07b8062ce48e2e9943c8da1b9667d48427"},
{file = "yapf-0.31.0-py2.py3-none-any.whl", hash = "sha256:e3a234ba8455fe201eaa649cdac872d590089a18b661e39bbac7020978dd9c2e"},
{file = "yapf-0.31.0.tar.gz", hash = "sha256:408fb9a2b254c302f49db83c59f9aa0b4b0fd0ec25be3a5c51181327922ff63d"},
]
zipp = [
{file = "zipp-3.4.0-py3-none-any.whl", hash = "sha256:102c24ef8f171fd729d46599845e95c7ab894a4cf45f5de11a44cc7444fb1108"},

View File

@ -40,7 +40,7 @@ dns-corenetworks = "certbot_dns_corenetworks.dns_corenetworks:Authenticator"
[tool.poetry.dependencies]
acme = "^1.10.1"
certbot = "^1.10.1 "
corenetworks = "^0.1.4"
corenetworks = "^0.2.0"
parsedatetime = "^2.6"
python = "^3.6.0"
"zope.interface" = "^5.2.0"
@ -48,7 +48,7 @@ python = "^3.6.0"
[tool.poetry.dev-dependencies]
bandit = "^1.7.0"
flake8 = "^3.8.4"
flake8-blind-except = "^0.1.1"
flake8-blind-except = "^0.2.0"
flake8-builtins = "^1.5.3"
flake8-colors = "^0.1.9"
flake8-docstrings = "^1.5.0"
@ -60,11 +60,11 @@ flake8-polyfill = "^1.0.2"
flake8-quotes = "^3.2.0"
mock = "^4.0.3"
pep8-naming = "^0.11.1"
pydocstyle = "^5.1.1"
pydocstyle = "^6.0.0"
pytest = "^6.2.1"
pytest-cov = "^2.10.1"
pytest-mock = "^3.4.0"
yapf = "^0.30.0"
yapf = "^0.31.0"
[tool.poetry-dynamic-versioning]
enable = true
@ -76,7 +76,7 @@ default_section = "THIRDPARTY"
force_single_line = true
line_length = 99
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
skip_glob = ["**/.env*", "**/env/*", "**/docs/*"]
skip_glob = ["**/.env*", "**/env/*", "**/.venv/*", "**/docs/*"]
[tool.pytest.ini_options]
addopts = "certbot_dns_corenetworks --cov=certbot_dns_corenetworks --cov-report=xml:coverage.xml --cov-report=term --cov-append --no-cov-on-fail"