Skip to content

Commit

Permalink
Use pyproject.toml instead of setup.cfg (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
kytta authored Oct 4, 2023
2 parents 907ed10 + 3951357 commit 80fa518
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 54 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ jobs:
- django-version: '3.2'
python-version: '3.10'

- django-version: '4.0'
python-version: '3.8'
- django-version: '4.0'
python-version: '3.9'
- django-version: '4.0'
python-version: '3.10'

- django-version: '4.1'
python-version: '3.8'
- django-version: '4.1'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ example/example.sqlite3
coverage.xml
.coverage
.tox
build
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,52 @@ requires = [
"setuptools_scm[toml]>=3.4",
]

[project]
name = "django-simple-menu"
description = "Simple, yet powerful, code-based menus for Django applications"
readme = "README.rst"
license = {text = "BSD 2-Clause"}
authors = [{"name"= "Evan Borgstrom", "email"="[email protected]"}]
requires-python = ">=3.6"
classifiers =[
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = [
"version",
]
dependencies = [
"Django>=3.2",
'importlib_metadata; python_version < "3.8"',
]
[project.urls]
"Source Code" = "https://github.com/jazzband/django-simple-menu"

[tool.setuptools]
packages =[
"simple_menu",
"menu",
]
include-package-data = true
license-files = ["LICENSE"]

[tool.setuptools_scm]
# this empty section means: use_scm_version=True
version_scheme = "guess-next-dev"
Expand Down
44 changes: 0 additions & 44 deletions setup.cfg

This file was deleted.

9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
envlist =
py3{11, 10, 9, 8}-dj42
py3{11, 10, 9, 8}-dj41
py3{10, 9, 8}-dj40
py3{10, 9, 8, 7, 6}-dj32
py3{12, 11, 10}-djmain
isolated_build = true
Expand All @@ -12,7 +11,6 @@ deps =
covdefaults
coverage[toml]
dj32: Django~=3.2.16
dj40: Django~=4.0.8
dj41: Django~=4.1.3
dj42: Django~=4.2.1
djmain: https://github.com/django/django/tarball/main
Expand All @@ -26,6 +24,12 @@ commands =
coverage report
coverage xml

[testenv:py36-dj32]
download = true
deps =
{[testenv]deps}
importlib_metadata

[gh-actions]
python =
3.6: py36
Expand All @@ -39,7 +43,6 @@ python =
[gh-actions:env]
django =
3.2: dj32
4.0: dj40
4.1: dj41
4.2: dj42
main: djmain

0 comments on commit 80fa518

Please sign in to comment.