Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use pyproject.toml instead of setup.cfg #138

Merged
merged 2 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"="evan@borgstrom.ca"}]
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