From ddf3e8f7e8253a713da85c4db038018451bd9f12 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Feb 2026 17:30:18 +0000 Subject: [PATCH 1/3] Initial plan From 0f56a1fd55970816b62383ecc25037bf0f6db0f3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Feb 2026 17:33:29 +0000 Subject: [PATCH 2/3] Migrate from setup.py to pyproject.toml (PEP 621) Co-authored-by: CardamaS99 <36961760+CardamaS99@users.noreply.github.com> --- .gitignore | 4 +++- pyproject.toml | 37 +++++++++++++++++++++++++++++++++++++ setup.py | 29 ----------------------------- 3 files changed, 40 insertions(+), 30 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/.gitignore b/.gitignore index a2e22d0..382a328 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,6 @@ tmp/* __pycache__ log log/* -.* \ No newline at end of file +.* +build/ +dist/ \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0bcaf60 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,37 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "netqmpi" +version = "0.1.0" +description = "A high-level abstraction layer similar to MPI for distributed quantum programming over NetQASM." +readme = "README.md" +requires-python = ">=3.8" +license = {text = "MIT"} +authors = [ + {name = "F. Javier Cardama", email = "javier.cardama@usc.es"} +] +classifiers = [ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", +] +dependencies = [ + "netqasm~=1.0.0", + "numpy~=1.24.3", +] + +[project.optional-dependencies] +test = ["pytest>=7.0"] + +[project.scripts] +netqmpi = "netqmpi.runtime.cli:main" + +[project.urls] +Homepage = "https://github.com/NetQIR/net-qmpi" +Repository = "https://github.com/NetQIR/net-qmpi" + +[tool.setuptools.packages.find] +where = ["."] +include = ["netqmpi*"] +exclude = ["test*"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 88b7c7d..0000000 --- a/setup.py +++ /dev/null @@ -1,29 +0,0 @@ -from setuptools import setup, find_packages - -setup( - name='netqmpi', - version='0.1.0', - entry_points={ - 'console_scripts': [ - 'netqmpi=netqmpi.runtime.cli:main', - ], - }, - packages=find_packages(), - install_requires=[ - 'netqasm~=1.0.0', - 'numpy~=1.24.3', - ], - extras_require={ - 'test': ['pytest>=7.0'], - }, - author='F. Javier Cardama', - author_email='javier.cardama@usc.es', - description='A high-level abstraction layer similar to MPI for distributed quantum programming over NetQASM.', - url='https://github.com/NetQIR/net-qmpi', # Replace with your project's URL - classifiers=[ - 'Programming Language :: Python :: 3', - 'License :: OSI Approved :: MIT License', - 'Operating System :: OS Independent', - ], - python_requires='>=3.6', -) \ No newline at end of file From 0c87a2d8aabe8bc0e8f1220370ac93bc01bbb585 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Feb 2026 17:34:44 +0000 Subject: [PATCH 3/3] Add License classifier back to pyproject.toml for consistency Co-authored-by: CardamaS99 <36961760+CardamaS99@users.noreply.github.com> --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 0bcaf60..7479468 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ authors = [ ] classifiers = [ "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ] dependencies = [