Skip to content

Commit 9a474a5

Browse files
author
Kelvin Lee
authored
Merge pull request #94 from laserkelvin/pyproject-migration
`pyproject.toml` migration
2 parents 606c357 + 9f583e3 commit 9a474a5

File tree

2 files changed

+60
-31
lines changed

2 files changed

+60
-31
lines changed

pyproject.toml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Copyright (C) 2024 Intel Corporation
2+
# SPDX-License-Identifier: BSD-3-Clause
3+
[build-system]
4+
build-backend = "setuptools.build_meta"
5+
requires = ["setuptools >= 61.0"]
6+
7+
[project]
8+
authors = [
9+
{"name" = "S. John Pennycook", "email" = "john.pennycook@intel.com"},
10+
]
11+
description = "Code Base Investigator"
12+
version = "1.2.0"
13+
dynamic = ["readme"]
14+
keywords = ["performance", "portability", "productivity"]
15+
name = "codebasin"
16+
requires-python = ">=3.9"
17+
classifiers = [
18+
"Development Status :: 5 - Production/Stable",
19+
"Environment :: Console",
20+
"Intended Audience :: Developers",
21+
"License :: OSI Approved :: BSD License",
22+
"Programming Language :: Python",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.12",
25+
"Topic :: Software Development",
26+
]
27+
dependencies = [
28+
"numpy==1.26.0",
29+
"matplotlib==3.8.2",
30+
"pathspec==0.12.1",
31+
"pyyaml==6.0.1",
32+
"scipy==1.12.0",
33+
"jsonschema==4.21.1",
34+
]
35+
36+
[project.urls]
37+
"Github" = "https://www.github.com/intel/code-base-investigator"
38+
"Issues" = "https://www.github.com/intel/code-base-investigator/issues"
39+
"Pull requests" = "https://www.github.com/intel/code-base-investigator/pulls"
40+
41+
[project.optional-dependencies]
42+
dev = [
43+
"sphinx",
44+
"pre-commit",
45+
]
46+
47+
[tool.setuptools]
48+
# TODO this practice is deprecated and will need updating later
49+
script-files = ["bin/codebasin"]
50+
include-package-data = true
51+
52+
[tool.setuptools.packages.find]
53+
where = ["."]
54+
include = ["codebasin*"]
55+
56+
[tool.setuptools.dynamic]
57+
readme = {file = ["README.md"]}

setup.py

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,8 @@
11
#!/usr/bin/env python3
2-
# Copyright (C) 2019 Intel Corporation
2+
# Copyright (C) 2019-24 Intel Corporation
33
# SPDX-License-Identifier: BSD-3-Clause
44

55
from setuptools import setup
66

7-
setup(
8-
name="codebasin",
9-
version="1.2.0",
10-
description="Code Base Investigator",
11-
author="John Pennycook",
12-
author_email="john.pennycook@intel.com",
13-
url="https://www.github.com/intel/code-base-investigator",
14-
packages=["codebasin", "codebasin.schema", "codebasin.walkers"],
15-
include_package_data=True,
16-
scripts=["bin/codebasin"],
17-
classifiers=[
18-
"Development Status :: 5 - Production/Stable",
19-
"Environment :: Console",
20-
"Intended Audience :: Developers",
21-
"License :: OSI Approved :: BSD License",
22-
"Programming Language :: Python",
23-
"Programming Language :: Python :: 3",
24-
"Programming Language :: Python :: 3.12",
25-
"Topic :: Software Development",
26-
],
27-
python_requires=">=3.12",
28-
install_requires=[
29-
"numpy==1.26.0",
30-
"matplotlib==3.8.2",
31-
"pathspec==0.12.1",
32-
"pyyaml==6.0.1",
33-
"scipy==1.12.0",
34-
"jsonschema==4.21.1",
35-
],
36-
)
7+
if __name__ == "__main__":
8+
setup()

0 commit comments

Comments
 (0)