Skip to content

Commit f36aaff

Browse files
committed
fix: move metadata to pyproject.toml
1 parent 9be8212 commit f36aaff

File tree

2 files changed

+62
-57
lines changed

2 files changed

+62
-57
lines changed

pyproject.toml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,63 @@
1+
[build-system]
2+
requires = ["setuptools>=61", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "djangocms-audio"
7+
dynamic = ["version"]
8+
description = "Adds audio plugin to django CMS."
9+
readme = "README.rst"
10+
license = "BSD-3-Clause"
11+
authors = [
12+
{ name = "Divio AG", email = "info@divio.com" },
13+
]
14+
maintainers = [
15+
{ name = "Django CMS Association and contributors", email = "info@django-cms.org" },
16+
]
17+
urls = { Homepage = "https://github.com/django-cms/djangocms-audio" }
18+
classifiers = [
19+
"Development Status :: 5 - Production/Stable",
20+
"Environment :: Web Environment",
21+
"Intended Audience :: Developers",
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.10",
26+
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
28+
"Programming Language :: Python :: 3.13",
29+
"Programming Language :: Python :: 3.14",
30+
"Framework :: Django",
31+
"Framework :: Django :: 4.2",
32+
"Framework :: Django :: 5.0",
33+
"Framework :: Django :: 5.1",
34+
"Framework :: Django :: 5.2",
35+
"Framework :: Django :: 6.0",
36+
"Framework :: Django CMS",
37+
"Framework :: Django CMS :: 3.11",
38+
"Framework :: Django CMS :: 4.1",
39+
"Framework :: Django CMS :: 5.0",
40+
"Topic :: Internet :: WWW/HTTP",
41+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
42+
"Topic :: Software Development",
43+
"Topic :: Software Development :: Libraries",
44+
]
45+
dependencies = [
46+
"django-cms>=3.11",
47+
"django-filer>=2.2",
48+
"djangocms-attributes-field>=1",
49+
]
50+
51+
[tool.setuptools]
52+
include-package-data = true
53+
zip-safe = false
54+
55+
[tool.setuptools.dynamic]
56+
version = { attr = "djangocms_audio.__version__" }
57+
58+
[tool.setuptools.packages.find]
59+
include = ["djangocms_audio", "djangocms_audio.*"]
60+
161
[tool.pytest.ini_options]
262
DJANGO_SETTINGS_MODULE = "tests.settings"
363

setup.py

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

4-
from djangocms_audio import __version__
54

6-
REQUIREMENTS = [
7-
'django-cms>=3.11',
8-
'django-filer>=2.2',
9-
'djangocms-attributes-field>=1'
10-
]
11-
12-
13-
CLASSIFIERS = [
14-
'Development Status :: 5 - Production/Stable',
15-
'Environment :: Web Environment',
16-
'Intended Audience :: Developers',
17-
'License :: OSI Approved :: BSD License',
18-
'Operating System :: OS Independent',
19-
'Programming Language :: Python',
20-
'Programming Language :: Python :: 3',
21-
'Programming Language :: Python :: 3.10',
22-
'Programming Language :: Python :: 3.11',
23-
'Programming Language :: Python :: 3.12',
24-
'Programming Language :: Python :: 3.13',
25-
'Programming Language :: Python :: 3.14',
26-
'Framework :: Django',
27-
'Framework :: Django :: 4.2',
28-
'Framework :: Django :: 5.0',
29-
'Framework :: Django :: 5.1',
30-
'Framework :: Django :: 5.2',
31-
'Framework :: Django :: 6.0',
32-
'Framework :: Django CMS',
33-
'Framework :: Django CMS :: 3.11',
34-
'Framework :: Django CMS :: 4.1',
35-
'Framework :: Django CMS :: 5.0',
36-
'Topic :: Internet :: WWW/HTTP',
37-
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
38-
'Topic :: Software Development',
39-
'Topic :: Software Development :: Libraries',
40-
]
41-
42-
43-
setup(
44-
name='djangocms-audio',
45-
version=__version__,
46-
author='Divio AG',
47-
author_email='info@divio.com',
48-
maintainer='Django CMS Association and contributors',
49-
maintainer_email='info@django-cms.org',
50-
url='https://github.com/django-cms/djangocms-audio',
51-
license='BSD-3-Clause',
52-
description='Adds audio plugin to django CMS.',
53-
long_description=open('README.rst').read(),
54-
packages=find_packages(),
55-
include_package_data=True,
56-
zip_safe=False,
57-
install_requires=REQUIREMENTS,
58-
classifiers=CLASSIFIERS,
59-
test_suite='tests.settings.run',
60-
)
5+
setup()

0 commit comments

Comments
 (0)