Skip to content
Snippets Groups Projects
Commit 8948c5b8 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

upgrade to python 3.11

parent d5ebacf3
No related branches found
No related tags found
1 merge request!107upgrade to python 3.11
Pipeline #84517 passed
......@@ -12,7 +12,7 @@ run-tox-pipeline:
stage: tox
tags:
- docker-executor
image: python:3.10
image: python:3.11
services:
- postgres:15.4
......
......@@ -4,15 +4,15 @@ Quickstart
Development environment and dependencies
----------------------------------------
- Install python 3.10 if you do not have it already:
- Install python 3.11 if you do not have it already:
- ``add-apt-repository ppa:deadsnakes/ppa``
- ``apt install python3.10 python3.10-distutils``
- ``apt install python3.11 python3.11-distutils``
- Follow Steps 1 and 2 from here to install dependencies and setup DB:
`<https://workfloworchestrator.org/orchestrator-core/workshops/beginner/debian/>`_
- To install the orchestrator GUI, you can follow the steps 5 and 6 from the previous link.
- Create a virtual environment:
- ``source /usr/share/virtualenvwrapper/virtualenvwrapper.sh``
- ``mkvirtualenv --python python3.10 gso``
- ``mkvirtualenv --python python3.11 gso``
- To use the virtual environment:
- ``source /usr/share/virtualenvwrapper/virtualenvwrapper.sh``
- ``workon gso``
......@@ -25,7 +25,7 @@ Do all this inside the virtual environment.
- Clone this repository
- ``pip install -r requirements.txt``
- If you get an error because you pip version is too old, run this:
``curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10``
``curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11``
- ``pip install -e .``
- Create an ``oss-params.json`` based on the ``oss-params-example.json`` file inside ``/gso``.
- Export the oss-params file: ``export OSS_PARAMS_FILENAME="/path/to/oss-params.json"``
......
......@@ -7,7 +7,7 @@ known_first_party = ["test", "docs"]
[tool.black]
line-length = 120
target-version = ["py310"]
target-version = ["py311"]
exclude = '''
(
/(
......@@ -100,7 +100,7 @@ select = [
"T",
"W",
]
target-version = "py310"
target-version = "py311"
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
......
......@@ -10,11 +10,11 @@ celery==5.3.4
pytest==7.4.3
faker==19.13.0
responses==0.24.0
black==23.10.1
black==23.11.0
isort==5.12.0
flake8==6.1.0
mypy==1.6.1
ruff==0.1.4
ruff==0.1.5
sphinx==7.2.6
sphinx-rtd-theme==1.3.0
urllib3_mock==0.3.3
\ No newline at end of file
[tox]
envlist = py310
envlist = py311
[flake8]
; Allow >> on newline (W503), and allow cls as first argument for pydantic validators (B902)
......
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