File tree Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 44 - 3.6
55 - 3.7
66 - 3.8
7+ - 3.9
78env :
8- # - DJANGO="django>=3.1.0,<3.2" # too soon
9+ - DJANGO="django>=3.2.0,<3.3"
10+ - DJANGO="django>=3.1.0,<3.2"
911 - DJANGO="django>=3.0.0,<3.1"
1012 - DJANGO="django>=2.2.0,<3.0"
1113 - DJANGO="django>=2.1.0,<2.2.0"
@@ -21,7 +23,7 @@ install:
2123 - travis_retry pip install -e .
2224 - travis_retry pip install $DJANGO --upgrade
2325script :
24- - setup.py test
26+ - python setup.py test
2527after_script :
2628 # ensure we validate against pep standards
2729 - ' pep8 --exclude=migrations --ignore=E501,E225,W293 stream'
Original file line number Diff line number Diff line change 99if sys .version_info < (3 , 0 , 0 ):
1010 django = "django>=1.11.29,<2.0"
1111else :
12- django = "django>=2.0,<3.2 " # checked https://docs.djangoproject.com/en/dev/releases/3.1 /#backwards-incompatible-3-1
12+ django = "django>=2.0,<3.3 " # checked https://docs.djangoproject.com/en/dev/releases/3.2 /#backwards-incompatible-3-2
1313
1414requirements = [django , "stream-python>=3.0.1" , "pytz" ]
1515
1616extras_require = {
17- "test" : ["httpretty==0.9.5 " ],
17+ "test" : ["httpretty==1.1.1 " ],
1818}
1919
2020setup (
Original file line number Diff line number Diff line change 1- from stream_django . feed_manager import feed_manager
2- default_app_config = ' stream_django.apps.StreamDjangoConfig'
1+ import django
2+ from stream_django .feed_manager import feed_manager # noqa
33
4+ major , minor , _ = (int (i ) for i in django .__version__ .split ('.' ))
5+
6+ if major < 3 or (major == 3 and minor < 2 ):
7+ # deprecated as of Django 3.2
8+ default_app_config = 'stream_django.apps.StreamDjangoConfig'
Original file line number Diff line number Diff line change 55import unittest
66
77
8- api_url = re .compile (r'(us-east-api.)?stream-io-api.com(/api)?/*. ' )
8+ api_url = re .compile (r'(us-east-api.)?stream-io-api.com/.* ' )
99
1010
1111class ManagerTestCase (unittest .TestCase ):
Original file line number Diff line number Diff line change 77from stream_django .feed_manager import feed_manager
88
99
10- api_url = re .compile (r'(us-east-api.)?stream-io-api.com(/api)?/*. ' )
10+ api_url = re .compile (r'(us-east-api.)?stream-io-api.com/.* ' )
1111
1212
1313class PinTest (TestCase ):
You can’t perform that action at this time.
0 commit comments