Skip to content

Commit 8ef8b61

Browse files
Merge pull request #44 from FSU-ACM/dev
Spring '25 updates
2 parents c276dc3 + e13cbcd commit 8ef8b61

File tree

34 files changed

+1018
-1394
lines changed

34 files changed

+1018
-1394
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Make sure that shell scripts always use LF -- Windows likes to automatically change it to CRLF
2+
*.sh text eol=lf
3+
4+
# Make sure Python scripts aren't modified either
5+
*.py text eol=lf

.github/workflows/pylint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.8", "3.9", "3.10"]
10+
python-version: ["3.10", "3.11", "3.12"]
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: Set up Python ${{ matrix.python-version }}

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Programming-Contest-Suite/
6161
├── register/
6262
├── static/
6363
├── templates/
64-
├── bot.py
6564
└── manage.py
6665
```
6766

@@ -77,7 +76,6 @@ Programming-Contest-Suite/
7776
- `register`: user account registration and team creation
7877
- `static`: target directory for all project static files upon deployment (placeholder dir)
7978
- `templates`: target directory for all project HTML templates upon deployment
80-
- `bot.py`: Discord bot which assists in LFG profile verification
8179
- `manage.py`: Django management entrypoint
8280

8381
## Testing & Development Server

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10-slim
1+
FROM python:3.12-slim
22
LABEL maintainer="ACM at FSU <contact@fsu.acm.org>"
33

44
ENV PYTHONUNBUFFERED=1

Pipfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ django-import-export = "*"
1212
celery = "*"
1313
gunicorn = "*"
1414
six = "*"
15-
"discord.py" = "<2.0"
1615
requests = "*"
1716
django-hashid-field = "*"
1817
django-celery-beat = "*"
19-
channels = "*"
2018
flower = "*"
19+
discord-py = "==2.5.0"
2120

2221
[dev-packages]
2322

2423
[requires]
25-
python_version = "3.10"
24+
python_version = "3.12"

Pipfile.lock

Lines changed: 846 additions & 714 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
The Programming Contest Suite (PCS) is a set of tools for running [ICPC](https://icpc.global) style programming competitions hosted by the [Association for Computing Machinery Florida State University Student Chapter](https://fsu.acm.org). The suite is designed to work with a [DOMJudge](https://www.domjudge.org/) jury system by facilitating contest registration and management, generating contestant data files required by DOMjudge, and processing contest results.
44

5-
### Development Update: January 2024
6-
7-
Future development of this project has been handed off to the ACM at FSU chapter. Please reference `CONTRIBUTING.md` for additional information.
8-
95
# Features
106

117
### Contestants
@@ -101,3 +97,5 @@ We welcome contributions to the project! Check out `CONTRIBUTING.md` to learn ho
10197
- [Marlan McInnes-Taylor](https://github.com/mmcinnestaylor) *Creator*
10298
- [Daniel Riley](https://github.com/danielmriley)
10399
- [Preston Horne](https://github.com/prestonmhorne)
100+
- [Hoang Vu](https://github.com/hoangvu5)
101+
- [Aidan Collins](https://github.com/getsbuffer)

deploy/docker-compose.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ services:
1414
SQL_DATABASE: contestsuite
1515
SQL_USER: contestadmin
1616
SQL_PASSWORD: seminoles1!
17-
18-
# Discord
19-
GUILD_ID: # Discord Server ID
2017
ports:
2118
- 8000:8000
2219
volumes:
@@ -29,29 +26,6 @@ services:
2926
- rabbitmq
3027
- celery_worker
3128
restart: unless-stopped
32-
scrape_bot:
33-
image: contestsuite:dev
34-
command: /docker/start.sh bot
35-
environment:
36-
# Django
37-
DEBUG: 'True'
38-
39-
# Database
40-
SQL_DATABASE: contestsuite
41-
SQL_USER: contestadmin
42-
SQL_PASSWORD: seminoles1!
43-
44-
# Discord
45-
BOT_CHANNEL: # Name of command channel
46-
GUILD_ID: # Discord Server ID
47-
SCRAPE_BOT_TOKEN: # Token for the member list scraping bot
48-
volumes:
49-
- ../src:/app
50-
networks:
51-
- contestsuite
52-
depends_on:
53-
- mariadb
54-
- django
5529
celery_worker:
5630
image: contestsuite:dev
5731
command: /docker/start.sh worker debug
@@ -66,7 +40,6 @@ services:
6640

6741
# Discord
6842
ANNOUNCEMENT_WEBHOOK_URL: # Webhook URL of the contest announcements channel
69-
BOT_CHANNEL_WEBHOOK_URL: # Webhook URL of the bot command channel
7043
volumes:
7144
- ../src:/app
7245
networks:

docs/deployment/configuration.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The following variables, located in the main settings file[^1], map to various C
8585

8686
Variable | Default | Description
8787
---|---|---
88-
CELERY_BEAT_SCHEDULE | `{'cleanup-lfg-rosters': {'task': 'lfg.tasks.cleanup_lfg_rosters', 'schedule': 600.0,}, 'scrape-discord-members': {'task': 'lfg.tasks.scrape_discord_members', 'schedule': 1800.0,}, 'verify-lfg-profiles': { 'task': 'lfg.tasks.verify_lfg_profiles', 'schedule': 600.0,},}` | [Docs](https://docs.celeryq.dev/en/stable/userguide/configuration.html#std-setting-beat_schedule)
88+
CELERY_BEAT_SCHEDULE | `{}` | [Docs](https://docs.celeryq.dev/en/stable/userguide/configuration.html#std-setting-beat_schedule)
8989

9090
## Flower
9191

@@ -106,9 +106,6 @@ The following variables, located in the main settings file[^1], map to various P
106106
Variable | Default | Description
107107
---|---|---
108108
ANNOUNCEMENT_WEBHOOK_URL | None | URL of Discord server's announcement channel webhook |
109-
BOT_CHANNEL_WEBHOOK_URL | None | URL of Discord server's bot command channel webhook |
110-
GUILD_ID | 0 | Discord server's Guid ID |
111-
SCRAPE_BOT_TOKEN | None | Discord bot token required by the LFG helper bot |
112109

113110
## Misc
114111

docs/deployment/docker/docker_compose.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ services:
2525
SQL_DATABASE: contestsuite
2626
SQL_USER: contestadmin
2727
SQL_PASSWORD: seminoles1!
28-
29-
# Discord
30-
GUILD_ID: # Discord Server ID
3128
ports:
3229
- 8000:8000
3330
volumes:
@@ -40,29 +37,6 @@ services:
4037
- rabbitmq
4138
- celery_worker
4239
restart: unless-stopped
43-
scrape_bot:
44-
image: contestsuite:dev
45-
command: /docker/start.sh bot
46-
environment:
47-
# Django
48-
DEBUG: 'True'
49-
50-
# Database
51-
SQL_DATABASE: contestsuite
52-
SQL_USER: contestadmin
53-
SQL_PASSWORD: seminoles1!
54-
55-
# Discord
56-
BOT_CHANNEL: # Name of command channel
57-
GUILD_ID: # Discord Server ID
58-
SCRAPE_BOT_TOKEN: # Token for the member list scraping bot
59-
volumes:
60-
- ../src:/app
61-
networks:
62-
- contestsuite
63-
depends_on:
64-
- mariadb
65-
- django
6640
celery_worker:
6741
image: contestsuite:dev
6842
command: /docker/start.sh worker debug
@@ -77,7 +51,6 @@ services:
7751

7852
# Discord
7953
ANNOUNCEMENT_WEBHOOK_URL: # Webhook URL of the contest announcements channel
80-
BOT_CHANNEL_WEBHOOK_URL: # Webhook URL of the bot command channel
8154
volumes:
8255
- ../src:/app
8356
networks:

0 commit comments

Comments
 (0)