Skip to content
Snippets Groups Projects
Commit bfcedcd8 authored by florian's avatar florian
Browse files

MAINT: Require Python>=3.8

parent 0893c56b
No related branches found
No related tags found
1 merge request!61MAINT: Drop support for Python 3.6 and 3.7
Pipeline #23888 passed
* caosdb-server >= 0.7.2 * caosdb-server >= 0.7.2
* Python >= 3.6 * Python >= 3.8
* pip >= 20.0.2 * pip >= 20.0.2
Any other dependencies are defined in the setup.py and are being installed via pip Any other dependencies are defined in the setup.py and are being installed via pip
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
### Requirements ### ### Requirements ###
PyCaosDB needs at least Python 3.6. Additionally, the following packages are required (they will PyCaosDB needs at least Python 3.8. Additionally, the following packages are required (they will
typically be installed automatically): typically be installed automatically):
- `lxml` - `lxml`
...@@ -19,7 +19,7 @@ Optional packages: ...@@ -19,7 +19,7 @@ Optional packages:
#### Linux #### #### Linux ####
Make sure that Python (at least version 3.6) and pip is installed, using your system tools and Make sure that Python (at least version 3.8) and pip is installed, using your system tools and
documentation. documentation.
Then open a terminal and continue in the [Generic installation](#generic-installation) section. Then open a terminal and continue in the [Generic installation](#generic-installation) section.
......
...@@ -168,7 +168,7 @@ def setup_package(): ...@@ -168,7 +168,7 @@ def setup_package():
"Topic :: Scientific/Engineering :: Information Analysis", "Topic :: Scientific/Engineering :: Information Analysis",
], ],
packages=find_packages('src'), packages=find_packages('src'),
python_requires='>=3.6', python_requires='>=3.8',
package_dir={'': 'src'}, package_dir={'': 'src'},
install_requires=['lxml>=4.6.3', install_requires=['lxml>=4.6.3',
'PyYAML>=6.0', 'future', 'PySocks>=1.6.7'], 'PyYAML>=6.0', 'future', 'PySocks>=1.6.7'],
......
...@@ -179,6 +179,8 @@ class _DefaultCaosDBServerConnection(CaosDBServerConnection): ...@@ -179,6 +179,8 @@ class _DefaultCaosDBServerConnection(CaosDBServerConnection):
try: try:
ssl_version = ssl.PROTOCOL_TLS ssl_version = ssl.PROTOCOL_TLS
except AttributeError: except AttributeError:
# TODO(tfitschen): This can be removed since we require Python
# >= 3.8 anyway, can't it?
# deprecated since Python 3.6, but necessary until there. # deprecated since Python 3.6, but necessary until there.
try: try:
ssl_version = ssl.PROTOCOL_TLSv1_2 ssl_version = ssl.PROTOCOL_TLSv1_2
......
[tox] [tox]
envlist=py36, py37, py38, py39, py310 envlist=py38, py39, py310
skip_missing_interpreters = true skip_missing_interpreters = true
[testenv] [testenv]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment