From bee212334a85597ac288edabdff750cb00ecc16f Mon Sep 17 00:00:00 2001 From: kashewnuts Date: Mon, 5 Feb 2024 16:09:34 +0900 Subject: [PATCH] =?UTF-8?q?pytest=20setup.py=20test=E3=81=AF=E5=AE=9F?= =?UTF-8?q?=E8=A1=8C=E3=81=A7=E3=81=8D=E3=82=8B=E5=BD=A2=E3=81=A7=E6=AE=8B?= =?UTF-8?q?=E3=81=97=E3=80=81=E6=AE=8B=E3=82=8A=E3=81=AFpyproject.toml?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 37 +++++++++++++++++++++++++++++++++++ setup.py | 53 ++------------------------------------------------ 2 files changed, 39 insertions(+), 51 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..bc875a9 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,37 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "bpnotify" +version = "0.49" +authors = [ + { name="BeProud Inc.", email="project@beproud.jp" }, +] +description = "Notification routing for Django" +readme = "README.rst" +requires-python = ">=3.9" +keywords=["django"] +classifiers = [ + "Development Status :: 3 - Alpha", + "License :: OSI Approved :: BSD License", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Framework :: Django", + "Framework :: Django :: 3.2", + "Framework :: Django :: 4.2", + "Intended Audience :: Developers", + "Environment :: Plugins", + "Topic :: Software Development :: Libraries :: Python Modules", +] +dependencies = ["Django>=3.2", "six", "Celery"] + +[project.urls] +Homepage = "https://github.com/beproud/bpnotify/" + +[tool.setuptools.packages.find] +where = ["."] diff --git a/setup.py b/setup.py index 3402eb8..14667d9 100644 --- a/setup.py +++ b/setup.py @@ -1,52 +1,3 @@ -#!/usr/bin/env python -#:coding=utf-8: +from setuptools import setup -import os -from setuptools import setup, find_packages - -def read_file(filename): - basepath = os.path.dirname(__file__) - filepath = os.path.join(basepath, filename) - with open(filepath) as f: - read_text = f.read() - return read_text - - -setup( - name='bpnotify', - version='0.49', - description='Notification routing for Django', - author='BeProud', - author_email='project@beproud.jp', - long_description=read_file('README.rst'), - long_description_content_type="text/x-rst", - url='https://github.com/beproud/bpnotify/', - python_requires='>=3.9', - classifiers=[ - 'Development Status :: 3 - Alpha', - 'Environment :: Plugins', - 'Framework :: Django', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.12', - 'Framework :: Django', - 'Framework :: Django :: 3.2', - 'Framework :: Django :: 4.2', - 'Topic :: Software Development :: Libraries :: Python Modules', - ], - include_package_data=True, - packages=find_packages(), - namespace_packages=['beproud', 'beproud.django'], - test_suite='tests.main', - install_requires=[ - 'Django>=3.2', - 'Celery>=5.2', - 'six', - ], - zip_safe=False, -) +setup(test_suite="tests.main")