Skip to content

Commit f02d3ea

Browse files
committed
build: Ensure 3.9/3.10 only
1 parent 8d56a8b commit f02d3ea

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

pyproject.toml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,53 @@
33

44
[tool.pytest.ini_options]
55
testpaths = ["tests"] # path to the test directory
6-
minversion = "3.8"
6+
minversion = "3.9"
77
addopts = "--cov=deepcave" # Should be package name
88

99
[tool.coverage.run]
1010
branch = true
1111
context = "deepcave" # Should be package name
1212
omit = [
13-
"deepcave/__init__.py", # Has variables only needed for setup.py
13+
"deepcave/__init__.py", # Has variables only needed for setup.py
1414
]
1515

1616
[tool.coverage.report]
1717
show_missing = true
1818
skip_covered = true
1919
exclude_lines = [
20-
"pragma: no cover",
21-
'\.\.\.',
22-
"raise NotImplementedError",
23-
"if TYPE_CHECKING",
20+
"pragma: no cover",
21+
'\.\.\.',
22+
"raise NotImplementedError",
23+
"if TYPE_CHECKING",
2424
] # These are lines to exclude from coverage
2525

2626
[tool.black]
27-
target-version = ['py38']
27+
target-version = ['py39']
2828
line-length = 100
2929

3030
[tool.isort]
31-
py_version = "38"
31+
py_version = "39"
3232
profile = "black" # Play nicely with black
3333
src_paths = ["deepcave", "tests"]
3434
known_types = ["typing", "abc"] # We put these in their own section "types"
3535
known_test = ["tests"]
3636
known_first_party = ["deepcave"]
3737
sections = [
38-
"FUTURE",
39-
"TYPES",
40-
"STDLIB",
41-
"THIRDPARTY",
42-
"FIRSTPARTY",
43-
"TEST",
44-
"LOCALFOLDER",
38+
"FUTURE",
39+
"TYPES",
40+
"STDLIB",
41+
"THIRDPARTY",
42+
"FIRSTPARTY",
43+
"TEST",
44+
"LOCALFOLDER",
4545
] # section ordering
4646
multi_line_output = 3 # https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html
4747

4848
[tool.pydocstyle]
4949
convention = "numpy"
5050
add-ignore = [ # http://www.pydocstyle.org/en/stable/error_codes.html
51-
"D105", # Missing docstring in magic method
52-
"D212", # Multi-line docstring summary should start at the first line
51+
"D105", # Missing docstring in magic method
52+
"D212", # Multi-line docstring summary should start at the first line
5353
]
5454

5555
[tool.mypy]
@@ -68,5 +68,5 @@ module = ["setuptools.*"] # Add modules that give import errors here
6868
ignore_missing_imports = true
6969

7070
[[tool.mypy.overrides]]
71-
module = ["tests.*"] # pytest uses decorators which are not typed in 3.8
71+
module = ["tests.*"] # pytest uses decorators which are not typed in 3.9
7272
disallow_untyped_decorators = false # decorators in testing are not all annotated

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def read_file(file_name):
5050
exclude=["*.tests", "*.tests.*", "tests.*", "tests"],
5151
),
5252
include_package_data=True,
53-
python_requires=">=3.9, <3.12",
53+
python_requires=">=3.9, <3.11",
5454
install_requires=read_file("./requirements.txt").split("\n"),
5555
extras_require=extras_require,
5656
entry_points={
@@ -61,7 +61,6 @@ def read_file(file_name):
6161
classifiers=[
6262
"Programming Language :: Python :: 3.9",
6363
"Programming Language :: Python :: 3.10",
64-
"Programming Language :: Python :: 3.11",
6564
"Development Status :: 3 - Alpha",
6665
"Natural Language :: English",
6766
"Environment :: Console",

0 commit comments

Comments
 (0)