Skip to content

Commit 8dbd1b5

Browse files
authored
Merge pull request #103 from benjaoming/django32
Migrate to Circle CI and Support Django 3.2
2 parents a2586d2 + 25f1211 commit 8dbd1b5

File tree

6 files changed

+78
-90
lines changed

6 files changed

+78
-90
lines changed

.circleci/config.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
version: 2.1
2+
3+
orbs:
4+
python: circleci/[email protected]
5+
6+
jobs:
7+
tox:
8+
parameters:
9+
tox_env:
10+
description: "Name of Tox environment to run"
11+
default: "py38"
12+
type: string
13+
python_version:
14+
description: "Python version string"
15+
default: "3.8"
16+
type: string
17+
description: "Reusable job for invoking tox"
18+
docker:
19+
- image: circleci/python:<<parameters.python_version>>
20+
steps:
21+
- checkout
22+
- run: pip install tox && tox -e <<parameters.tox_env>>
23+
workflows:
24+
main:
25+
jobs:
26+
- tox:
27+
tox_env: "py36-django22"
28+
python_version: "3.6"
29+
- tox:
30+
tox_env: "py36-django30"
31+
python_version: "3.6"
32+
- tox:
33+
tox_env: "py36-django31"
34+
python_version: "3.6"
35+
- tox:
36+
tox_env: "py36-django32"
37+
python_version: "3.6"
38+
- tox:
39+
tox_env: "py37-django22"
40+
python_version: "3.7"
41+
- tox:
42+
tox_env: "py37-django30"
43+
python_version: "3.7"
44+
- tox:
45+
tox_env: "py37-django31"
46+
python_version: "3.7"
47+
- tox:
48+
tox_env: "py37-django32"
49+
python_version: "3.7"
50+
- tox:
51+
tox_env: "py38-django30"
52+
python_version: "3.8"
53+
- tox:
54+
tox_env: "py38-django31"
55+
python_version: "3.8"
56+
- tox:
57+
tox_env: "py38-django32"
58+
python_version: "3.8"
59+
- tox:
60+
tox_env: "py39-django32"
61+
python_version: "3.9"
62+
- tox:
63+
tox_env: "lint"
64+
python_version: "3.8"

.travis.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
django-nyt
22
==========
33

4-
.. image:: https://travis-ci.org/django-wiki/django-nyt.png?branch=master
5-
:target: https://travis-ci.org/django-wiki/django-nyt
4+
.. |Build status| image:: https://circleci.com/gh/django-wiki/django-nyt.svg?style=shield
5+
:target: https://circleci.com/gh/django-wiki/django-nyt
66
.. image:: https://readthedocs.org/projects/django-nyt/badge/?version=latest
77
:target: https://django-nyt.readthedocs.io/en/latest/?badge=latest
88
:alt: Documentation Status

runtests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020

2121
settings.configure(
22+
SECRET_KEY="lskfjklsdfjalkfslfjslfksdjfslkfslkfj",
2223
DEBUG=True,
2324
# AUTH_USER_MODEL='testdata.CustomUser',
2425
DATABASES={

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
keywords=["django", "notification" "alerts"],
1818
packages=find_packages(),
1919
zip_safe=False,
20-
install_requires=["django>=2.2,<3.2"],
20+
install_requires=["django>=2.2,<3.3"],
2121
classifiers=[
2222
'Development Status :: 5 - Production/Stable',
2323
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
@@ -32,7 +32,8 @@
3232
'Programming Language :: Python :: 3',
3333
'Programming Language :: Python :: 3.5',
3434
'Programming Language :: Python :: 3.6',
35-
'Programming Language :: Python :: 3.7',
35+
'Programming Language :: Python :: 3.8',
36+
'Programming Language :: Python :: 3.9',
3637
'Programming Language :: Python :: 3 :: Only',
3738
],
3839
include_package_data=True,

tox.ini

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,37 @@
11
[tox]
22
# Ensure you add to .travis.yml if you add here
3-
envlist = {py35,py36,py37,py38,pypy}-django{22,30,31}
4-
5-
[travis]
6-
python =
7-
3.5: py35
8-
3.6: py36,lint
9-
3.7: py37
10-
3.8: py38
11-
pypy: py
12-
13-
[travis:env]
14-
DJANGO =
15-
2.1: django21
16-
2.2: django22
17-
3.0: django30
18-
3.1: django31
19-
LINT =
20-
yes: lint
3+
envlist = {py35,py36,py37,py38,py39,pypy}-django{22,30,31,32}
214

225
[testenv]
6+
passenv = CODECOV_TOKEN
7+
238
whitelist_externals=
249
sh
2510

2611
commands =
2712
sh -c '! python test-project/manage.py makemigrations --dry-run --exit --noinput'
2813
python -W all:"":"":"":0 -m coverage run --source=django_nyt runtests.py
14+
codecov
2915

3016
deps =
3117
coverage
18+
codecov
3219
django21: Django>=2.1,<2.2
3320
django22: Django>=2.2,<2.3
3421
django30: Django>=3.0,<3.1
3522
django31: Django>=3.1,<3.2
23+
django32: Django>=3.2,<3.3
3624

3725
basepython =
3826
py35: python3.5
3927
py36: python3.6
4028
py37: python3.7
4129
py38: python3.8
30+
py39: python3.9
4231
pypy: python
4332

4433
[testenv:lint]
45-
basepython = python3.6
34+
basepython = python3
4635
deps = flake8
4736
commands =
4837
flake8 django_nyt

0 commit comments

Comments
 (0)