Repository: nodejs/gyp-next (language: python)

Issue:
chore: pyproject.toml
Migrate the contents of `requirements_dev.txt`, `setup.cfg`, and `setup.py` into `pyproject.toml`
* https://packaging.python.org/en/latest/tutorials/packaging-projects
* https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html


Discussion / hints:

Fix patch:
diff --git a/pylib/gyp/__init__.py b/pylib/gyp/__init__.py
index 6ac428c0..2aa39d03 100755
--- a/pylib/gyp/__init__.py
+++ b/pylib/gyp/__init__.py
@@ -16,8 +16,6 @@
 from gyp.common import GypError
 
 
-VERSION = "0.13.0"
-
 # Default debug modes for GYP
 debug = {}
 
diff --git a/pyproject.toml b/pyproject.toml
index a76dbcb6..eb228701 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -31,10 +31,11 @@ classifiers = [
 dev = ["flake8", "pytest"]
 
 [project.scripts]
-gyp = "pylib.gyp:script_main"
+gyp = "gyp:script_main"
 
 [project.urls]
 "Homepage" = "https://github.com/nodejs/gyp-next"
 
 [tool.setuptools]
-packages = ["pylib.gyp", "pylib.gyp.generator"]
+package-dir = {"" = "pylib"}
+packages = ["gyp", "gyp.generator"]


Test patch:
diff --git a/.github/workflows/Python_tests.yml b/.github/workflows/python_tests.yml
similarity index 94%
rename from .github/workflows/Python_tests.yml
rename to .github/workflows/python_tests.yml
index 6ef59f40..aad13502 100644
--- a/.github/workflows/Python_tests.yml
+++ b/.github/workflows/python_tests.yml
@@ -27,6 +27,7 @@ jobs:
         run: |
           python -m pip install --upgrade pip setuptools
           pip install --editable ".[dev]"
+      - run: ./gyp -V && ./gyp --version && gyp -V && gyp --version
       - name: Lint with flake8
         run: flake8 . --ignore=E203,W503  --max-complexity=101 --max-line-length=88 --show-source --statistics
       - name: Test with pytest