changeset 52003:d4b275587847

install: static data moved from setup.py to pyproject.toml
author paugier <pierre.augier@univ-grenoble-alpes.fr>
date Thu, 10 Oct 2024 09:54:55 +0200
parents 22a50b7934d2
children e3952d8cfeb5
files pyproject.toml setup.py
diffstat 2 files changed, 37 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/pyproject.toml	Mon Oct 14 00:15:25 2024 +0200
+++ b/pyproject.toml	Thu Oct 10 09:54:55 2024 +0200
@@ -1,5 +1,42 @@
 [build-system]
 requires = ["setuptools", "wheel"]
+build-backend = "setuptools.build_meta"
+
+
+[project]
+name = "mercurial"
+authors = [
+    {name = "Olivia Mackall and many others", email = "mercurial@mercurial-scm.org"},
+]
+description="Fast scalable distributed SCM (revision control, version control) system"
+readme = "README.rst"
+requires-python = ">=3.8"
+license={text = "GNU GPLv2 or any later version"}
+classifiers=[
+    "Development Status :: 6 - Mature",
+    "Environment :: Console",
+    "Intended Audience :: Developers",
+    "Intended Audience :: System Administrators",
+    "License :: OSI Approved :: GNU General Public License (GPL)",
+    "Natural Language :: Danish",
+    "Natural Language :: English",
+    "Natural Language :: German",
+    "Natural Language :: Italian",
+    "Natural Language :: Japanese",
+    "Natural Language :: Portuguese (Brazilian)",
+    "Operating System :: Microsoft :: Windows",
+    "Operating System :: OS Independent",
+    "Operating System :: POSIX",
+    "Programming Language :: C",
+    "Programming Language :: Python",
+    "Topic :: Software Development :: Version Control",
+]
+dynamic = ["version"]
+
+[project.urls]
+home = "https://mercurial-scm.org/"
+download_url = "https://mercurial-scm.org/release/"
+
 
 [tool.black]
 line-length = 80
--- a/setup.py	Mon Oct 14 00:15:25 2024 +0200
+++ b/setup.py	Thu Oct 10 09:54:55 2024 +0200
@@ -1766,16 +1766,7 @@
     setupversion = setupversion.split(r'+', 1)[0]
 
 setup(
-    name='mercurial',
     version=setupversion,
-    author='Olivia Mackall and many others',
-    author_email='mercurial@mercurial-scm.org',
-    url='https://mercurial-scm.org/',
-    download_url='https://mercurial-scm.org/release/',
-    description=(
-        'Fast scalable distributed SCM (revision control, version '
-        'control) system'
-    ),
     long_description=(
         'Mercurial is a distributed SCM tool written in Python.'
         ' It is used by a number of large projects that require'
@@ -1783,26 +1774,6 @@
         'Mozilla.'
     ),
     long_description_content_type='text/x-rst',
-    license='GNU GPLv2 or any later version',
-    classifiers=[
-        'Development Status :: 6 - Mature',
-        'Environment :: Console',
-        'Intended Audience :: Developers',
-        'Intended Audience :: System Administrators',
-        'License :: OSI Approved :: GNU General Public License (GPL)',
-        'Natural Language :: Danish',
-        'Natural Language :: English',
-        'Natural Language :: German',
-        'Natural Language :: Italian',
-        'Natural Language :: Japanese',
-        'Natural Language :: Portuguese (Brazilian)',
-        'Operating System :: Microsoft :: Windows',
-        'Operating System :: OS Independent',
-        'Operating System :: POSIX',
-        'Programming Language :: C',
-        'Programming Language :: Python',
-        'Topic :: Software Development :: Version Control',
-    ],
     scripts=scripts,
     packages=packages,
     ext_modules=extmodules,