switch from setup.py to pyproject.toml

This commit is contained in:
John Burwell 2023-04-24 22:12:42 -05:00
parent 82bbd75386
commit 8e2d96776f
3 changed files with 33 additions and 49 deletions

33
pyproject.toml Normal file
View File

@ -0,0 +1,33 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "rsbbs"
version = "0.1.0"
authors = [
{ name="John Burwell", email="john@atatdotdot.com" },
]
description = "A BBS for ax25d and packet radio that is really simple"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
]
dependencies = [
"platformdirs",
"PyYAML",
"SQLAlchemy",
]
[project.scripts]
rsbbs = "rsbbs.rsbbs:main"
[project.urls]
repository = "https://git.b-wells.us/jmbwell/rsbbs"
[tool.setuptools.package-data]
rsbbs = ["config_default.yaml"]

View File

@ -1,4 +0,0 @@
greenlet==2.0.2
PyYAML==6.0
SQLAlchemy==2.0.10
typing_extensions==4.5.0

View File

@ -1,45 +0,0 @@
#!/usr/bin/env python
#
# Really Simple BBS - a really simple BBS for ax.25 packet radio.
# Copyright (C) 2023 John Burwell <john@atatdotdot.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='rsbbs',
version='0.1.0',
description='A BBS for ax25d and packet radio that is really simple',
long_description=readme,
author='John Burwell',
author_email='john@atatdotdot.com',
url='https://git.b-wells.us/jmbwell/rsbbs',
license=license,
packages=find_packages(exclude=('tests', 'docs')),
package_data={
'rsbbs': ['config_default.yaml'],
},
entry_points="""
[console_scripts]
rsbbs=rsbbs.rsbbs:main
"""
)