Skip to content

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

Description

@CardamaS99

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or requestpackagingPackaging and distributionpriority: lowFuture improvements

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions