Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
setup,ci: Upgrade to Python 3.10 (#52)
Browse files Browse the repository at this point in the history
* setup: Upgrade client SDK
  • Loading branch information
achimnol authored Mar 14, 2022
1 parent 44447d4 commit bfd93b6
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 58 deletions.
64 changes: 24 additions & 40 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/timeline-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions changes/52.breaking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Now it requires Python 3.10 or higher to run.
1 change: 1 addition & 0 deletions requirements/timeline-check.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
towncrier~=21.9
14 changes: 7 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 =
Expand All @@ -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

Expand All @@ -53,17 +53,17 @@ 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
dev =
lint =
flake8>=4.0.1
typecheck =
mypy>=0.910
mypy>=0.940
types-pkg_resources
types-toml

Expand Down

0 comments on commit bfd93b6

Please sign in to comment.