-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR replaced `setup.cfg` with the modernized `pyproject.toml` for project setup. Currently, `setup.py` is kept for the potential more dynamic configurations such as compiled extensions in the future.
- Loading branch information
Showing
6 changed files
with
68 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "tqec" | ||
version = "0.0.1" | ||
authors = [ | ||
{ name = "TQEC community", email = "tqec-design-automation@googlegroups.com" }, | ||
] | ||
description = "A design automation framework for Topological Quantum Error Correction." | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
keywords = ["topological quantum error correction", "qec"] | ||
requires-python = ">= 3.9" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Natural Language :: English", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: MacOS", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: JavaScript", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Software Development :: User Interfaces", | ||
"Topic :: Utilities", | ||
"Typing :: Typed", | ||
] | ||
dynamic = ["dependencies"] | ||
|
||
[project.urls] | ||
Website = "https://tqec.app" | ||
Repository = "https://github.com/QCHackers/tqec" | ||
Issues = "https://github.com/QCHackers/tqec/issues" | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest", "mypy"] | ||
dev = ["sinter", "pymatching", "jupyterlab", "tqec[test]"] | ||
all = ["tqec[test, dev]"] | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
exclude = ["*test.py"] | ||
|
||
[tool.setuptools.package-data] | ||
tqec = ["py.typed"] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = "requirements.txt"} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from setuptools import setup | ||
|
||
setup() | ||
from setuptools import setup | ||
|
||
setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
__version__ = "0.0.1" | ||
import importlib | ||
|
||
__version__ = importlib.metadata.version("tqec") |