-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into alternative/add-http_user-to-Host
- Loading branch information
Showing
62 changed files
with
1,729 additions
and
644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# badge: https://github.com/nsupdate-info/nsupdate.info/workflows/CI/badge.svg?branch=master | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- '**.py' | ||
- '**.yml' | ||
- '**.cfg' | ||
- '**.ini' | ||
- 'requirements.d/*' | ||
- '!docs/**' | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- '**.py' | ||
- '**.yml' | ||
- '**.cfg' | ||
- '**.ini' | ||
- 'requirements.d/*' | ||
- '!docs/**' | ||
|
||
jobs: | ||
lint: | ||
|
||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: Lint with flake8 | ||
run: | | ||
pip install flake8 flake8-pyproject | ||
flake8 src scripts conftest.py | ||
tox: | ||
|
||
needs: lint | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: | ||
- os: ubuntu-22.04 | ||
python-version: '3.8' | ||
toxenv: py38 | ||
- os: ubuntu-22.04 | ||
python-version: '3.9' | ||
toxenv: py39 | ||
- os: ubuntu-22.04 | ||
python-version: '3.10' | ||
toxenv: py310 | ||
- os: ubuntu-24.04 | ||
python-version: '3.11' | ||
toxenv: py311 | ||
- os: ubuntu-24.04 | ||
python-version: '3.12' | ||
toxenv: py312 | ||
|
||
env: | ||
TOXENV: ${{ matrix.toxenv }} | ||
DJANGO_SETTINGS_MODULE: nsupdate.settings.dev | ||
|
||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 40 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# just fetching 1 commit is not enough for setuptools-scm, so we fetch all | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Cache pip | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.d/dev.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
${{ runner.os }}- | ||
- name: Install and configure bind | ||
run: | | ||
bash scripts/ci/install-bind.sh | ||
- name: Install Python tools and tox | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel tox | ||
- name: run tox env | ||
run: | | ||
tox --skip-missing-interpreters | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
OS: ${{ runner.os }} | ||
python: ${{ matrix.python-version }} | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
env_vars: OS, python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ local_settings.py | |
.coverage | ||
.idea/ | ||
.cache/ | ||
.tox/ | ||
*.sqlite | ||
*.egg-info | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[MAIN] | ||
# In error mode, messages with a category besides ERROR or FATAL are | ||
# suppressed, and no reports are done by default. Error mode is compatible with | ||
# disabling specific errors. | ||
errors-only=yes | ||
|
||
# List of plugins (as comma separated values of python module names) to load, | ||
# usually to register additional checkers. | ||
load-plugins=pylint_django | ||
|
||
django-settings-module=nsupdate.settings.dev | ||
|
||
[MASTER] | ||
init-hook='import sys; sys.path.append(".")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# .readthedocs.yaml - Read the Docs configuration file. | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details. | ||
|
||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
jobs: | ||
post_checkout: | ||
- git fetch --unshallow | ||
|
||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
|
||
sphinx: | ||
configuration: docs/conf.py |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[dev-packages] | ||
name = "pypi" | ||
|
||
[packages] | ||
dnspython = "*" | ||
netaddr = "*" | ||
django = "~=4.2.16" | ||
django-bootstrap-form = "*" | ||
django-referrer-policy = "*" | ||
django-registration-redux = "*" | ||
django-extensions = "*" | ||
social-auth-app-django = "*" | ||
requests = "*" | ||
setuptools-scm = "*" | ||
|
||
[dev-packages] | ||
django-debug-toolbar = "*" | ||
pytest = ">=3.6" | ||
pytest-django = "*" | ||
pytest-pep8 = "*" | ||
Django = "~=2.2.0" | ||
Sphinx = "*" | ||
nsupdate = {editable = true,path = "."} | ||
sphinx = "*" | ||
pylint = "*" | ||
pylint-django = "*" | ||
|
||
[requires] | ||
python_version = "3.6" | ||
python_version = "3.8" |
Oops, something went wrong.