Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ include_package_data = True
packages = find:
python_requires = >=3.9
install_requires =
Django >= 3.0, <5
Django >= 4.2, <6
slack-sdk==3.19.2
# FIXME: make locks an optional dependency (and use, in the run_bot command)
django-database-locks < 1
Expand Down
11 changes: 1 addition & 10 deletions slackbot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
from functools import lru_cache

__version__ = '0.0.5'

# set default_app_config when using django earlier than 3.2
try:
import django

if django.VERSION < (3, 2):
default_app_config = 'slackbot.apps.SlackbotConfig'
except ImportError:
pass
__version__ = "0.0.5"


@lru_cache
Expand Down
2 changes: 1 addition & 1 deletion testapp/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
pytest==7.2.0
pytest-cov==4.0.0
pytest-django==4.5.2
black==22.12.0
black==24.4.2
3 changes: 2 additions & 1 deletion testapp/testapp/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""

from django.contrib import admin
from django.urls import path

urlpatterns = [
path('admin/', admin.site.urls),
path("admin/", admin.site.urls),
]
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[tox]
envlist =
flake8
py{39,311}-dj{22,30,32}
py{39,311}-dj{42,50}

[testenv]
deps =
dj32: Django==3.2.*
42: Django==4.2.*
50: Django==5.0.x
coverage
pytest
setenv =
Expand Down