Browse code

Bump required Python version to 3.11

Joseph Weston authored on 01/11/2023 04:28:45
Showing 1 changed files
... ...
@@ -7,7 +7,7 @@ module = "qsim"
7 7
 author = "Joseph Weston"
8 8
 author-email = "joseph@weston.cloud"
9 9
 home-page = "https://github.com/jbweston/qsim"
10
-requires-python=">=3.6"
10
+requires-python=">=3.11"
11 11
 description-file="README.md"
12 12
 keywords = "quantum simulator"
13 13
 classifiers = [
... ...
@@ -17,8 +17,7 @@ classifiers = [
17 17
     "Intended Audience :: Science/Research",
18 18
     "Topic :: Scientific/Engineering",
19 19
     "Topic :: Scientific/Engineering :: Physics",
20
-    "Programming Language :: Python :: 3.8",
21
-    "Programming Language :: Python :: 3.9",
20
+    "Programming Language :: Python :: 3.11",
22 21
 ]
23 22
 requires = [
24 23
     "numpy",
... ...
@@ -28,13 +27,12 @@ requires = [
28 27
 test = [
29 28
     "pytest",
30 29
     "pytest-cov",
31
-    "pytest-flake8",
30
+    "pytest-ruff",
32 31
     "pytest-mypy",
33 32
     "pytest-black",
34 33
     "hypothesis[numpy]",
35 34
     "tox",
36
-    "flake8-per-file-ignores",
37
-    "flake8>=3.7.2",  # https://github.com/pycqa/flake8/issues/668
35
+    "ruff",
38 36
 ]
39 37
 docs = [
40 38
     "sphinx",
Browse code

Upgrade requirements to Python 3.8

Joseph Weston authored on 13/09/2021 02:02:38
Showing 1 changed files
... ...
@@ -17,8 +17,8 @@ classifiers = [
17 17
     "Intended Audience :: Science/Research",
18 18
     "Topic :: Scientific/Engineering",
19 19
     "Topic :: Scientific/Engineering :: Physics",
20
-    "Programming Language :: Python :: 3.6",
21
-    "Programming Language :: Python :: 3.7",
20
+    "Programming Language :: Python :: 3.8",
21
+    "Programming Language :: Python :: 3.9",
22 22
 ]
23 23
 requires = [
24 24
     "numpy",
... ...
@@ -34,6 +34,7 @@ test = [
34 34
     "hypothesis[numpy]",
35 35
     "tox",
36 36
     "flake8-per-file-ignores",
37
+    "flake8>=3.7.2",  # https://github.com/pycqa/flake8/issues/668
37 38
 ]
38 39
 docs = [
39 40
     "sphinx",
Browse code

switch to flit v2.x

Joseph Weston authored on 30/11/2019 18:28:22
Showing 1 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 [build-system]
2
-requires = ["flit"]
3
-build-backend = "flit.buildapi"
2
+requires = ["flit_core >=2,<3"]
3
+build-backend = "flit_core.buildapi"
4 4
 
5 5
 [tool.flit.metadata]
6 6
 module = "qsim"
Browse code

[docs] Update trove classifiers

Joseph Weston authored on 13/11/2019 11:19:22
Showing 1 changed files
... ...
@@ -13,6 +13,7 @@ keywords = "quantum simulator"
13 13
 classifiers = [
14 14
     "License :: OSI Approved :: MIT License",
15 15
     "Development Status :: 1 - Planning",
16
+    "Operating System :: OS Independent",
16 17
     "Intended Audience :: Science/Research",
17 18
     "Topic :: Scientific/Engineering",
18 19
     "Topic :: Scientific/Engineering :: Physics",
Browse code

Add dev dependencies

Joseph Weston authored on 12/11/2019 12:05:57
Showing 1 changed files
... ...
@@ -40,3 +40,8 @@ docs = [
40 40
     "m2r",  # markdown support
41 41
     "sphinxcontrib.apidoc",  # run sphinx-apidoc when building docs
42 42
 ]
43
+dev = [
44
+    "flit",
45
+    "pre-commit",
46
+    "bump2version",
47
+]
Browse code

Add basic quantum gates

Joseph Weston authored on 10/11/2019 16:33:08
Showing 1 changed files
... ...
@@ -30,7 +30,7 @@ test = [
30 30
     "pytest-flake8",
31 31
     "pytest-mypy",
32 32
     "pytest-black",
33
-    "hypothesis",
33
+    "hypothesis[numpy]",
34 34
     "tox",
35 35
     "flake8-per-file-ignores",
36 36
 ]
Browse code

Add pytest-black configuration

Joseph Weston authored on 10/11/2019 09:13:03
Showing 1 changed files
... ...
@@ -29,6 +29,7 @@ test = [
29 29
     "pytest-cov",
30 30
     "pytest-flake8",
31 31
     "pytest-mypy",
32
+    "pytest-black",
32 33
     "hypothesis",
33 34
     "tox",
34 35
     "flake8-per-file-ignores",
Browse code

Add mypy configuration

Joseph Weston authored on 09/11/2019 16:36:39
Showing 1 changed files
... ...
@@ -28,6 +28,7 @@ test = [
28 28
     "pytest",
29 29
     "pytest-cov",
30 30
     "pytest-flake8",
31
+    "pytest-mypy",
31 32
     "hypothesis",
32 33
     "tox",
33 34
     "flake8-per-file-ignores",
Browse code

[docs] Update trove classifiers

Joseph Weston authored on 09/11/2019 16:13:55
Showing 1 changed files
... ...
@@ -10,7 +10,15 @@ home-page = "https://github.com/jbweston/qsim"
10 10
 requires-python=">=3.6"
11 11
 description-file="README.md"
12 12
 keywords = "quantum simulator"
13
-classifiers = ["License :: OSI Approved :: MIT License"]
13
+classifiers = [
14
+    "License :: OSI Approved :: MIT License",
15
+    "Development Status :: 1 - Planning",
16
+    "Intended Audience :: Science/Research",
17
+    "Topic :: Scientific/Engineering",
18
+    "Topic :: Scientific/Engineering :: Physics",
19
+    "Programming Language :: Python :: 3.6",
20
+    "Programming Language :: Python :: 3.7",
21
+]
14 22
 requires = [
15 23
     "numpy",
16 24
 ]
Browse code

[docs] Set up documentation source and building machinery

Joseph Weston authored on 09/11/2019 13:59:02
Showing 1 changed files
... ...
@@ -24,6 +24,9 @@ test = [
24 24
     "tox",
25 25
     "flake8-per-file-ignores",
26 26
 ]
27
-doc = [
27
+docs = [
28 28
     "sphinx",
29
+    "sphinx-rtd-theme",
30
+    "m2r",  # markdown support
31
+    "sphinxcontrib.apidoc",  # run sphinx-apidoc when building docs
29 32
 ]
Browse code

Add bare package and pyproject.toml

Joseph Weston authored on 09/11/2019 00:46:10
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,29 @@
1
+[build-system]
2
+requires = ["flit"]
3
+build-backend = "flit.buildapi"
4
+
5
+[tool.flit.metadata]
6
+module = "qsim"
7
+author = "Joseph Weston"
8
+author-email = "joseph@weston.cloud"
9
+home-page = "https://github.com/jbweston/qsim"
10
+requires-python=">=3.6"
11
+description-file="README.md"
12
+keywords = "quantum simulator"
13
+classifiers = ["License :: OSI Approved :: MIT License"]
14
+requires = [
15
+    "numpy",
16
+]
17
+
18
+[tool.flit.metadata.requires-extra]
19
+test = [
20
+    "pytest",
21
+    "pytest-cov",
22
+    "pytest-flake8",
23
+    "hypothesis",
24
+    "tox",
25
+    "flake8-per-file-ignores",
26
+]
27
+doc = [
28
+    "sphinx",
29
+]