Skip to content

Commit

Permalink
Migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyNotHugo committed Dec 14, 2023
1 parent 060a276 commit ef9ae1f
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 51 deletions.
54 changes: 54 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
[project]
name = "django-renderpdf"
authors = [
{name = "Hugo Osvaldo Barrera", email = "[email protected]"},
# TODO: change email elsewhere
]
description = "A django app to render django templates as PDF files."
readme = "README.rst"
requires-python = ">=3.7"
keywords = ["django", "weasyprint", "pdf"]
license = {text = "ISC"}
classifiers = [
"Development Status :: 6 - Mature",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"License :: OSI Approved :: ISC License (ISCL)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"django>=2.2",
"weasyprint",
]
dynamic = ["version"]

[project.optional-dependencies]
docs = [
"sphinx",
]

[project.urls]
repository = "https://github.com/WhyNotHugo/django-renderpdf/"
documentation = "https://django-renderpdf.readthedocs.io/"
changelog = "https://github.com/WhyNotHugo/django-renderpdf/blob/main/CHANGELOG.rst"
issues = "https://github.com/WhyNotHugo/django-renderpdf/issues/"
funding = "https://whynothugo.nl/sponsor/"

[tool.black]
target-version = ['py38']

Expand Down Expand Up @@ -51,3 +98,10 @@ target-version = "py38"

[tool.ruff.isort]
force-single-line = true

[tool.setuptools]
packages = ["django_renderpdf"]

[tool.setuptools_scm]
write_to = "django_renderpdf/version.py"
version_scheme = "post-release"
51 changes: 0 additions & 51 deletions setup.py

This file was deleted.

0 comments on commit ef9ae1f

Please sign in to comment.