Skip to content

Commit

Permalink
Update pyproject.toml and tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Nov 10, 2024
1 parent a465770 commit 539ca5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
17 changes: 8 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
build-backend = "hatchling.build"
build-backend = "setuptools.build_meta"

requires = [ "hatchling" ]
requires = [ "setuptools", "setuptools-scm" ]

[project]
name = "djangocms-link"
Expand All @@ -14,6 +14,8 @@ maintainers = [
authors = [
{ name = "Divio AG", email = "[email protected]" },
]
requires-python = ">=3.9"

classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
Expand Down Expand Up @@ -45,16 +47,13 @@ dependencies = [
"django-cms>=3.7,!=4.1,!=4.1.1,!=4.1.2",
"djangocms-attributes-field>=1",
]

urls.Homepage = "https://github.com/django-cms/djangocms-link"

[tool.hatch.version]
path = "djangocms_link/__init__.py"
[tool.setuptools]
packages = [ "djangocms_link" ]

[tool.hatch.build.targets.sdist]
include = [
"/djangocms_link",
]
[tool.setuptools.dynamic]
version = { attr = "djangocms_link.__version__" }

[tool.isort]
line_length = 119
Expand Down
13 changes: 0 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[tox]
envlist =
flake8
isort
py{39,310,311}-dj{42}-cms{311}
py{310,311,312}-dj{42,50,51}-cms{41}

Expand All @@ -20,14 +18,3 @@ commands =
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run -m pytest
{env:COMMAND:coverage} report

[testenv:flake8]
deps =
flake8
flake8-pyproject
commands = flake8

[testenv:isort]
deps = isort
commands = isort --check --diff djangocms_link
skip_install = true

0 comments on commit 539ca5c

Please sign in to comment.