Setting up development Environment on Linux
—------------------------------—
$ sudo apt-get install libass-dev libpq-dev postgresql \
build-essential redis-server redis-tools
$ sudo apt-get install python3-pip python3-dev
$ sudo pip3 install virtualenvwrapper
$ echo "export VIRTUALENVWRAPPER_PYTHON=$(which python3.6)" >> ~/.bashrc
$ echo "alias v.activate=\"source $(which virtualenvwrapper.sh)\"" >> ~/.bashrc
$ source ~/.bashrc
$ v.activate
$ mkvirtualenv —python=$(which python3.6) —no-site-packages yasha
$ workon yasha
$ pip install -U pip setuptools wheel
So, your changes will affect instantly on the installed version
$ cd /path/to/workspace
$ git clone [email protected]:mehrdad1373pedramfar/yasha.git
$ cd yasha
$ pip install -e .
$ echo "eval \"\$(register-python-argcomplete yasha)\"" >> $VIRTUAL_ENV/bin/postactivate
Create a file named ~/.config/yasha.yml
db:
url: postgresql://postgres:postgres@localhost/yasha_dev
test_url: postgresql://postgres:postgres@localhost/yasha_test
administrative_url: postgresql://postgres:postgres@localhost/postgres