pyproject.toml
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 02 Jan 2025 14:50:06 +0100
changeset 52592 87ceb51d124c
parent 52545 82c8fb6a048c
child 52664 f5091286b10c
permissions -rw-r--r--
run-tests: drop jython support I don't think we heard anything about jython support for the past 15 years, so let's drop special support for it in run-tests.py it is most probably broken at that point.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
46381
45afff0f530a pyproject: add config file
Augie Fackler <augie@google.com>
parents:
diff changeset
     1
[build-system]
45afff0f530a pyproject: add config file
Augie Fackler <augie@google.com>
parents:
diff changeset
     2
requires = ["setuptools", "wheel"]
51999
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
     3
build-backend = "setuptools.build_meta"
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
     4
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
     5
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
     6
[project]
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
     7
name = "mercurial"
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
     8
authors = [
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
     9
    {name = "Olivia Mackall and many others", email = "mercurial@mercurial-scm.org"},
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    10
]
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    11
description="Fast scalable distributed SCM (revision control, version control) system"
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    12
readme = "README.rst"
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    13
requires-python = ">=3.8"
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    14
license={text = "GNU GPLv2 or any later version"}
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    15
classifiers=[
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    16
    "Development Status :: 6 - Mature",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    17
    "Environment :: Console",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    18
    "Intended Audience :: Developers",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    19
    "Intended Audience :: System Administrators",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    20
    "License :: OSI Approved :: GNU General Public License (GPL)",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    21
    "Natural Language :: Danish",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    22
    "Natural Language :: English",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    23
    "Natural Language :: German",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    24
    "Natural Language :: Italian",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    25
    "Natural Language :: Japanese",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    26
    "Natural Language :: Portuguese (Brazilian)",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    27
    "Operating System :: Microsoft :: Windows",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    28
    "Operating System :: OS Independent",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    29
    "Operating System :: POSIX",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    30
    "Programming Language :: C",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    31
    "Programming Language :: Python",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    32
    "Topic :: Software Development :: Version Control",
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    33
]
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    34
dynamic = ["version"]
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    35
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    36
[project.urls]
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    37
home = "https://mercurial-scm.org/"
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    38
download_url = "https://mercurial-scm.org/release/"
d4b275587847 install: static data moved from setup.py to pyproject.toml
paugier <pierre.augier@univ-grenoble-alpes.fr>
parents: 48004
diff changeset
    39
46382
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    40
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    41
[tool.black]
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    42
line-length = 80
52543
1dea9d91f476 pyproject: narrow the range of files processed by `black`
Matt Harbison <matt_harbison@yahoo.com>
parents: 52314
diff changeset
    43
include = '\.py$'
52544
7091b39adc65 pyproject: switch to extending the range of excludes processed by `black`
Matt Harbison <matt_harbison@yahoo.com>
parents: 52543
diff changeset
    44
extend-exclude = '''
46382
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    45
build/
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    46
| wheelhouse/
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    47
| dist/
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    48
| packages/
52543
1dea9d91f476 pyproject: narrow the range of files processed by `black`
Matt Harbison <matt_harbison@yahoo.com>
parents: 52314
diff changeset
    49
| __pycache__/
1dea9d91f476 pyproject: narrow the range of files processed by `black`
Matt Harbison <matt_harbison@yahoo.com>
parents: 52314
diff changeset
    50
| \.pytype/
46382
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    51
| \.hg/
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    52
| \.mypy_cache/
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    53
| \.venv/
52543
1dea9d91f476 pyproject: narrow the range of files processed by `black`
Matt Harbison <matt_harbison@yahoo.com>
parents: 52314
diff changeset
    54
| mercurial/locale/
46382
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    55
| mercurial/thirdparty/
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    56
'''
52545
82c8fb6a048c pyproject: lock in the major version of `black` that's required
Matt Harbison <matt_harbison@yahoo.com>
parents: 52544
diff changeset
    57
required-version = "23"
46382
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    58
skip-string-normalization = true
d4c8b4b90ecb black: merge config into main pyproject.toml now that we have it
Augie Fackler <augie@google.com>
parents: 46381
diff changeset
    59
quiet = true
52314
1a09563a615c ci: disable caching of the wheels that get built to save space
Matt Harbison <matt_harbison@yahoo.com>
parents: 51999
diff changeset
    60
1a09563a615c ci: disable caching of the wheels that get built to save space
Matt Harbison <matt_harbison@yahoo.com>
parents: 51999
diff changeset
    61
1a09563a615c ci: disable caching of the wheels that get built to save space
Matt Harbison <matt_harbison@yahoo.com>
parents: 51999
diff changeset
    62
[tool.cibuildwheel]
1a09563a615c ci: disable caching of the wheels that get built to save space
Matt Harbison <matt_harbison@yahoo.com>
parents: 51999
diff changeset
    63
# Don't stockpile wheels in the pip cache directory when they get built, since
1a09563a615c ci: disable caching of the wheels that get built to save space
Matt Harbison <matt_harbison@yahoo.com>
parents: 51999
diff changeset
    64
# there's no mechanism to age old ones out.
1a09563a615c ci: disable caching of the wheels that get built to save space
Matt Harbison <matt_harbison@yahoo.com>
parents: 51999
diff changeset
    65
build-frontend = { name = "pip", args = ["--no-cache-dir"] }