Development Install
Contents
Development Install#
Installing with invoke#
First, create a virtualenv for the project using python,
conda,
virtualenvwrapper,
VS Code, or whichever manner you choose.
Once it’s created, make sure your venv is active. This project uses the invoke task runner to automate development tasks, and we’ll use invoke to create your environment. At this time, the tasks are configured to work in a linux (and probably mac osx) environment.
# clone the repository
git clone https://github.com/adelphi-ed-tech/nycschools.git
cd nycschools
# install the development requirements
pip install -r requirements.txt
# run the development install task
invoke install-dev
Manual dev install#
If invoke isn’t working for you or you are setting up on windows, you can get up and running with these steps:
Get the repo:
git clone https://github.com/adelphi-ed-tech/nycschools.gitMove into the project directory.
Create a
venvfor your project and activate it.Install the project requirements with
piporconda. These are found inrequirements.txtRun:pip install -r requirements.txtInstall the library from source in development mode. Run:
pip install -e .[dev]Download the data with the interactive installer. Run:
python -m nycschools.dataloader -dFollow the directions from the regular install to configure environment variables.