From 8e2d96776fa88498fc3b03980cd412742fda39be Mon Sep 17 00:00:00 2001 From: John Burwell Date: Mon, 24 Apr 2023 22:12:42 -0500 Subject: [PATCH] switch from setup.py to pyproject.toml --- pyproject.toml | 33 +++++++++++++++++++++++++++++++++ requirements.txt | 4 ---- setup.py | 45 --------------------------------------------- 3 files changed, 33 insertions(+), 49 deletions(-) create mode 100644 pyproject.toml delete mode 100644 requirements.txt delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e74686c --- /dev/null +++ b/pyproject.toml @@ -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"] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 4e9b3ce..0000000 --- a/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -greenlet==2.0.2 -PyYAML==6.0 -SQLAlchemy==2.0.10 -typing_extensions==4.5.0 diff --git a/setup.py b/setup.py deleted file mode 100644 index b6554d8..0000000 --- a/setup.py +++ /dev/null @@ -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 -# -# 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 . - -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 - """ -)