aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-03-31 00:08:41 +0100
committerMatěj Cepl <mcepl@cepl.eu>2024-03-31 00:08:41 +0100
commit0436f5cebd288b906288be603b309907ca74be83 (patch)
tree4c9fa3ae72991d77355f50eba3cd895cdf706cb7
parentea6d27b73564acb4a679df0fec9781024da6342c (diff)
downloadbugseverywhere-0436f5cebd288b906288be603b309907ca74be83.tar.gz
The first steps on replacing setup.py with pyproject.toml.
-rw-r--r--pyproject.toml65
-rwxr-xr-xsetup.py66
2 files changed, 65 insertions, 66 deletions
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)',
- ]
- )