Skip to content

Commit 10c93ca

Browse files
Updated packaging to use pyproject.toml and Flit.
Co-authored-by: Carlton Gibson <[email protected]>
1 parent 1268b0f commit 10c93ca

File tree

4 files changed

+58
-86
lines changed

4 files changed

+58
-86
lines changed

pyproject.toml

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,58 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["flit_core >=3.2,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[project]
6+
name = "django-filter"
7+
version = "23.2"
8+
authors = [{name = "Alex Gaynor", email = "[email protected]"}]
9+
maintainers = [{name = "Carlton Gibson", email = "[email protected]"}]
10+
license = {text = "BSD"}
11+
description = "Django-filter is a reusable Django application for allowing users to filter querysets dynamically."
12+
readme = "README.rst"
13+
classifiers = [
14+
"Development Status :: 5 - Production/Stable",
15+
"Environment :: Web Environment",
16+
"Intended Audience :: Developers",
17+
"License :: OSI Approved :: BSD License",
18+
"Operating System :: OS Independent",
19+
"Framework :: Django",
20+
"Framework :: Django :: 3.2",
21+
"Framework :: Django :: 4.0",
22+
"Framework :: Django :: 4.1",
23+
"Framework :: Django :: 4.2",
24+
"Programming Language :: Python",
25+
"Programming Language :: Python :: 3",
26+
"Programming Language :: Python :: 3.7",
27+
"Programming Language :: Python :: 3.8",
28+
"Programming Language :: Python :: 3.9",
29+
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
31+
]
32+
requires-python = ">=3.7"
33+
dependencies = ["Django>=3.2"]
34+
35+
[project.urls]
36+
Homepage = "https://github.com/carltongibson/django-filter/tree/main"
37+
Documentation = "https://django-filter.readthedocs.io/en/main/"
38+
Changelog = "https://github.com/carltongibson/django-filter/blob/main/CHANGES.rst"
39+
"Bug Tracker" = "https://github.com/carltongibson/django-filter/issues"
40+
"Source Code" = "https://github.com/carltongibson/django-filter"
41+
42+
[tool.setuptools]
43+
zip-safe = false
44+
include-package-data = true
45+
license-files = ["LICENSE"]
46+
47+
[tool.setuptools.packages.find]
48+
exclude = ["tests*"]
49+
namespaces = false
50+
51+
[tool.isort]
52+
profile = "black"
53+
skip = [".tox"]
54+
known_third_party = ["django", "pytz", "rest_framework"]
55+
known_first_party = ["django_filters"]
56+
57+
[tool.flit.module]
58+
name = "django_filters"

setup.cfg

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
[metadata]
2-
license_file = LICENSE
3-
4-
[isort]
5-
profile = black
6-
skip=.tox
7-
known_third_party=django,pytz,rest_framework
8-
known_first_party=django_filters
9-
101
[flake8]
112
max_line_length = 120
123
max_complexity = 10

setup.py

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

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ envlist =
44
{py38,py39}-{django40,django41,django42},
55
{py310, py311}-{django41,django42,latest},
66
isort,lint,docs,warnings,
7+
isolated_build = true
78

89

910
[latest]

0 commit comments

Comments
 (0)