From 1e5f051f7d2dcc95b692644e70457384800d2076 Mon Sep 17 00:00:00 2001 From: Adam Taylor Date: Wed, 22 May 2024 20:21:08 -0600 Subject: [PATCH] Replaced setup.cfg and setup.py with pyproject.toml --- pyproject.toml | 40 ++++++++++++++++++++++++++++++++++++++++ setup.cfg | 2 -- setup.py | 43 ------------------------------------------- 3 files changed, 40 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..33256b4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,40 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "django-friendly-tag-loader" +version = "1.3.1" +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" +license = {text = "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", +] + +[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" 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, -)