Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/frontend/emotion/sty…
Browse files Browse the repository at this point in the history
…led-11.13.0
  • Loading branch information
pushyamig authored Nov 11, 2024
2 parents adf75da + 642ca1a commit 02becf5
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 21 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
allow:
- dependency-type: "direct"
ignore:
- dependency-name: "django"
versions:
- "> 4.2" # This ignores versions above 4.2, allowing only 4.2.x LTS upgrades
# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/frontend"
Expand Down
22 changes: 22 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"version": "0.2.0",
"configurations": [

{
"name": "IPT Django",
"type": "debugpy",
"request": "attach",
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "/code"
}
],
"connect": {
"port": 5020,
"host": "localhost",
},
"justMyCode": false
}
]
}
15 changes: 15 additions & 0 deletions backend/debugpy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import os
import debugpy
import logging

def config_to_bool(value):
return str(value).lower() in ('true', '1', 'yes', 'on')

def check_and_enable_debugpy():
debugpy_enable = config_to_bool(os.getenv('DEBUGPY_ENABLE', False))
debugpy_address = '0.0.0.0'
debugpy_port = 5020

if debugpy_enable:
logging.debug('DEBUGPY: Enabled Listening on ({0}:{1})'.format(debugpy_address, debugpy_port))
debugpy.listen((debugpy_address, debugpy_port))
4 changes: 4 additions & 0 deletions backend/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

from django.core.wsgi import get_wsgi_application

from backend.debugpy import check_and_enable_debugpy

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')

check_and_enable_debugpy()

application = get_wsgi_application()
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.9"

services:
mysql:
image: mysql:8-oracle
Expand Down Expand Up @@ -31,6 +29,7 @@ services:
- ${HOME}/mylasecrets:/secrets
ports:
- "5000:5000"
- "5020:5020"
container_name: canvas_app_explorer
env_file:
- .env
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# FROM directive instructing base image to build upon
# This could be used as a base instead:
# https://hub.docker.com/r/nikolaik/python-nodejs
FROM python:3.8-slim
FROM python:3.10-slim-bookworm

# NOTE: requirements.txt not likely to change between dev builds
COPY requirements.txt .
Expand Down
20 changes: 11 additions & 9 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"eslint": "^8.20.0",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"mini-css-extract-plugin": "^2.6.1",
"mini-css-extract-plugin": "^2.9.2",
"ts-loader": "^9.3.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.4",
Expand Down
18 changes: 10 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
gunicorn==22.0.0
gunicorn==23.0.0
mysqlclient==2.1.1

# Django and related
Django==4.2.16
django-csp==3.7 # For Content Security Policy
django-db-file-storage==0.5.5 # Support for storage in the database
django-db-file-storage==0.5.6.1 # Support for storage in the database
django-mysql==4.15.0
django-tinymce==4.1.0 # Rich text editor
django-watchman==1.3
django-webpack-loader==1.6.0
Pillow==10.3.0
Pillow==11.0.0
whitenoise==6.2.0 # For serving static files

# DRF
djangorestframework==3.15.2
django-filter==22.1 # Filtering support
django-filter==24.3 # Filtering support
drf-spectacular==0.22.1
markdown==3.4.1 # Markdown support for the browsable API

# LTI
pycryptodome==3.19.1 # For generating LTI keys
PyLTI1p3==1.12.1
pycryptodome==3.21.0 # For generating LTI keys
PyLTI1p3==2.0.0

# Canvas
canvasapi==2.2.0
canvasapi==3.3.0

debugpy==1.8.8

# Not in pypi https://github.com/Harvard-University-iCommons/django-canvas-oauth
https://github.com/Harvard-University-iCommons/django-canvas-oauth/archive/v1.1.0.tar.gz
https://github.com/Harvard-University-iCommons/django-canvas-oauth/archive/v1.1.1.tar.gz

0 comments on commit 02becf5

Please sign in to comment.