Skip to content

Commit b25f03d

Browse files
committed
Collect build info pyproject.toml
1 parent 859db85 commit b25f03d

File tree

5 files changed

+111
-105
lines changed

5 files changed

+111
-105
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
with:
1515
python-version: 3.9
1616
- name: Install flake8
17-
run: pip install --upgrade flake8
17+
run: pip install --upgrade flake8 flake8-pyproject
1818
- name: Run flake8
1919
uses: liskin/gh-problem-matcher-wrap@v1
2020
with:

pyproject.toml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "django-filer"
7+
description = "A file management application for django that makes handling of files and images a breeze."
8+
requires-python = ">=3.8"
9+
license = {text = "BSD-3-Clause"}
10+
authors = [
11+
{name = "Divio AG", email = "[email protected]"},
12+
]
13+
maintainers = [
14+
{name = "Django CMS Association and contributors", email = "[email protected]"},
15+
]
16+
classifiers = [
17+
"Development Status :: 5 - Production/Stable",
18+
"Environment :: Web Environment",
19+
"Intended Audience :: Developers",
20+
"License :: OSI Approved :: BSD License",
21+
"Operating System :: OS Independent",
22+
"Programming Language :: Python",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.8",
25+
"Programming Language :: Python :: 3.9",
26+
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Framework :: Django",
30+
"Framework :: Django :: 3.2",
31+
"Framework :: Django :: 4.0",
32+
"Framework :: Django :: 4.1",
33+
"Framework :: Django :: 4.2",
34+
"Framework :: Django :: 5.0",
35+
"Framework :: Django :: 5.1",
36+
"Framework :: Django CMS",
37+
"Framework :: Django CMS :: 3.8",
38+
"Framework :: Django CMS :: 3.9",
39+
"Framework :: Django CMS :: 3.10",
40+
"Framework :: Django CMS :: 3.11",
41+
"Framework :: Django CMS :: 4.0",
42+
"Framework :: Django CMS :: 4.1",
43+
"Topic :: Internet :: WWW/HTTP",
44+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
45+
"Topic :: Software Development",
46+
"Topic :: Software Development :: Libraries",
47+
]
48+
dynamic = ["version", "readme"]
49+
dependencies = [
50+
"django>=3.2",
51+
"django-polymorphic",
52+
"easy-thumbnails[svg]",
53+
]
54+
[project.urls]
55+
Homepage = "https://github.com/django-cms/django-filer"
56+
57+
58+
[project.optional-dependencies]
59+
heif = ["pillow-heif"]
60+
61+
[tool.setuptools]
62+
include-package-data = true
63+
zip-safe = false
64+
65+
[tool.setuptools.packages.find]
66+
where = ["."]
67+
include = ["filer*"]
68+
exclude = ["tests*"]
69+
namespaces = false
70+
71+
[tool.setuptools.dynamic]
72+
version = {attr = "filer.__version__"}
73+
readme = {file = ["README.rst"]}
74+
75+
[tool.flake8]
76+
max-line-length = 119
77+
exclude = [
78+
"*.egg-info",
79+
".eggs",
80+
".env",
81+
".git",
82+
".settings",
83+
".tox",
84+
".venv",
85+
"build",
86+
"data",
87+
"dist",
88+
"docs",
89+
"*migrations*",
90+
"tmp",
91+
"node_modules",
92+
]
93+
ignore = ["E251", "E128", "E501", "W503"]
94+
95+
[tool.isort]
96+
line_length = 119
97+
skip = ["manage.py", "*migrations*", ".tox", ".eggs", "data", ".env", ".venv"]
98+
include_trailing_comma = true
99+
multi_line_output = 5
100+
lines_after_imports = 2
101+
default_section = "THIRDPARTY"
102+
sections = ["FUTURE", "STDLIB", "DJANGO", "CMS", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
103+
known_first_party = ["filer"]
104+
known_cms = ["cms", "menus"]
105+
known_django = ["django"]

setup.cfg

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

setup.py

Lines changed: 2 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,4 @@
11
#!/usr/bin/env python
2-
from setuptools import find_packages, setup
2+
from setuptools import setup
33

4-
from filer import __version__
5-
6-
7-
REQUIREMENTS = [
8-
'django>=3.2',
9-
'django-polymorphic',
10-
'easy-thumbnails[svg]',
11-
]
12-
13-
14-
EXTRA_REQUIREMENTS = {
15-
"heif": [
16-
"pillow-heif",
17-
],
18-
}
19-
20-
21-
CLASSIFIERS = [
22-
'Development Status :: 5 - Production/Stable',
23-
'Environment :: Web Environment',
24-
'Intended Audience :: Developers',
25-
'License :: OSI Approved :: BSD License',
26-
'Operating System :: OS Independent',
27-
'Programming Language :: Python',
28-
'Programming Language :: Python :: 3',
29-
'Programming Language :: Python :: 3.8',
30-
'Programming Language :: Python :: 3.9',
31-
'Programming Language :: Python :: 3.10',
32-
'Programming Language :: Python :: 3.11',
33-
'Programming Language :: Python :: 3.12',
34-
'Framework :: Django',
35-
'Framework :: Django :: 3.2',
36-
'Framework :: Django :: 4.0',
37-
'Framework :: Django :: 4.1',
38-
'Framework :: Django :: 4.2',
39-
'Framework :: Django :: 5.0',
40-
'Framework :: Django :: 5.1',
41-
'Framework :: Django CMS',
42-
'Framework :: Django CMS :: 3.8',
43-
'Framework :: Django CMS :: 3.9',
44-
'Framework :: Django CMS :: 3.10',
45-
'Framework :: Django CMS :: 3.11',
46-
'Framework :: Django CMS :: 4.0',
47-
'Framework :: Django CMS :: 4.1',
48-
'Topic :: Internet :: WWW/HTTP',
49-
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
50-
'Topic :: Software Development',
51-
'Topic :: Software Development :: Libraries',
52-
]
53-
54-
55-
setup(
56-
name='django-filer',
57-
version=__version__,
58-
author='Divio AG',
59-
author_email='[email protected]',
60-
maintainer='Django CMS Association and contributors',
61-
maintainer_email='[email protected]',
62-
url='https://github.com/django-cms/django-filer',
63-
license='BSD-3-Clause',
64-
description='A file management application for django that makes handling '
65-
'of files and images a breeze.',
66-
long_description=open('README.rst').read(),
67-
packages=find_packages(),
68-
include_package_data=True,
69-
zip_safe=False,
70-
install_requires=REQUIREMENTS,
71-
extras_require=EXTRA_REQUIREMENTS,
72-
python_requires='>=3.8',
73-
classifiers=CLASSIFIERS,
74-
test_suite='tests.settings.run',
75-
)
4+
setup()

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ setenv =
3535
swap: CUSTOM_IMAGE=custom_image.Image
3636

3737
[testenv:flake8]
38-
deps = flake8
38+
deps =
39+
flake8
40+
flake8-pyproject
3941
commands = flake8
4042

4143
[testenv:isort]

0 commit comments

Comments
 (0)