From 5741c339e33439a4c85be2efa76ce5eee09e5d7a Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 20 Sep 2023 23:59:02 +0200 Subject: [PATCH 1/2] PEP 621: Migrate from setup.py to pyproject.toml --- requirements.txt | 2 -- setup.py | 29 ----------------------------- 2 files changed, 31 deletions(-) delete mode 100644 requirements.txt delete mode 100644 setup.py diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index c003169..0000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -Django==2.2.28 -coverage==5.2.1 diff --git a/setup.py b/setup.py deleted file mode 100644 index c7b3dac..0000000 --- a/setup.py +++ /dev/null @@ -1,29 +0,0 @@ -import os -from setuptools import setup, find_packages - -from tos import VERSION - -f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) -readme = f.read() -f.close() - -setup( - name='django-tos', - version=".".join(map(str, VERSION)), - description='django-tos is a reusable Django application for setting Terms of Service.', - long_description=readme, - author='Frank Wiles', - author_email='frank@revsys.com', - url='http://github.com/revsys/django-tos/tree/master', - packages=find_packages(), - include_package_data=True, - classifiers=[ - 'Development Status :: 4 - Beta', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: BSD License', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Framework :: Django', - ], -) From b6ddd8a244ad5d066f49942c2a75c473ea0bdd61 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 21 Sep 2023 00:00:30 +0200 Subject: [PATCH 2/2] git add pyproject.toml --- pyproject.toml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..57cd41a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,46 @@ +[build-system] +build-backend = "setuptools.build_meta" +requires = [ + "setuptools>=61.2", +] + +[project] +name = "django-tos" +description = "django-tos is a reusable Django application for setting Terms of Service." +readme = "README.rst" +license = {text = "BSD-3-Clause"} +authors = [{name = "Frank Wiles", email = "frank@revsys.com"}] +requires-python = ">=3.7" +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Web Environment", + "Framework :: Django", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "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", +] +dynamic = [ + "version", +] +dependencies = [ + "coverage==5.2.1", + "Django==2.2.28", +] +[project.urls] +Homepage = "http://github.com/revsys/django-tos/tree/master" + +[tool.setuptools] +include-package-data = true + +[tool.setuptools.dynamic] +version = {attr = "tos.VERSION"} + +[tool.setuptools.packages] +find = {namespaces = false}