Skip to content

Commit 7f6b15c

Browse files
Merge branch 'master' of github.com:jamesatjaminit/PyRIGS
2 parents bb84bba + fa60c44 commit 7f6b15c

File tree

10 files changed

+1806
-2378
lines changed

10 files changed

+1806
-2378
lines changed

.github/workflows/django.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,42 @@ jobs:
1818
- name: Install build dependencies
1919
run: |
2020
sudo apt-get install libcairo2-dev
21-
- name: Set up Python
21+
22+
- name: "Set up Python"
2223
uses: actions/setup-python@v5
2324
with:
24-
python-version: "3.10"
25-
cache: 'pipenv'
25+
python-version-file: ".python-version"
26+
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v6
29+
2630
- name: Install Dependencies
27-
run: |
28-
python3 -m pip install --upgrade pip pipenv
29-
pipenv install -d
30-
# if: steps.pcache.outputs.cache-hit != 'true'
31+
run: uv sync --locked --all-extras --dev
32+
3133
- name: Cache Static Files
3234
id: static-cache
3335
uses: actions/cache@v4
3436
with:
3537
path: 'pipeline/built_assets'
3638
key: ${{ hashFiles('package-lock.json') }}-${{ hashFiles('pipeline/source_assets') }}
39+
3740
- uses: bahmutov/npm-install@v1
3841
if: steps.static-cache.outputs.cache-hit != 'true'
3942
- run: node node_modules/gulp/bin/gulp build
4043
if: steps.static-cache.outputs.cache-hit != 'true'
4144
- name: Basic Checks
4245
run: |
43-
pipenv run pycodestyle . --exclude=migrations,node_modules
44-
pipenv run python3 manage.py check
45-
pipenv run python3 manage.py makemigrations --check --dry-run
46-
pipenv run python3 manage.py collectstatic --noinput
46+
uv run pycodestyle . --exclude=.venv,migrations,node_modules
47+
uv run python3 manage.py check
48+
uv run python3 manage.py makemigrations --check --dry-run
49+
uv run python3 manage.py collectstatic --noinput
4750
- name: Run Tests
48-
run: pipenv run pytest -n auto --cov
51+
run: uv run pytest -n auto --cov
4952
- uses: actions/upload-artifact@v4
5053
if: failure()
5154
with:
5255
name: failure-screenshots ${{ matrix.test-group }}
5356
path: screenshots/
5457
retention-days: 5
5558
- name: Coveralls
56-
run: pipenv run coveralls --service=github
59+
run: uv run coveralls --service=github

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.10

Pipfile

Lines changed: 0 additions & 98 deletions
This file was deleted.

Pipfile.lock

Lines changed: 0 additions & 2265 deletions
This file was deleted.

PyRIGS/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@
104104
if not DEBUG:
105105
import dj_database_url
106106

107-
DATABASES['default'] = dj_database_url.config()
107+
if env("FRANKENRIGS_DATABASE_URL") is not None:
108+
DATABASES['default'] = dj_database_url.config(env="FRANKENRIGS_DATABASE_URL")
109+
else:
110+
DATABASES['default'] = dj_database_url.config()
108111

109112
# Logging
110113
LOGGING = {

RIGS/templates/base_rigs.html

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,36 @@
66
{% load total_invoices_todo from filters %}
77

88
{% block titleheader %}
9-
<a class="navbar-brand" style="margin-left: auto; margin-right: auto;" href="/">RIGS</a>
9+
<style>
10+
.franken {
11+
font-family: Fontdiner Swanky;
12+
color: #00ff00;
13+
animation: glow 1.5s infinite alternate;
14+
}
15+
16+
@keyframes glow {
17+
0% {
18+
text-shadow: 0 0 5px #00ff00,
19+
0 0 10px #00ff00,
20+
0 0 20px #00ff00,
21+
0 0 40px #00ff00;
22+
}
23+
50% {
24+
text-shadow: 0 0 10px #00ff00,
25+
0 0 20px #00ff00,
26+
0 0 30px #00ff00,
27+
0 0 60px #00ff00;
28+
}
29+
100% {
30+
text-shadow: 0 0 5px #00ff00,
31+
0 0 10px #00ff00,
32+
0 0 20px #00ff00,
33+
0 0 40px #00ff00;
34+
}
35+
}
36+
</style>
37+
38+
<a class="navbar-brand" style="margin-left: auto; margin-right: auto;" href="/"><span class="franken">Franken</span>RIGS</a>
1039
{% endblock %}
1140

1241
{% block titleelements %}

pyproject.toml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
[project]
2+
name = "pyrigs"
3+
version = "0.1.0"
4+
description = "A Django-based event booking system designed for use by TEC PA and Lighting"
5+
readme = "README.md"
6+
requires-python = "~=3.10.0"
7+
dependencies = [
8+
"ansicolors~=1.1.8",
9+
"asgiref~=3.3.1",
10+
"backports.tempfile~=1.0",
11+
"backports.weakref~=1.0.post1",
12+
"beautifulsoup4~=4.9.3",
13+
"Brotli~=1.0.9",
14+
"cachetools~=4.2.1",
15+
"chardet~=4.0.0",
16+
"configparser~=5.0.1",
17+
"contextlib2~=0.6.0.post1",
18+
"cssselect~=1.1.0",
19+
"cssutils~=1.0.2",
20+
"dj-database-url~=0.5.0",
21+
"dj-static~=0.0.6",
22+
"Django~=3.2",
23+
"django-debug-toolbar~=4.0.0",
24+
"django-filter~=2.4.0",
25+
"django-ical~=1.7.1",
26+
"django-recurrence~=1.10.3",
27+
"django-registration-redux~=2.9",
28+
"django-reversion~=3.0.9",
29+
"django-widget-tweaks~=1.4.8",
30+
"django-htmlmin~=0.11.0",
31+
"envparse",
32+
"gunicorn~=22.0.0",
33+
"icalendar~=4.0.7",
34+
"idna~=3.7",
35+
"Markdown~=3.3.3",
36+
"msgpack~=1.0.2",
37+
"pep517~=0.9.1",
38+
"Pillow~=10.0.1",
39+
"premailer~=3.7.0",
40+
"progress~=1.5",
41+
"psutil~=5.8.0",
42+
"psycopg2-binary",
43+
"Pygments~=2.15.0",
44+
"pyparsing~=2.4.7",
45+
"PyPDF2~=1.27.5",
46+
"PyPOM~=2.2.4",
47+
"python-dateutil~=2.8.1",
48+
"pytoml~=0.1.21",
49+
"pytz~=2020.5",
50+
"reportlab",
51+
"requests~=2.32.3",
52+
"retrying~=1.3.3",
53+
"simplejson~=3.17.2",
54+
"six~=1.15.0",
55+
"soupsieve~=2.1",
56+
"sqlparse~=0.5.0",
57+
"static3~=0.7.0",
58+
"svg2rlg~=0.3",
59+
"tini~=3.0.1",
60+
"tornado~=6.3",
61+
"urllib3~=1.26.19",
62+
"whitenoise~=5.2.0",
63+
"yolk~=0.4.3",
64+
"zipp~=3.4.0",
65+
"zope.component~=4.6.2",
66+
"zope.deferredimport~=4.3.1",
67+
"zope.deprecation~=4.4.0",
68+
"zope.event~=4.5.0",
69+
"zope.hookable~=5.0.1",
70+
"zope.proxy~=4.3.5",
71+
"zope.schema~=6.0.1",
72+
"sentry-sdk",
73+
"diff-match-patch",
74+
"python-barcode",
75+
"django-hCaptcha",
76+
"importlib-metadata",
77+
"django-hcaptcha",
78+
"z3c.rml",
79+
"pikepdf",
80+
"django-queryable-properties",
81+
"django-mass-edit",
82+
"selenium~=4.9.1",
83+
"zope.interface",
84+
]
85+
86+
[dependency-groups]
87+
dev = [
88+
"pycodestyle~=2.9.1",
89+
"coveralls",
90+
"django-coverage-plugin",
91+
"pytest-cov",
92+
"pytest-django",
93+
"pluggy",
94+
"pytest-splinter",
95+
"pytest",
96+
"pytest-reverse",
97+
"pytest-xdist[psutil]",
98+
"PyPOM[splinter]",
99+
]

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[pycodestyle]
22
max-line-length = 320
3+
exclude = .venv

templates/base.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<meta name="theme-color" content="#3853a4">
1414
<meta name="color-scheme" content="light dark">
1515

16+
<link rel="preconnect" href="https://fonts.googleapis.com">
17+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
18+
<link href="https://fonts.googleapis.com/css2?family=Fontdiner+Swanky&display=swap" rel="stylesheet">
19+
1620
<link rel="icon" type="image/png" href="{% static 'imgs/pyrigs-avatar.png' %}">
1721
<link rel="apple-touch-icon" href="{% static 'imgs/pyrigs-avatar.png' %}">
1822

0 commit comments

Comments
 (0)