diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index d3c0952..c0a65bf 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -8,17 +8,13 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: - python-version: "3.9" - - name: Cache pip packages - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: lint-flake8-${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }} - restore-keys: | - lint-flake8-${{ runner.os }}-pip-${{ matrix.python-version }} - lint-flake8-${{ runner.os }}-pip- + python-version: "3.10" + cache: "pip" + cache-dependency-path: | + setup.cfg + requirements/lint.txt - name: Install dependencies run: | python -m pip install -U pip setuptools @@ -50,17 +46,13 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.9" - - name: Cache pip packages - uses: actions/cache@v2 + uses: actions/setup-python@v3 with: - path: ~/.cache/pip - key: typecheck-mypy-${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }} - restore-keys: | - typecheck-mypy-${{ runner.os }}-pip-${{ matrix.python-version }} - typecheck-mypy-${{ runner.os }}-pip- + python-version: "3.10" + cache: "pip" + cache-dependency-path: | + setup.cfg + requirements/typecheck.txt - name: Install dependencies run: | python -m pip install -U pip setuptools @@ -93,17 +85,13 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: - python-version: "3.9" - - name: Cache pip packages - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: test-pytest-${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }} - restore-keys: | - test-pytest-${{ runner.os }}-pip-${{ matrix.python-version }} - test-pytest-${{ runner.os }}-pip- + python-version: "3.10" + cache: "pip" + cache-dependency-path: | + setup.cfg + requirements/test.txt - name: Install dependencies run: | python -m pip install -U pip setuptools @@ -137,17 +125,13 @@ jobs: with: submodules: true - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.9" - - name: Cache pip packages - uses: actions/cache@v2 + uses: actions/setup-python@v3 with: - path: ~/.cache/pip - key: deploy-pypi-${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }} - restore-keys: | - test-pytest-${{ runner.os }}-pip-${{ matrix.python-version }} - test-pytest-${{ runner.os }}-pip- + python-version: "3.10" + cache: "pip" + cache-dependency-path: | + setup.cfg + requirements/build.txt - name: Install dependencies run: | python -m pip install -U pip setuptools diff --git a/.github/workflows/timeline-check.yml b/.github/workflows/timeline-check.yml index ce2505a..0f450e1 100644 --- a/.github/workflows/timeline-check.yml +++ b/.github/workflows/timeline-check.yml @@ -12,21 +12,16 @@ jobs: with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: - python-version: 3.9 - - name: Cache pip packages - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: lint-towncrier-${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }} - restore-keys: | - lint-towncrier-${{ runner.os }}-pip-${{ matrix.python-version }} - lint-towncrier-${{ runner.os }}-pip- + python-version: "3.10" + cache: "pip" + cache-dependency-path: | + requirements/timeline-check.txt - name: Install dependencies run: | python -m pip install -U pip setuptools - python -m pip install -U towncrier + python -m pip install -U -r requirements/timeline-check.txt - name: Check existence of news fragment run: | git fetch --no-tags origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH} diff --git a/changes/52.breaking.md b/changes/52.breaking.md new file mode 100644 index 0000000..d37225f --- /dev/null +++ b/changes/52.breaking.md @@ -0,0 +1 @@ +Now it requires Python 3.10 or higher to run. diff --git a/requirements/timeline-check.txt b/requirements/timeline-check.txt new file mode 100644 index 0000000..3c9c7c0 --- /dev/null +++ b/requirements/timeline-check.txt @@ -0,0 +1 @@ +towncrier~=21.9 diff --git a/setup.cfg b/setup.cfg index bda47d1..5d09e43 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,7 +12,7 @@ classifiers = Intended Audience :: Developers Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 Operating System :: POSIX Operating System :: MacOS :: MacOS X Environment :: No Input/Output (Daemon) @@ -25,7 +25,7 @@ project_urls = package_dir = = src packages = find_namespace: -python_requires = >=3.9 +python_requires = >=3.10 setup_requires = setuptools>=54.2.0 install_requires = @@ -43,7 +43,7 @@ install_requires = setproctitle>=1.2.1 toml>=0.10.0 yarl>=1.7.2 - backend.ai-client~=22.3.0.dev0 + backend.ai-client~=22.3.0a1 zip_safe = false include_package_data = true @@ -53,9 +53,9 @@ build = twine>=3.4.1 towncrier~=21.9.0 test = - pytest~=6.2.5 - pytest-asyncio~=0.16.0 - pytest-aiohttp~=0.3.0 + pytest~=7.1.0 + pytest-asyncio~=0.18.2 + pytest-aiohttp~=1.0.4 pytest-cov pytest-mock~=3.5.1 codecov @@ -63,7 +63,7 @@ dev = lint = flake8>=4.0.1 typecheck = - mypy>=0.910 + mypy>=0.940 types-pkg_resources types-toml