Skip to content

Commit

Permalink
Updated packaging to use pyproject.toml and Flit.
Browse files Browse the repository at this point in the history
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
  • Loading branch information
2 people authored and last-partizan committed Sep 12, 2024
1 parent 00a5db7 commit c2e5a15
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 86 deletions.
59 changes: 57 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,58 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "django-filter"
version = "23.2"
authors = [{name = "Alex Gaynor", email = "alex.gaynor@gmail.com"}]
maintainers = [{name = "Carlton Gibson", email = "carlton.gibson@noumenal.es"}]
license = {text = "BSD"}
description = "Django-filter is a reusable Django application for allowing users to filter querysets dynamically."
readme = "README.rst"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
]
requires-python = ">=3.7"
dependencies = ["Django>=3.2"]

[project.urls]
Homepage = "https://github.com/carltongibson/django-filter/tree/main"
Documentation = "https://django-filter.readthedocs.io/en/main/"
Changelog = "https://github.com/carltongibson/django-filter/blob/main/CHANGES.rst"
"Bug Tracker" = "https://github.com/carltongibson/django-filter/issues"
"Source Code" = "https://github.com/carltongibson/django-filter"

[tool.setuptools]
zip-safe = false
include-package-data = true
license-files = ["LICENSE"]

[tool.setuptools.packages.find]
exclude = ["tests*"]
namespaces = false

[tool.isort]
profile = "black"
skip = [".tox"]
known_third_party = ["django", "pytz", "rest_framework"]
known_first_party = ["django_filters"]

[tool.flit.module]
name = "django_filters"
9 changes: 0 additions & 9 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
[metadata]
license_file = LICENSE

[isort]
profile = black
skip=.tox
known_third_party=django,pytz,rest_framework
known_first_party=django_filters

[flake8]
max_line_length = 120
max_complexity = 10
75 changes: 0 additions & 75 deletions setup.py

This file was deleted.

1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ envlist =
{py38,py39}-{django40,django41,django42},
{py310, py311}-{django41,django42,latest},
isort,lint,docs,warnings,
isolated_build = true


[latest]
Expand Down

0 comments on commit c2e5a15

Please sign in to comment.