Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break requirements.txt into environment specific modules #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ git clone https://github.com/psf/python-in-edu.git
cd python-in-edu
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -r requirements/dev.txt
```

You can then change directories into the python-in-edu folder and build the database:
Expand Down
25 changes: 4 additions & 21 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
asgiref==3.3.1
confusable-homoglyphs==3.2.0
dj-database-url==0.5.0
Django==3.1.6
django-djconfig==0.10.0
django-haystack==3.0
django-heroku==0.3.1
django-infinite-scroll-pagination==1.1.0
django-multiselectfield==0.1.12
django-registration==3.1.1
django-spirit==0.12.2
gunicorn==20.0.4
mistune==0.8.4
olefile==0.46
Pillow==8.0.1
psycopg2==2.8.6
python-dotenv==0.15.0
pytz==2021.1
sqlparse==0.4.1
whitenoise==5.2.0
Whoosh==2.7.4
# This file is required by Heroku and should not be installed locally
#
# See our README for getting started locally.
-r requirements/prod.txt
10 changes: 10 additions & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Django==3.1.6
django-djconfig==0.10.0
django-haystack==3.0
django-multiselectfield==0.1.12
django-registration==3.1.1
django-spirit==0.12.2
dj-database-url==0.5.0
gunicorn==20.0.4
python-dotenv==0.15.0
whitenoise==5.2.0
3 changes: 3 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r base.txt

# Add dependencies specific to development below
3 changes: 3 additions & 0 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r base.txt

psycopg2==2.8.6