From 915cf6168ac7c0d479241f49d4f881562fc094d6 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Sat, 1 Nov 2025 00:56:34 +0000 Subject: [PATCH 1/4] Fix build --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0170746..74fe095 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: python-version: 3.12 - name: Install Dependencies 📦 - run: pip install -r requirements.txt + run: pip3 install -r requirements.txt - name: Build and Install Python Extension 🛠️ run: pip3 install src/ From 7bbca261e5a593082a0b1fcda97b336af23cc1f4 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Sat, 1 Nov 2025 01:01:55 +0000 Subject: [PATCH 2/4] Add pyproject.toml --- src/pyproject.toml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/pyproject.toml diff --git a/src/pyproject.toml b/src/pyproject.toml new file mode 100644 index 0000000..961cddd --- /dev/null +++ b/src/pyproject.toml @@ -0,0 +1,21 @@ +[build-system] +requires = ["setuptools>=45", "wheel", "Cython>=0.29"] +build-backend = "setuptools.build_meta" + +[project] +name = "cpp-python-extension" +version = "1.0.0" +description = "Example module written in C++ with Python bindings" +requires-python = ">=3.8" +dependencies = [ + "Cython>=0.29", +] + +[project.optional-dependencies] +dev = [ + "pytest", + "pytest-benchmark", +] + +[tool.setuptools] +packages = [] From eb2211732b30f63db815f061d6ac32f8c807d84c Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Sat, 1 Nov 2025 01:03:53 +0000 Subject: [PATCH 3/4] Delete requirements.txt --- .github/workflows/test.yml | 3 --- README.md | 1 + requirements.txt | 5 ----- 3 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 requirements.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 74fe095..1f2eac3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,9 +26,6 @@ jobs: with: python-version: 3.12 - - name: Install Dependencies 📦 - run: pip3 install -r requirements.txt - - name: Build and Install Python Extension 🛠️ run: pip3 install src/ diff --git a/README.md b/README.md index 6226253..3b44d06 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ To create a simple example how to extend Python with C++ extensions. - `python3-dev` or `python3-devel` python development package - `C++` compiler +- `Cython` development headers ## Build and install diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 94df2cd..0000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -Cython -pytest -pytest-benchmark -setuptools -wheel From fd12f22c491e43e0f935b50b2708e0de08713d7f Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Sat, 1 Nov 2025 01:05:31 +0000 Subject: [PATCH 4/4] Revert "Delete requirements.txt" This reverts commit eb2211732b30f63db815f061d6ac32f8c807d84c. --- .github/workflows/test.yml | 3 +++ README.md | 1 - requirements.txt | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1f2eac3..74fe095 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,9 @@ jobs: with: python-version: 3.12 + - name: Install Dependencies 📦 + run: pip3 install -r requirements.txt + - name: Build and Install Python Extension 🛠️ run: pip3 install src/ diff --git a/README.md b/README.md index 3b44d06..6226253 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ To create a simple example how to extend Python with C++ extensions. - `python3-dev` or `python3-devel` python development package - `C++` compiler -- `Cython` development headers ## Build and install diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..94df2cd --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +Cython +pytest +pytest-benchmark +setuptools +wheel