Skip to content

Commit

Permalink
pytest setup.py testは実行できる形で残し、残りはpyproject.toml化
Browse files Browse the repository at this point in the history
  • Loading branch information
kashewnuts committed Feb 5, 2024
1 parent 6200112 commit bee2123
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 51 deletions.
37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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="[email protected]" },
]
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 = ["."]
53 changes: 2 additions & 51 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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='[email protected]',
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")

0 comments on commit bee2123

Please sign in to comment.