From 5465938f57a1fe9693715117a599c4b6394474f3 Mon Sep 17 00:00:00 2001 From: Adam Taylor Date: Tue, 21 May 2024 19:20:59 -0600 Subject: [PATCH] Replaced setup.cfg and setup.py with pyproject.toml --- pyproject.toml | 50 +++++++++++++++++++++++++++++++ setup.cfg | 2 -- setup.py | 43 -------------------------- src/friendlytagloader/__init__.py | 1 + tox.ini | 1 + 5 files changed, 52 insertions(+), 45 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9ef44ee --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,50 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "django-friendly-tag-loader" +authors = [ + { name="Jaap Roes", email="jaap.roes@gmail.com" }, + { name="Adam Taylor", email="ataylor32@gmail.com" }, +] +description = "Want to optionally use a template tag library? Use this!" +readme = "README.rst" +dynamic = ["version"] +dependencies = [ + "Django", +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Web Environment", + "Framework :: Django", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] + +[project.urls] +Homepage = "https://github.com/ataylor32/django-friendly-tag-loader" +Repository = "https://github.com/ataylor32/django-friendly-tag-loader.git" +Issues = "https://github.com/ataylor32/django-friendly-tag-loader/issues" +Changelog = "https://github.com/ataylor32/django-friendly-tag-loader/blob/master/CHANGES.rst" + +[tool.hatch.build] +include = [ + "/src", +] + +[tool.hatch.version] +path = "src/friendlytagloader/__init__.py" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 2a9acf1..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal = 1 diff --git a/setup.py b/setup.py deleted file mode 100644 index 5d5e27d..0000000 --- a/setup.py +++ /dev/null @@ -1,43 +0,0 @@ -import codecs -from os.path import join, dirname -from setuptools import setup - - -version = '1.3.1' -read = lambda *names: codecs.open(join(dirname(__file__), *names), - encoding='utf-8').read().strip() - -setup( - name='django-friendly-tag-loader', - version=version, - description='Want to optionally use a template tag library? Use this!', - long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)), - author='Jaap Roes', - author_email='jaap.roes@gmail.com', - url='https://github.com/ataylor32/django-friendly-tag-loader', - package_dir={'': 'src'}, - packages=['friendlytagloader', 'friendlytagloader.templatetags'], - license='MIT', - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Web Environment', - 'Framework :: Django', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Operating System :: OS Independent', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.12', - ], - install_requires=[], - zip_safe=False, -) diff --git a/src/friendlytagloader/__init__.py b/src/friendlytagloader/__init__.py index e69de29..72837bd 100644 --- a/src/friendlytagloader/__init__.py +++ b/src/friendlytagloader/__init__.py @@ -0,0 +1 @@ +__version__ = '1.3.1' diff --git a/tox.ini b/tox.ini index cb2411d..492813c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,4 +1,5 @@ [tox] +isolated_build = True envlist = {py36,py37}-django{111,20,21}, {py36,py37,py38,py39}-django22