Commit 2096ca4f authored by Paulo Medeiros's avatar Paulo Medeiros
Browse files

Update packages and drop python 3.6 support

parent c96caf13
......@@ -16,16 +16,16 @@ stages:
- ls poetry.lock || poetry lock
- poetry install -v --remove-untracked
create_py36:
create_py38:
stage: "Prepare Environments"
script:
- conda activate gitlab_runner_py36 2>/dev/null || conda create -y --name gitlab_runner_py36 python=3.6
- conda activate gitlab_runner_py38 2>/dev/null || conda create -y --name gitlab_runner_py38 python=3.8
- !reference [.install_deps, script]
create_py38:
create_py39:
stage: "Prepare Environments"
script:
- conda activate gitlab_runner_py38 2>/dev/null || conda create -y --name gitlab_runner_py38 python=3.8
- conda activate gitlab_runner_py39 2>/dev/null || conda create -y --name gitlab_runner_py39 python=3.9
- !reference [.install_deps, script]
......@@ -43,7 +43,7 @@ create_py38:
isort:
stage: lint
script:
- conda activate gitlab_runner_py36
- conda activate gitlab_runner_py38
- isort --check-only .
extends:
- .run_lint_conditions
......@@ -51,7 +51,7 @@ isort:
black:
stage: lint
script:
- conda activate gitlab_runner_py36
- conda activate gitlab_runner_py38
- black --check .
extends:
- .run_lint_conditions
......@@ -59,7 +59,7 @@ black:
pylint:
stage: lint
script:
- conda activate gitlab_runner_py36
- conda activate gitlab_runner_py38
- pylint netatmoqc
allow_failure: true
extends:
......@@ -68,7 +68,7 @@ pylint:
flake8:
stage: lint
script:
- conda activate gitlab_runner_py36
- conda activate gitlab_runner_py38
# Set FLAKEHELL_CACHE to a random new dir. Cached data was causing issues with pylint configs.
- export FLAKEHELL_CACHE="${TMPDIR:-${TEMP:-${TMP:-/tmp}}}/flakehell_cache.$(openssl rand -hex 12)"
- flake8helled .
......@@ -87,16 +87,16 @@ flake8:
- pyproject.toml
- .gitlab-ci.yml
Unit Tests Python 3.6:
Unit Tests Python 3.8:
stage: test
script:
- conda activate gitlab_runner_py36
- conda activate gitlab_runner_py38
- pytest -v tests
extends: .run_unit_tests_conditions
Unit Tests Python 3.8:
Unit Tests Python 3.9:
stage: test
script:
- conda activate gitlab_runner_py38
- conda activate gitlab_runner_py39
- pytest -v tests
extends: .run_unit_tests_conditions
......@@ -21,49 +21,49 @@
]
[tool.poetry.dependencies]
attrs = "^20.2.0"
python = "^3.8.8,<3.10"
attrs = "^21.2.0"
dash = "^1.13.4"
dash-daq = "^0.5.0"
dotmap = "^1.3.17"
flask-caching = "^1.9.0"
hdbscan = "^0.8.26"
humanize = "^2.6.0"
importlib-metadata = "^1.7.0"
humanize = "^3.7.0"
importlib-metadata = "^4.5.0"
joblib = "^1.0.0"
llvmlite = "0.33.^0.dev0" # numba 0.50.1 requires llvmlite <0.34,>=0.33.0.dev0
llvmlite = "0.36.0"
mpi4py = {version="^3.0.3", optional=true}
numba = "^0.50.1"
numba = "^0.53.1"
numpy = "^1.19.0"
pandas = "^1.0.5"
pandas = "^1.2.4"
plotly = "^4.8.2"
psutil = "^5.7.0"
pyproj = "^2.6.1"
python = "^3.6.10"
pytz = "^2020.1"
pyproj = "^3.1.0"
pytz = "^2021.1"
redis = "^3.5.3"
scikit-learn = "^0.23.1"
scikit-learn = "^0.24.2"
# tbb>=2019.5 is needed by numba when using parallel=True in jit
# This version, however, is not available for sys_platform==darwin (on 2020-08-25)
tbb = { version = "^2020.0.133", markers = "sys_platform != 'darwin'" }
tbb = { version = "^2021.2.0", markers = "sys_platform != 'darwin'" }
toml = "^0.10.1"
[tool.poetry.extras]
mpi = ["mpi4py"]
[tool.poetry.dev-dependencies]
black = "^19.10b0"
flakehell = "^0.6.1"
black = "^21.5b2"
flakehell = "^0.9.0"
isort = "^5.6.4"
pre-commit = "^2.6.0"
pyment = "0.3.3"
pylint = "^2.6.0"
pylint = "^2.8.3"
pytest = "^6.0.0"
pytest-timeout = "^1.4.1"
tox = "^3.19.0"
# flake8 plugins
darglint = "^1.5.5"
flake8-bandit = "^2.1.2"
flake8-bugbear = "^20.1.4"
flake8-bugbear = "^21.4.3"
flake8-builtins = "^1.5.3"
flake8-comprehensions = "^3.2.3"
flake8-docstrings = "^1.5.0"
......@@ -123,7 +123,7 @@
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py3{6,8}
envlist = py3{8,9}
skip_missing_interpreters = true
[testenv]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment