From a32b8dc1f60e2fd8a4a74982b11982acba8a53fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Wed, 1 Nov 2023 23:00:34 +0100 Subject: [PATCH] Add support for python 3.11 --- .github/workflows/ci.yml | 2 +- ci/environment-3.11.yml | 38 ++++++++++++++++++++++++++++++++++++++ versioneer.py | 4 ++-- 3 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 ci/environment-3.11.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f309a92e..88bd66fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: fail-fast: true matrix: os: ["ubuntu-latest"] - python-version: ["3.9", "3.10"] + python-version: ["3.9", "3.10", "3.11"] steps: - name: Checkout source diff --git a/ci/environment-3.11.yml b/ci/environment-3.11.yml new file mode 100644 index 00000000..8c4147de --- /dev/null +++ b/ci/environment-3.11.yml @@ -0,0 +1,38 @@ +name: dask-cloudprovider-test +channels: + - defaults + - conda-forge +dependencies: + - python=3.11 + - nomkl + - pip + # Dask + - dask + # testing / CI + - flake8 + - ipywidgets + - pytest + - pytest-asyncio + - black >=20.8b1 + - pyyaml + # dask dependencies + - cloudpickle + - toolz + - cytoolz + - numpy + - partd + # distributed dependencies + - click >=6.6 + - msgpack-python + - psutil >=5.0 + - six + - sortedcontainers !=2.0.0,!=2.0.1 + - tblib + - tornado >=5 + - zict >=0.1.3 + # `event_loop_policy` change See https://github.com/dask/distributed/pull/4212 + - pytest-asyncio >=0.14.0 + - pytest-timeout + - pip: + - git+https://github.com/dask/dask.git@main + - git+https://github.com/dask/distributed@main diff --git a/versioneer.py b/versioneer.py index 722989c3..d38b5b79 100644 --- a/versioneer.py +++ b/versioneer.py @@ -343,9 +343,9 @@ def get_config_from_root(root): # configparser.NoOptionError (if it lacks "VCS="). See the docstring at # the top of versioneer.py for instructions on writing your setup.cfg . setup_cfg = os.path.join(root, "setup.cfg") - parser = configparser.SafeConfigParser() + parser = configparser.ConfigParser() with open(setup_cfg, "r") as f: - parser.readfp(f) + parser.read_file(f) VCS = parser.get("versioneer", "VCS") # mandatory def get(parser, name):