-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop support for Python 3.8 and Python 3.9
Supported versions are: * Python 3.10 * Python 3.11 Update all tools that were stuck on older versions because the tools themselves dropped Python 3.8. Format and remove lint according to newest tool versions. Update and clean-up the content of `pyproject.toml`, in particular use the `[project]` table now that it is supported by Poetry. Update more development dependencies.
- Loading branch information
1 parent
70950f1
commit 8bf09ef
Showing
9 changed files
with
314 additions
and
297 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[settings] | ||
profile=black | ||
py_version=38 | ||
py_version=310 | ||
force_grid_wrap=2 |
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,16 +1,18 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "mxcubeweb" | ||
version = "4.277.0" | ||
license = "LGPL-3.0-or-later" | ||
description = "MXCuBE Web user interface" | ||
authors = ["The MXCuBE collaboration <[email protected]>"] | ||
authors = [ | ||
{name = "The MXCuBE collaboration", email = "[email protected]"}, | ||
] | ||
maintainers = [ | ||
"MXCuBE collaboration <[email protected]>", | ||
{name = "The MXCuBE collaboration", email = "[email protected]"}, | ||
] | ||
readme = "README.md" | ||
homepage = "https://github.com/mxcube/mxcubeweb" | ||
repository = "https://github.com/mxcube/mxcubeweb" | ||
documentation = "https://mxcubeweb.readthedocs.io/" | ||
url.homepage = "https://github.com/mxcube/mxcubeweb" | ||
url.repository = "https://github.com/mxcube/mxcubeweb" | ||
url.documentation = "https://mxcubeweb.readthedocs.io/" | ||
keywords = ["mxcube", "mxcube3", "mxcubeweb"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
|
@@ -20,9 +22,15 @@ classifiers = [ | |
"Natural Language :: English", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
requires-python = ">=3.10,<3.12" | ||
scripts.mxcubeweb-server = 'mxcubeweb:main' | ||
dynamic = [ | ||
# For the time being: keep using Poetry-specific notation for this field, | ||
# but there does not seem to be anything blocking migration to standard notation. | ||
"dependencies", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<3.12" | ||
Flask = "^3.0.3" | ||
werkzeug = "^3.0.3" | ||
Flask-SocketIO = "^5.3.6" | ||
|
@@ -47,9 +55,9 @@ bcrypt = "^4.0.1" | |
authlib = "^1.3.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pre-commit = ">=2.21.0" | ||
pytest = "7.1.3" | ||
pytest-cov = "4.0.0" | ||
pre-commit = "^4.1.0" | ||
pytest = "^8.3.4" | ||
pytest-cov = "^6.0.0" | ||
|
||
[tool.poetry.group.docs.dependencies] | ||
furo = "^2023.9.10" | ||
|
@@ -60,7 +68,11 @@ sphinxcontrib-httpdomain = "^1.8.1" | |
|
||
[tool.black] | ||
line-length = 88 | ||
preview = true | ||
required-version = "25" | ||
target-version = [ | ||
"py310", | ||
"py311", | ||
] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
|
@@ -82,6 +94,3 @@ exclude = ''' | |
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry.scripts] | ||
mxcubeweb-server = 'mxcubeweb:main' |
Oops, something went wrong.