fix: support legacy tox and setuptools for Python 3.6

This commit is contained in:
Gabriel Dugny 2024-03-24 17:36:07 +01:00 committed by Emil Stenström
parent 44f984c84b
commit a818f18423
2 changed files with 6 additions and 5 deletions

View file

@ -1,17 +1,16 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os import os
from setuptools import setup from setuptools import find_packages, setup
VERSION = "0.61" VERSION = "0.61"
setup( setup(
name="django_components", name="django_components",
package_dir={ packages=find_packages(where="src", exclude=["tests", "tests.*"]),
"django_components": "src/django_components" package_dir={"": "src"},
},
package_data={ package_data={
"django_components": ["py.typed"], "django_components": ["py.typed"],
}, },
version=VERSION, version=VERSION,
description="A way to create simple reusable template components in Django.", description="A way to create simple reusable template components in Django.",

View file

@ -29,6 +29,8 @@ python =
3.12: py312-django{42,50}, flake8, isort, coverage, mypy 3.12: py312-django{42,50}, flake8, isort, coverage, mypy
fail_on_no_env = True fail_on_no_env = True
isolated_build = true
[testenv] [testenv]
package = wheel package = wheel
wheel_build_env = .pkg wheel_build_env = .pkg