Skip to content

Commit 80fa518

Browse files
authored
Use pyproject.toml instead of setup.cfg (#138)
2 parents 907ed10 + 3951357 commit 80fa518

File tree

5 files changed

+53
-54
lines changed

5 files changed

+53
-54
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@ jobs:
3030
- django-version: '3.2'
3131
python-version: '3.10'
3232

33-
- django-version: '4.0'
34-
python-version: '3.8'
35-
- django-version: '4.0'
36-
python-version: '3.9'
37-
- django-version: '4.0'
38-
python-version: '3.10'
39-
4033
- django-version: '4.1'
4134
python-version: '3.8'
4235
- django-version: '4.1'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ example/example.sqlite3
1313
coverage.xml
1414
.coverage
1515
.tox
16+
build

pyproject.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,52 @@ requires = [
55
"setuptools_scm[toml]>=3.4",
66
]
77

8+
[project]
9+
name = "django-simple-menu"
10+
description = "Simple, yet powerful, code-based menus for Django applications"
11+
readme = "README.rst"
12+
license = {text = "BSD 2-Clause"}
13+
authors = [{"name"= "Evan Borgstrom", "email"="[email protected]"}]
14+
requires-python = ">=3.6"
15+
classifiers =[
16+
"Development Status :: 5 - Production/Stable",
17+
"Framework :: Django",
18+
"Framework :: Django :: 3.2",
19+
"Framework :: Django :: 4.1",
20+
"Framework :: Django :: 4.2",
21+
"Intended Audience :: Developers",
22+
"License :: OSI Approved :: BSD License",
23+
"Natural Language :: English",
24+
"Operating System :: OS Independent",
25+
"Programming Language :: Python",
26+
"Programming Language :: Python :: 3 :: Only",
27+
"Programming Language :: Python :: 3.6",
28+
"Programming Language :: Python :: 3.7",
29+
"Programming Language :: Python :: 3.8",
30+
"Programming Language :: Python :: 3.9",
31+
"Programming Language :: Python :: 3.10",
32+
"Programming Language :: Python :: 3.11",
33+
"Topic :: Software Development :: Libraries",
34+
"Topic :: Software Development :: Libraries :: Python Modules",
35+
]
36+
dynamic = [
37+
"version",
38+
]
39+
dependencies = [
40+
"Django>=3.2",
41+
'importlib_metadata; python_version < "3.8"',
42+
]
43+
[project.urls]
44+
"Source Code" = "https://github.com/jazzband/django-simple-menu"
45+
46+
[tool.setuptools]
47+
packages =[
48+
"simple_menu",
49+
"menu",
50+
]
51+
include-package-data = true
52+
license-files = ["LICENSE"]
53+
854
[tool.setuptools_scm]
955
# this empty section means: use_scm_version=True
1056
version_scheme = "guess-next-dev"

setup.cfg

Lines changed: 0 additions & 44 deletions
This file was deleted.

tox.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
envlist =
33
py3{11, 10, 9, 8}-dj42
44
py3{11, 10, 9, 8}-dj41
5-
py3{10, 9, 8}-dj40
65
py3{10, 9, 8, 7, 6}-dj32
76
py3{12, 11, 10}-djmain
87
isolated_build = true
@@ -12,7 +11,6 @@ deps =
1211
covdefaults
1312
coverage[toml]
1413
dj32: Django~=3.2.16
15-
dj40: Django~=4.0.8
1614
dj41: Django~=4.1.3
1715
dj42: Django~=4.2.1
1816
djmain: https://github.com/django/django/tarball/main
@@ -26,6 +24,12 @@ commands =
2624
coverage report
2725
coverage xml
2826

27+
[testenv:py36-dj32]
28+
download = true
29+
deps =
30+
{[testenv]deps}
31+
importlib_metadata
32+
2933
[gh-actions]
3034
python =
3135
3.6: py36
@@ -39,7 +43,6 @@ python =
3943
[gh-actions:env]
4044
django =
4145
3.2: dj32
42-
4.0: dj40
4346
4.1: dj41
4447
4.2: dj42
4548
main: djmain

0 commit comments

Comments
 (0)