Skip to content

Commit 80943d8

Browse files
singiamtelktf
authored andcommitted
Standardize on pyproject.toml
This way all installations are PEP517 compatible. The setuptools scripts is deprecated, but for now it's the best way of migrating forward. Taking the chance to do this to fix this issue: ``` ERROR: setuptools==53.0.0 is used in combination with setuptools-scm>=8.x Your build configuration is incomplete and previously worked by accident! setuptools-scm requires setuptools>=61 Suggested workaround if applicable: - migrating from the deprecated setup_requires mechanism to pep517/518 and using a pyproject.toml to declare build dependencies which are reliably pre-installed before running the build tools ```
1 parent 246a007 commit 80943d8

File tree

3 files changed

+12
-119
lines changed

3 files changed

+12
-119
lines changed

pyproject.toml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,22 @@ requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6+
requires-python = ">= 3.6"
67
name = 'alibuild'
78
dynamic = ['readme', 'version']
89
description = 'ALICE Build Tool'
910
keywords = ['HEP', 'ALICE']
10-
license = {text = 'GPL'}
11+
license = { file = 'LICENSE' }
1112
authors = [
1213
{name = 'Giulio Eulisse', email = 'giulio.eulisse@cern.ch'},
1314
{name = 'Timo Wilken', email = 'timo.wilken@cern.ch'},
15+
{name = 'Sergio Garcia', email = 'sergio.garcia@cern.ch'},
1416
]
1517

1618
classifiers = [
1719
'Development Status :: 5 - Production/Stable',
1820
'Intended Audience :: Developers',
1921
'Topic :: Software Development :: Build Tools',
20-
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
21-
'Programming Language :: Python :: 3.6', # slc7, slc8, cs8
22-
'Programming Language :: Python :: 3.8', # ubuntu2004
23-
'Programming Language :: Python :: 3.9', # slc9
24-
'Programming Language :: Python :: 3.10', # ubuntu2204
25-
'Programming Language :: Python :: 3.11', # MacOS
26-
'Programming Language :: Python :: 3.12', # MacOS
27-
'Programming Language :: Python :: 3.13', # MacOS
2822
]
2923

3024
dependencies = [
@@ -38,15 +32,18 @@ dependencies = [
3832
[project.urls]
3933
homepage = 'https://alisw.github.io/alibuild'
4034

41-
[scripts]
42-
aliBuild = {path = "aliBuild"}
43-
alienv = {path = "alienv"}
44-
aliDoctor = {path = "aliDoctor"}
45-
aliDeps = {path = "aliDeps"}
46-
pb = {path = "pb"}
35+
[tool.setuptools]
36+
script-files = ["aliBuild", "alienv", "aliDoctor", "aliDeps", "pb"]
4737

4838
[tool.setuptools_scm]
4939
write_to = "alibuild_helpers/_version.py"
5040

5141
[tool.setuptools.package-data]
5242
alibuild_helpers = ['build_template.sh']
43+
44+
[tool.setuptools.packages.find]
45+
where = ["."]
46+
exclude = ["yaml"]
47+
48+
[tool.setuptools.dynamic]
49+
readme = {file = ["README.rst"]}

requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)