Skip to content

Migrate to pyproject.toml (PEP 621) and fix Python version requirement#11

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/migrate-setup-to-pyproject
Draft

Migrate to pyproject.toml (PEP 621) and fix Python version requirement#11
Copilot wants to merge 3 commits intomainfrom
copilot/migrate-setup-to-pyproject

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

setup.py is deprecated. Python version requirement was >=3.6 but NetQASM requires >=3.8.

Changes

  • Migrated packaging configuration to pyproject.toml (PEP 621)
  • Updated requires-python from >=3.6 to >=3.8
  • Removed setup.py

Configuration

[project]
name = "netqmpi"
version = "0.1.0"
requires-python = ">=3.8"
dependencies = ["netqasm~=1.0.0", "numpy~=1.24.3"]

[project.optional-dependencies]
test = ["pytest>=7.0"]

[project.scripts]
netqmpi = "netqmpi.runtime.cli:main"

All metadata, dependencies, and entry points preserved from original setup.py.

Original prompt

This section details on the original issue you should resolve

<issue_title>Migrate from setup.py to pyproject.toml (PEP 621)</issue_title>
<issue_description>## Description

File: setup.pypyproject.toml

Problem

setup.py is deprecated in favor of pyproject.toml (PEP 621). The python_requires='>=3.6' is too permissive (NetQASM requires >= 3.8).

Solution

Migrate to pyproject.toml:

[project]
name = "netqmpi"
version = "0.1.0"
requires-python = ">=3.8"
dependencies = ["netqasm~=1.0.0", "numpy~=1.24.3"]

[project.optional-dependencies]
test = ["pytest>=7.0"]

[project.scripts]
netqmpi = "netqmpi.runtime.cli:main"

Impact

  • Severity: Low
  • Improvement: Packaging modernization</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 17, 2026 17:33
Co-authored-by: CardamaS99 <36961760+CardamaS99@users.noreply.github.com>
Co-authored-by: CardamaS99 <36961760+CardamaS99@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate from setup.py to pyproject.toml for packaging Migrate to pyproject.toml (PEP 621) and fix Python version requirement Feb 17, 2026
Copilot AI requested a review from CardamaS99 February 17, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate from setup.py to pyproject.toml (PEP 621)

2 participants