Skip to content

Commit

Permalink
Bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mochipon committed Jan 19, 2025
1 parent 369bfe4 commit 6b75035
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 82 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
name: Build and Test
strategy:
matrix:
python-versions: ['3.8', '3.9', '3.10', '3.11']
python-versions: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

Expand All @@ -44,7 +44,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
pip install tox tox-gh-actions poetry
- name: Test with tox
run: tox
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
run: ls -Rla ${{steps.download.outputs.download-path}}

- name: 🚀 Publish code coverage to Code Climate
uses: paambaati/codeclimate-action@v8.0.0
uses: paambaati/codeclimate-action@v9.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
Expand All @@ -99,13 +99,12 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.13'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Build wheels and source tarball
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
python-versions: ['3.11']
python-versions: ['3.13']

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -37,7 +37,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install poetry
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Push tag
run: |
Expand Down
25 changes: 10 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: forbid-tabs
- id: remove-tabs
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-builtin-literals
Expand All @@ -18,22 +18,17 @@ repos:
- id: forbid-new-submodules
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/pycqa/isort
rev: 5.13.2
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.2
hooks:
- id: isort
files: \.py$
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports]
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.14.1
hooks:
- id: mypy
files: octodns_netbox
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $ git clone [email protected]:your_name_here/octodns-netbox.git
4. Install dependencies and start your virtualenv:

```
$ poetry install
$ poetry install --with dev
```

5. Create a branch for local development:
Expand Down
2 changes: 0 additions & 2 deletions poetry.toml

This file was deleted.

68 changes: 26 additions & 42 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,65 +2,49 @@
build-backend = "poetry_dynamic_versioning.backend"
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]

[tool]

[tool.black]
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
include = '\.pyi?$'
line-length = 88
[poetry.group.dev.dependencies]
pre-commit = "^4.0.0"
pytest = "^8.0.0"
pytest-cov = "^6.0.0"
requests-mock = "^1.12.0"
tox = "^4.0.0"

[tool.poetry]
authors = ["Masaki Tagawa <[email protected]>"]
[project]
authors = [
{name = "Tagawa, Masaki", email = "[email protected]"}
]
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11'
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13'
]
dependencies = [
"octodns (>=1.10.0,<2.0.0)",
"pydantic (>=2.10.5,<3.0.0)",
"pynetbox (>=7.4.1,<8.0.0)",
"requests (>=2.32.3,<3.0.0)",
"typing-extensions (>=4.12.2,<5.0.0) ; python_version < '3.9'"
]
description = "A NetBox source for octoDNS."
dynamic = ["version"]
homepage = "https://github.com/sukiyaki/octodns-netbox"
license = "MIT"
name = "octodns-netbox"
packages = [
{include = "octodns_netbox"},
{include = "tests", format = "sdist"}
]
readme = "README.md"
version = "0.0.0"
requires-python = ">=3.9,<4"

[tool.poetry.dependencies]
octodns = {version = "^1.0.0"}
poetry = "^1.7.1"
pydantic = "^2.0.0"
pynetbox = {version = "^7.0.0"}
python = ">=3.8,<4.0"
requests = {version = "^2.31.0"}
typing-extensions = {version = "^4.9.0", python = "<3.9"}
[tool.poetry]
version = "0.0.0"

[tool.poetry.dev-dependencies]
pre-commit = "^3.0.0"
pytest = "^8.0.0"
pytest-cov = "^5.0.0"
requests-mock = "^1.11.0"
tox = "^4.0.0"
[tool.poetry.requires-plugins]
poetry-dynamic-versioning = {version = ">=1.0.0,<2.0.0", extras = ["plugin"]}

[tool.poetry-dynamic-versioning]
bump = true
Expand Down
24 changes: 9 additions & 15 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
[tox]
isolated_build = true
envlist =
py38, py39, py310, py311
coverage, lint, packaging
py39, py310, py311, py312, py313
lint, packaging

[gh-actions]
python =
3.11: py311, coverage, lint, packaging
3.10: py310, coverage
3.9: py39, coverage
3.8: py38, coverage
3.13: py313, lint, packaging
3.12: py312
3.11: py311
3.10: py310
3.9: py39

[testenv]
setenv =
PYTHONIOENCODING=utf-8
PY_COLORS=1
passenv = CI
skip_install = true
allowlist_externals =
poetry
commands_pre =
poetry self update
poetry self add "poetry-dynamic-versioning[plugin]"
poetry run python -m pip install pip -U
poetry install --with dev -v
commands =
poetry install --no-root -v
poetry run pytest []

[testenv:coverage]
basepython = python3
commands =
poetry install --no-root -v
poetry run pytest --cov=octodns_netbox --cov-report=xml --cov-report term-missing []

[testenv:packaging]
Expand Down

0 comments on commit 6b75035

Please sign in to comment.