Skip to content

Commit 3f18d13

Browse files
committed
Switch to pyproject.toml.
1 parent 787cec0 commit 3f18d13

File tree

2 files changed

+63
-40
lines changed

2 files changed

+63
-40
lines changed

pyproject.toml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[project]
2+
name = "drf-excel"
3+
authors = [{name = "Tim Allen", email = "[email protected]"},]
4+
description = "Django REST Framework renderer for Excel spreadsheet (xlsx) files."
5+
dynamic = ["version"]
6+
readme = "README.md"
7+
requires-python = ">=3.7"
8+
keywords = ["djangorestframework", "django rest framework", "excel", "spreadsheet", "rest", "restful", "api", "xls", "xlsx", "openpyxl"]
9+
license = {text = "BSD-3-Clause"}
10+
classifiers = [
11+
"Development Status :: 5 - Production/Stable",
12+
"Environment :: Web Environment",
13+
"Intended Audience :: Developers",
14+
"License :: OSI Approved :: BSD License",
15+
"Operating System :: OS Independent",
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3.8",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3 :: Only",
24+
"Framework :: Django",
25+
"Framework :: Django :: 3",
26+
"Framework :: Django :: 4",
27+
"Topic :: Internet :: WWW/HTTP",
28+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
29+
]
30+
dependencies = [
31+
"djangorestframework>=3.14",
32+
"openpyxl>=2.4",
33+
]
34+
35+
[project.optional-dependencies]
36+
dev = [
37+
"django-coverage-plugin",
38+
"ipython",
39+
"ruff",
40+
"pytest-coverage",
41+
"pytest-django",
42+
]
43+
44+
[project.urls]
45+
"Homepage" = "https://github.com/wharton/drf-excel/"
46+
"Repository" = "https://github.com/wharton/drf-excel/"
47+
"Documentation" = "https://github.com/wharton/drf-excel/"
48+
49+
[build-system]
50+
requires = ["setuptools>=67", "setuptools_scm>=7", "wheel"]
51+
build-backend = "setuptools.build_meta"
52+
53+
[tool.setuptools_scm]
54+
write_to = "drf_excel/_version.py"
55+
56+
[tool.pytest.ini_options]
57+
addopts = "--cov --cov-report=html"
58+
python_files = "tests.py test_*.py"
59+
DJANGO_SETTINGS_MODULE = "tests.settings"
60+
61+
[tool.coverage.run]
62+
plugins = ["django_coverage_plugin"]
63+
include = ["drf_excel/*"]

setup.py

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

0 commit comments

Comments
 (0)