From 0436f5cebd288b906288be603b309907ca74be83 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 31 Mar 2024 00:08:41 +0100 Subject: The first steps on replacing setup.py with pyproject.toml. --- pyproject.toml | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 66 ---------------------------------------------------------- 2 files changed, 65 insertions(+), 66 deletions(-) create mode 100644 pyproject.toml delete mode 100755 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..6db2b6f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,65 @@ +[build-system] +requires = ["setuptools>=64", "setuptools_scm>=8"] +build-backend = "setuptools.build_meta" + +[project] +name = "bugs-everywhere" +# version = "1.1" +dynamic = ["version"] +license = {text = "GNU General Public License (GPL)"} +authors = [ + { name = "W. Trevor King", email = "wking@tremily.us" } +] +classifiers = ["Development Status :: 4 - Beta", + "Environment :: Console", + "Environment :: Web Environment", + "Framework :: CherryPy", + "Intended Audience :: Customer Service", + "Intended Audience :: Developers", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: GNU General Public License (GPL)", + "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", + "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 2.7", + "Topic :: Software Development :: Bug Tracking" +] +description = "Bugtracker supporting distributed revision control" +readme = "README" + +[tool.setuptools_scm] + + +# rev_id = version.version_info['revision'] +# rev_date = version.version_info['date'] +# +# data_files = [] +# +# man_path = os.path.join('doc', 'man', 'be.1') +# if os.path.exists(man_path): +# data_files.append(('share/man/man1', [man_path])) +# +# setup( +# url='http://bugseverywhere.org/', +# download_url=( +# 'http://downloads.bugseverywhere.org/releases/be-{}.tar.gz'.format( +# version.version())), +# platforms=['all'], +# long_description=open(os.path.join(_this_dir, 'README.rst'), 'r').read(), +# packages=['libbe', +# 'libbe.command', +# 'libbe.storage', +# 'libbe.storage.util', +# 'libbe.storage.vcs', +# 'libbe.ui', +# 'libbe.ui.util', +# 'libbe.util'], +# scripts=['be'], +# data_files=data_files, +# requires=[ +# 'Jinja2 (>=2.6)', +# 'CherryPy (>=3.2)', +# ] +# ) diff --git a/setup.py b/setup.py deleted file mode 100755 index a4c6f15..0000000 --- a/setup.py +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env python -# -# Copyright - -from distutils.core import setup -import os.path - -from libbe import version - - -_this_dir = os.path.dirname(__file__) - -rev_id = version.version_info['revision'] -rev_date = version.version_info['date'] - -data_files = [] - -man_path = os.path.join('doc', 'man', 'be.1') -if os.path.exists(man_path): - data_files.append(('share/man/man1', [man_path])) - -setup( - name='bugs-everywhere', - version='1.1.1+git{}'.format(version.version()), - maintainer='W. Trevor King', - maintainer_email='wking@tremily.us', - url='http://bugseverywhere.org/', - download_url=( - 'http://downloads.bugseverywhere.org/releases/be-{}.tar.gz'.format( - version.version())), - license='GNU General Public License (GPL)', - platforms=['all'], - description='Bugtracker supporting distributed revision control', - long_description=open(os.path.join(_this_dir, 'README.rst'), 'r').read(), - classifiers=[ - 'Development Status :: 4 - Beta', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Framework :: CherryPy', - 'Intended Audience :: Customer Service', - 'Intended Audience :: Developers', - 'Intended Audience :: End Users/Desktop', - 'License :: OSI Approved :: GNU General Public License (GPL)', - 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)', - 'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)', - 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', - 'Topic :: Software Development :: Bug Tracking', - ], - packages=['libbe', - 'libbe.command', - 'libbe.storage', - 'libbe.storage.util', - 'libbe.storage.vcs', - 'libbe.ui', - 'libbe.ui.util', - 'libbe.util'], - scripts=['be'], - data_files=data_files, - requires=[ - 'Jinja2 (>=2.6)', - 'CherryPy (>=3.2)', - ] - ) -- cgit