Skip to content

Commit

Permalink
Flag python 3.9+ as required + deprecate incompatible django-nose lib…
Browse files Browse the repository at this point in the history
…rary
  • Loading branch information
mauromsl committed Mar 28, 2024
1 parent cfed6b6 commit 308b422
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Janeway is a web-based platform for publishing journals, preprints, conference proceedings, and books. It is developed and maintained by a team of developers at the Open Library of Humanities, part of Birkbeck, University of London.

# Technology
Janeway is written in Python (3.6+) and utilises the Django framework (3.2).
Janeway is written in Python (3.9+) and utilises the Django framework (3.2).


# Installation instructions
Expand Down
1 change: 0 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
django_nose
coverage
ipdb
python-wordpress-xmlrpc
Expand Down
2 changes: 0 additions & 2 deletions src/core/dev_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
)
INSTALLED_APPS = [
'debug_toolbar',
'django_nose',
]


Expand All @@ -33,7 +32,6 @@ def show_toolbar(request):
DEBUG_TOOLBAR_CONFIG = {
"SHOW_TOOLBAR_CALLBACK": show_toolbar,
}
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'

HIJACK_LOGIN_REDIRECT_URL = '/manager/'
HIJACK_USERS_ENABLED = True
Expand Down
8 changes: 2 additions & 6 deletions src/core/templatetags/debug_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ class TraceNode(template.Node):
"""

def render(self, context):
try:
from nose import tools
tools.set_trace() # Debugger will stop here
except (ModuleNotFoundError, ImportError):
import pdb
pdb.set_trace() # Debugger will stop here
import pdb
pdb.set_trace()
return ''


Expand Down

0 comments on commit 308b422

Please sign in to comment.