Skip to content

Commit 1479adf

Browse files
committed
Upgrade minimal supported python verison to 3.10. Update dependencies in project specification, and fix Makefile.
1 parent bfb8e45 commit 1479adf

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ requirements python-deps:
2525
@${PYTHON} -m pip install .
2626

2727
install-optional: install
28+
# Python setuptools 81 removed "dry_run" option when compiling C++ code
29+
# this breaks the build of projectq
30+
# As a hack, we install the bare minimum tools to build projectq, then
31+
# we build and install it (ignoring any build requirement in the projectq
32+
# package spec), and finally we install the rest of the optional requirements
33+
@${PYTHON} -m pip install "setuptools<81" pybind11
34+
@${PYTHON} -m pip install "git+https://github.com/ProjectQ-Framework/ProjectQ.git@v0.8.0" --no-build-isolation
2835
@${PYTHON} -m pip install .\[opt\]
2936

3037
tests:

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sphinx==6.1.3
22
sphinx-rtd-theme==1.2.0
33
Cython
4-
qutip
5-
projectq
4+
qutip<5.0.0
5+
projectq<=0.8.0

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools >= 77.0.3", "wheel", "setuptools-scm>=8"]
2+
requires = ["setuptools<81", "wheel", "setuptools-scm>=8"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]
@@ -18,9 +18,10 @@ dependencies = [
1818
"click>=8.0,<9.0",
1919
"daemons>=1.3.0,<2.0.0",
2020
"netqasm>=2.1.1,<3.0.0",
21-
"multiprocess>=0.70.18,<1.0"
21+
"multiprocess>=0.70.18,<1.0",
22+
"StrEnum<1.0.0"
2223
]
23-
requires-python = ">=3.8,<3.13"
24+
requires-python = ">=3.10,<3.13"
2425
authors = [
2526
{name = "Axel Dahlberg", email = "e.a.dahlberg@tudelft.nl"}
2627
]
@@ -29,8 +30,6 @@ maintainers = [
2930
]
3031
description = "A simulator for developing Quantum Internet software"
3132
readme = "README.md"
32-
license = "MIT"
33-
license-files = ["LICENCE"]
3433
keywords = ["egg", "bacon", "sausage", "tomatoes", "Lobster Thermidor"]
3534
classifiers = [
3635
"Programming Language :: Python :: 3.8",

0 commit comments

Comments
 (0)