Skip to content

Commit

Permalink
Modernize packaging: use pyproject.toml instead of setup.py/cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
shimizukawa committed Jun 1, 2024
1 parent f2ebb67 commit b6d66ad
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 59 deletions.
56 changes: 54 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,60 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project]
name = "django-redshift-backend"
dynamic = ["version"]
description = "Redshift database backend for Django"
readme = "README.rst"
license = {file = "LICENSE"}
requires-python = ">=3.7, <4"
authors = [
{ name = "shimizukawa", email = "[email protected]" },
]
keywords = [
"django",
"redshift",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"django",
]

[project.optional-dependencies]
psycopg2 = [
"psycopg2",
]
psycopg2-binary = [
"psycopg2-binary",
]

[project.urls]
Documentation = "https://django-redshift-backend.readthedocs.io/"
Homepage = "https://github.com/jazzband/django-redshift-backend"
"Release notes" = "https://django-redshift-backend.readthedocs.io/en/master/changes.html"
Source = "https://github.com/jazzband/django-redshift-backend"
Tracker = "https://github.com/jazzband/django-redshift-backend/issues"

[tool.setuptools]
include-package-data = true

[tool.setuptools_scm]
# this empty section means: use_scm_version=True
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"

54 changes: 0 additions & 54 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ deps =
commands =
python -m build
twine check dist/*

[flake8]
max-line-length=120
ignore = W504
exclude = tests/testapp/migrations

0 comments on commit b6d66ad

Please sign in to comment.