Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit d49c7be

Browse files
authored
Merge pull request #111 from openedx/jenkins/cleanup-python-code-42ef3aa
chore: Post Django32 Cleanup
2 parents 4b9acd3 + bf80aff commit d49c7be

File tree

4 files changed

+38
-44
lines changed

4 files changed

+38
-44
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
name: Python CI
22

33
on:
4-
push:
5-
branches: [master]
6-
pull_request:
7-
branches:
8-
- '**'
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches:
8+
- '**'
99

1010

1111
jobs:
12-
run_tests:
13-
name: tests
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
matrix:
17-
os: [ubuntu-20.04]
18-
python-version: ['3.8']
19-
toxenv: [django22, django30, django31, django32, quality]
12+
run_tests:
13+
name: tests
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-20.04]
18+
python-version: ['3.8']
19+
toxenv: [quality, django32]
2020

21-
steps:
22-
- uses: actions/checkout@v1
23-
- name: setup python
24-
uses: actions/setup-python@v2
25-
with:
26-
python-version: ${{ matrix.python-version }}
21+
steps:
22+
- uses: actions/checkout@v1
23+
- name: setup python
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
2727

28-
- name: Install pip
29-
run: pip install -r requirements/pip.txt
28+
- name: Install pip
29+
run: pip install -r requirements/pip.txt
3030

31-
- name: Install Dependencies
32-
run: make requirements
31+
- name: Install Dependencies
32+
run: make requirements
3333

34-
- name: Run Tests
35-
env:
36-
TOXENV: ${{ matrix.toxenv }}
37-
run: tox
34+
- name: Run Tests
35+
env:
36+
TOXENV: ${{ matrix.toxenv }}
37+
run: tox

lang_pref_middleware/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Init module for lang_pref_middleware."""
22

3-
__version__ = '1.1.0'
3+
__version__ = '1.2.0'

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ def get_version(*file_paths):
100100
"License :: OSI Approved :: Apache Software License",
101101
"Operating System :: OS Independent",
102102
"Framework :: Django",
103-
"Framework :: Django :: 2.2",
104-
"Framework :: Django :: 3.0",
105-
"Framework :: Django :: 3.1",
106103
"Framework :: Django :: 3.2",
107104
"Programming Language :: Python :: 3",
108105
"Programming Language :: Python :: 3.8",

tox.ini

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
[tox]
2-
envlist = py38-django{22,30,31,32},quality
2+
envlist = py38-django{32,40},quality
33

44
[testenv]
5-
deps =
6-
django22: Django>=2.2,<2.3
7-
django30: Django>=3.0,<3.1
8-
django31: Django>=3.1,<3.2
9-
django32: Django>=3.2,<3.3
10-
-r{toxinidir}/requirements/test.txt
11-
setenv =
12-
DJANGO_SETTINGS_MODULE=settings
5+
deps =
6+
django32: Django>=3.2,<4.0
7+
-r{toxinidir}/requirements/test.txt
8+
setenv =
9+
DJANGO_SETTINGS_MODULE=settings
1310
commands = pytest --cov-branch --cov-report=html:build/coverage/html --cov-report=xml:build/coverage/coverage.xml --cov=lang_pref_middleware
1411

1512
[testenv:quality]
16-
commands =
17-
pycodestyle --config=.pep8 lang_pref_middleware
18-
pylint --rcfile=.pylintrc lang_pref_middleware
19-
pep257 --ignore=D100,D203 --match='(?!test).*py' lang_pref_middleware
13+
commands =
14+
pycodestyle --config=.pep8 lang_pref_middleware
15+
pylint --rcfile=.pylintrc lang_pref_middleware
16+
pep257 --ignore=D100,D203 --match='(?!test).*py' lang_pref_middleware
2017

0 commit comments

Comments
 (0)