Skip to content

Commit baef940

Browse files
authored
chore: pyproject.toml (#175)
1 parent b6f2714 commit baef940

File tree

6 files changed

+44
-48
lines changed

6 files changed

+44
-48
lines changed

.github/workflows/Python_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
python-version: ${{ matrix.python-version }}
2626
- name: Install dependencies
2727
run: |
28-
python -m pip install --upgrade pip
29-
pip install -r requirements_dev.txt
28+
python -m pip install --upgrade pip setuptools
29+
pip install --editable ".[dev]"
3030
- name: Lint with flake8
3131
run: flake8 . --ignore=E203,W503 --max-complexity=101 --max-line-length=88 --show-source --statistics
3232
- name: Test with pytest

pylib/gyp/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,8 @@ def gyp_main(args):
476476

477477
options, build_files_arg = parser.parse_args(args)
478478
if options.version:
479-
print(f"v{VERSION}")
479+
import pkg_resources
480+
print(f"v{pkg_resources.get_distribution('gyp-next').version}")
480481
return 0
481482
build_files = build_files_arg
482483

pyproject.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "gyp-next"
7+
version = "0.13.0"
8+
authors = [
9+
{ name="Node.js contributors", email="[email protected]" },
10+
]
11+
description = "A fork of the GYP build system for use in the Node.js projects"
12+
readme = "README.md"
13+
license = { file="LICENSE" }
14+
requires-python = ">=3.6"
15+
classifiers = [
16+
"Development Status :: 3 - Alpha",
17+
"Environment :: Console",
18+
"Intended Audience :: Developers",
19+
"License :: OSI Approved :: BSD License",
20+
"Natural Language :: English",
21+
"Programming Language :: Python",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3.6",
24+
"Programming Language :: Python :: 3.7",
25+
"Programming Language :: Python :: 3.8",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
]
29+
30+
[project.optional-dependencies]
31+
dev = ["flake8", "pytest"]
32+
33+
[project.scripts]
34+
gyp = "pylib.gyp:script_main"
35+
36+
[project.urls]
37+
"Homepage" = "https://github.com/nodejs/gyp-next"
38+
39+
[tool.setuptools]
40+
packages = ["pylib.gyp", "pylib.gyp.generator"]

requirements_dev.txt

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

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)