-
Notifications
You must be signed in to change notification settings - Fork 0
/
rav.yaml
66 lines (55 loc) · 3.5 KB
/
rav.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
scripts:
create_venvs:
- python3.11 -m venv venv-py311
- python3.10 -m venv venv-py310
- python3.9 -m venv venv-py39
- python3.8 -m venv venv-py38
- python3.7 -m venv venv-py37
install_pip_tools:
- venv/bin/python -m pip install pip-tools pip --upgrade
- venv-py311/bin/python -m pip install pip-tools pip --upgrade
- venv-py310/bin/python -m pip install pip-tools pip --upgrade
- venv-py39/bin/python -m pip install pip-tools pip --upgrade
- venv-py38/bin/python -m pip install pip-tools pip --upgrade
- venv-py37/bin/python -m pip install pip-tools pip --upgrade
compile_django41:
- venv/bin/python -m piptools compile --output-file requirements/requirements.txt --upgrade requirements/requirements-41.in
- venv-py311/bin/python -m piptools compile --output-file requirements/py311-django41.txt --upgrade requirements/requirements-41.in
- venv-py310/bin/python -m piptools compile --output-file requirements/py310-django41.txt --upgrade requirements/requirements-41.in
- venv-py39/bin/python -m piptools compile --output-file requirements/py39-django41.txt --upgrade requirements/requirements-41.in
- venv-py38/bin/python -m piptools compile --output-file requirements/py38-django41.txt --upgrade requirements/requirements-41.in
compile_django40:
- venv-py311/bin/python -m piptools compile --output-file requirements/py311-django40.txt --upgrade requirements/requirements-40.in
- venv-py310/bin/python -m piptools compile --output-file requirements/py310-django40.txt --upgrade requirements/requirements-40.in
- venv-py39/bin/python -m piptools compile --output-file requirements/py39-django40.txt --upgrade requirements/requirements-40.in
- venv-py38/bin/python -m piptools compile --output-file requirements/py38-django40.txt --upgrade requirements/requirements-40.in
compile_django32:
- venv-py311/bin/python -m piptools compile --output-file requirements/py311-django32.txt --upgrade requirements/requirements-32.in
- venv-py310/bin/python -m piptools compile --output-file requirements/py310-django32.txt --upgrade requirements/requirements-32.in
- venv-py39/bin/python -m piptools compile --output-file requirements/py39-django32.txt --upgrade requirements/requirements-32.in
- venv-py38/bin/python -m piptools compile --output-file requirements/py38-django32.txt --upgrade requirements/requirements-32.in
- venv-py37/bin/python -m piptools compile --output-file requirements/py37-django32.txt --upgrade requirements/requirements-32.in
pip-compile:
- rav run compile_django41
- rav run compile_django40
- rav run compile_django32
venv-pip-install:
- venv/bin/python -m pip install -r requirements/py311-django41.txt
example_user:
- venv/bin/python example/manage.py migrate
- DJANGO_SUPERUSER_PASSWORD=admin venv/bin/python example/manage.py createsuperuser --noinput --username admin --email [email protected] || true
migrations:
- venv/bin/python example/manage.py makemigrations django_namespaces
- venv/bin/python example/manage.py migrate
install:
- venv/bin/python -m pip uninstall django-namespaces -y
- venv/bin/python -m pip install -e . --upgrade --no-cache-dir
- venv/bin/python example/manage.py makemigrations django_namespaces
- venv/bin/python example/manage.py migrate
check:
- venv/bin/python setup.py sdist bdist_wheel
- venv/bin/twine check dist/*
push:
- rm -rf dist/ || true
- venv/bin/python setup.py sdist bdist_wheel
- venv/bin/twine upload dist/*