Skip to content

Commit 9209d00

Browse files
authored
Merge pull request #175 from caktus/sc-16010-python-3-10-compatible-scribbler-release
Update Iterable import and python version to 3.10
2 parents 9b71c01 + 4ec872d commit 9209d00

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

.github/workflows/test.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
matrix:
2020
# tox-gh-actions will only run the tox environments which match the currently
2121
# running python-version. See [gh-actions] in tox.ini for the mapping
22-
python-version: [3.7, 3.8, 3.9]
22+
# version 3.10 is explicitly a string because otherwise github actions truncates the zero
23+
python-version: [3.7, 3.8, 3.9, '3.10']
2324
steps:
2425
- uses: actions/checkout@v2
2526
- name: Set up Python ${{ matrix.python-version }}
@@ -41,21 +42,21 @@ jobs:
4142
- uses: actions/checkout@v2
4243
- uses: actions/setup-python@v2
4344
with:
44-
python-version: '3.9'
45+
python-version: '3.10'
4546
- name: Install dependencies
4647
run: |
4748
python -m pip install --upgrade pip
4849
pip install tox tox-gh-actions
4950
- name: Test with tox
50-
run: tox -e py39-coverage
51+
run: tox -e py310-coverage
5152

5253
build-docs:
5354
runs-on: ubuntu-20.04
5455
steps:
5556
- uses: actions/checkout@v2
5657
- uses: actions/setup-python@v2
5758
with:
58-
python-version: '3.9'
59+
python-version: '3.10'
5960
- name: Install dependencies
6061
run: |
6162
python -m pip install --upgrade pip

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ python:
77
- "3.5"
88
- "3.6"
99
- "3.7"
10+
- "3.8"
11+
- "3.9"
12+
- "3.10"
1013

1114
services:
1215
- xvfb

scribbler/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"django-scribbler is an application for managing snippets of text for a Django website."
22

33

4-
__version__ = '1.1.0'
4+
__version__ = '1.2.0'
55

66

77
default_app_config = 'scribbler.apps.ScribblerAppConfig'

scribbler/utils.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from collections import Iterable
2-
1+
from collections.abc import Iterable
32

43
def _flatten(iterable):
54
"""

tox.ini

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Django version: Supported python versions
22
#
3-
# 2.2: 3.7, 3.8, 3.9
4-
# 3.2: 3.7, 3.8, 3.9
5-
# 4.0: 3.7, 3.8, 3.9
3+
# 2.2: 3.7, 3.8, 3.9, 3.10
4+
# 3.2: 3.7, 3.8, 3.9, 3.10
5+
# 4.0: 3.7, 3.8, 3.9, 3.10
66

77
[tox]
88
envlist =
99
py37-{2.2,3.2,4.0}.X,
1010
py38-{2.2,3.2,4.0}.X,
1111
py39-{2.2,3.2,4.0}.X,
12-
py39-coverage
12+
py310-{2.2,3.2,4.0}.X,
13+
py310-coverage,
1314
docs,
1415
qunit
1516

@@ -18,6 +19,7 @@ python =
1819
3.7: py37
1920
3.8: py38
2021
3.9: py39
22+
3.10: py310
2123

2224
[testenv]
2325
passenv = TRAVIS DISPLAY
@@ -31,7 +33,7 @@ whitelist_externals = make
3133
commands = make fetch-static-libs build-css build-js
3234
{envpython} runtests.py
3335

34-
[testenv:py39-coverage]
36+
[testenv:py310-coverage]
3537
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH DISPLAY
3638
whitelist_externals = make
3739
commands = make fetch-static-libs build-css build-js
@@ -43,13 +45,13 @@ deps = coverage>=4
4345
selenium
4446

4547
[testenv:docs]
46-
basepython = python3.9
47-
deps = Sphinx==1.6.5
48+
basepython = python3.10
49+
deps = Sphinx==4.3.0
4850
caktus-sphinx-theme==0.1.0
4951
commands = {envbindir}/sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
5052

5153
[testenv:qunit]
52-
basepython = python3.9
54+
basepython = python3.10
5355
skip_install = true
5456
deps =
5557
whitelist_externals = make

0 commit comments

Comments
 (0)