diff --git a/.gitignore b/.gitignore index 63f651bf..ddc0eb7d 100644 --- a/.gitignore +++ b/.gitignore @@ -64,5 +64,8 @@ celerybeat-schedule .idea/* /nbproject/ +#VSCode +.vscode/ + #gitlab configs .gitlab/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index af3ae02b..91ef1f0e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,20 +7,25 @@ before_script: - pip install wheel tox test-3.5: - image: python:3.5-stretch + image: python:3.5-buster script: - tox -e py35 test-3.6: - image: python:3.6-stretch + image: python:3.6-buster script: - tox -e py36 test-3.7: - image: python:3.7-stretch + image: python:3.7-buster script: - tox -e py37 +test-3.8: + image: python:3.8-buster + script: + - tox -e py38 + deploy_production: stage: deploy image: python:3.6-stretch diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8b1e841e..00000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: python -sudo: false -cache: pip -dist: trusty -install: - - pip install coveralls>=1.1 tox -# command to run tests -script: - - tox -after_success: - coveralls -matrix: - include: - - env: TOXENV=py35-dj111 - python: '3.5' - - env: TOXENV=py36-dj111 - python: '3.6' - - env: TOXENV=py35-dj20 - python: '3.5' - - env: TOXENV=py36-dj20 - python: '3.6' - - env: TOXENV=py37-dj20 - python: '3.7-dev' - allow_failures: - - env: TOXENV=py37-dj20 diff --git a/allianceauth/services/modules/openfire/views.py b/allianceauth/services/modules/openfire/views.py index bc38f0fa..26799739 100644 --- a/allianceauth/services/modules/openfire/views.py +++ b/allianceauth/services/modules/openfire/views.py @@ -25,7 +25,7 @@ def activate_jabber(request): logger.debug("Adding jabber user for user %s with main character %s" % (request.user, character)) info = OpenfireManager.add_user(OpenfireTasks.get_username(request.user)) # If our username is blank means we already had a user - if info[0] is not "": + if info[0] != "": OpenfireUser.objects.update_or_create(user=request.user, defaults={'username': info[0]}) logger.debug("Updated authserviceinfo for user %s with jabber credentials. Updating groups." % request.user) OpenfireTasks.update_groups.delay(request.user.pk) diff --git a/allianceauth/services/modules/teamspeak3/views.py b/allianceauth/services/modules/teamspeak3/views.py index 1526b28d..efca356e 100644 --- a/allianceauth/services/modules/teamspeak3/views.py +++ b/allianceauth/services/modules/teamspeak3/views.py @@ -25,7 +25,7 @@ def activate_teamspeak3(request): result = ts3man.add_user(request.user, Teamspeak3Tasks.get_username(request.user)) # if its empty we failed - if result[0] is not "": + if result[0] != "": Teamspeak3User.objects.update_or_create(user=request.user, defaults={'uid': result[0], 'perm_key': result[1]}) logger.debug("Updated authserviceinfo for user %s with TS3 credentials. Updating groups." % request.user) logger.info("Successfully activated TS3 for user %s" % request.user) diff --git a/setup.py b/setup.py index 81673013..22cc2c0b 100644 --- a/setup.py +++ b/setup.py @@ -75,6 +75,7 @@ setup( 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], diff --git a/tox.ini b/tox.ini index 3a22b1ce..d009fdfc 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] skipsdist = true usedevelop = true -envlist = py{35,36,37}-dj{2X} +envlist = py{35,36,37,38}-dj{2X} [testenv] setenv = @@ -10,11 +10,10 @@ basepython = py35: python3.5 py36: python3.6 py37: python3.7 + py38: python3.8 deps= coverage dj2X: Django>=2.0,<3.0 - py37: https://github.com/yaml/pyyaml/zipball/master#egg=pyyaml - py37: https://github.com/celery/kombu/zipball/master#egg=kombu install_command = pip install -e ".[testing]" -U {opts} {packages} commands = coverage run runtests.py -v 2