Skip to content

Commit 96dcd37

Browse files
committed
Introduce pyproj.toml
1 parent bf64341 commit 96dcd37

File tree

3 files changed

+49
-58
lines changed

3 files changed

+49
-58
lines changed

pyproject.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "django-classy-tags"
7+
version = "4.1.0"
8+
description = "Class based template tags for Django"
9+
readme = "README.rst"
10+
requires-python = ">=3.9"
11+
license = {text = "BSD"}
12+
authors = [
13+
{name = "Jonas Obrist", email = "[email protected]"},
14+
]
15+
maintainers = [
16+
{name = "Django CMS Association and contributors", email = "[email protected]"},
17+
]
18+
dependencies = [
19+
"django>=3.2"
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 :: 3",
28+
"Programming Language :: Python :: 3.9",
29+
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
31+
"Programming Language :: Python :: 3.12",
32+
"Programming Language :: Python :: 3.13",
33+
"Framework :: Django",
34+
"Framework :: Django :: 4.2",
35+
"Framework :: Django :: 5.0",
36+
"Framework :: Django :: 5.1",
37+
"Framework :: Django :: 5.2",
38+
"Topic :: Internet :: WWW/HTTP",
39+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
40+
"Topic :: Software Development",
41+
"Topic :: Software Development :: Libraries",
42+
]
43+
44+
[project.urls]
45+
Homepage = "https://github.com/django-cms/django-classy-tags"

setup.py

Lines changed: 2 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,3 @@
1-
#!/usr/bin/env python
2-
from pathlib import Path
1+
from setuptools import setup
32

4-
from setuptools import find_packages, setup
5-
6-
7-
REQUIREMENTS = [
8-
'django>=3.2',
9-
]
10-
11-
12-
CLASSIFIERS = [
13-
'Development Status :: 5 - Production/Stable',
14-
'Environment :: Web Environment',
15-
'Intended Audience :: Developers',
16-
'License :: OSI Approved :: BSD License',
17-
'Operating System :: OS Independent',
18-
'Programming Language :: Python :: 3',
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.13',
24-
'Framework :: Django',
25-
'Framework :: Django :: 4.2',
26-
'Framework :: Django :: 5.0',
27-
'Framework :: Django :: 5.1',
28-
'Framework :: Django :: 5.2',
29-
'Topic :: Internet :: WWW/HTTP',
30-
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
31-
'Topic :: Software Development',
32-
'Topic :: Software Development :: Libraries',
33-
]
34-
35-
this_directory = Path(__file__).parent
36-
long_description = (this_directory / "README.rst").read_text()
37-
38-
setup(
39-
name='django-classy-tags',
40-
version='4.1.0',
41-
author='Jonas Obrist',
42-
author_email='[email protected]',
43-
maintainer='Django CMS Association and contributors',
44-
maintainer_email='[email protected]',
45-
url='https://github.com/django-cms/django-classy-tags',
46-
license='BSD',
47-
description='Class based template tags for Django',
48-
long_description=long_description,
49-
long_description_content_type='text/x-rst',
50-
packages=find_packages(exclude=['tests']),
51-
python_requires='>=3.9',
52-
include_package_data=True,
53-
zip_safe=False,
54-
install_requires=REQUIREMENTS,
55-
classifiers=CLASSIFIERS,
56-
)
3+
setup()

tests/settings.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
INSTALLED_APPS = [
1616
'classytags',
17-
'tests',
1817
]
1918

2019
ROOT_URLCONF = 'tests.settings'
@@ -32,7 +31,7 @@
3231
]
3332

3433

35-
def runtests():
34+
def runtests(tests="."):
3635
from django import setup
3736
from django.conf import settings
3837
from django.test.utils import get_runner
@@ -49,7 +48,7 @@ def runtests():
4948
TestRunner = get_runner(settings)
5049

5150
test_runner = TestRunner(verbosity=1, interactive=False, failfast=False)
52-
failures = test_runner.run_tests(INSTALLED_APPS)
51+
failures = test_runner.run_tests(tests)
5352
return failures
5453

5554

0 commit comments

Comments
 (0)