GithubHelp home page GithubHelp logo

taskbuster's Introduction

taskbuster

First Python Project: http://www.marinamele.com/taskbuster-django-tutorial

pip3 python3 django 1.8 selenium

Environment Mangemment

pyvenv

Create a new virtual environment

$> cd taskbuster/env
$> pyvenv myenv
[creates myenv virtual environment directory]
$> source taskbuster/env/myenv/bin/activate
[activates myenv virutal environment]
$> deactivate

Add a dependency to a virutal environment

$> source taskbuster/env/taskbuster_test/bin/activate
$> pip install mypackage
$> pip freeze
[shows installed packages]
$> deactivate

virtualenv

Create directory for virutal environments

$> mkdir ~/.pyvirtualenvs

Install virutalenv and virtualenvwrapper

$> pip3 install virtualenv virtualenvwrapper

Add the following to .bash_profile

export WORKON_HOME=$HOME/.pyvirtualenvs
export PROJECT_HOME=$HOME/Development/git
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
source /usr/local/bin/virtualenvwrapper.sh

Create a requriements directory and file per environment

$> mkdir requriements
$> touch requriements/{base.txt,env1.txt,env2.txt}

Make each env inherit from base

$> echo "-r base.txt" | tee -a env1.txt env2.txt

Specify shared dependencies in base.txt, and and environment specific dependencies in the appropriate env file.

$> echo "sharedDependency==1.0" >> requriements/base.txt
$> echo "env1Dependency==1.0" >> requriements/env1.txt

Init environment & dependencies for the first time

mkvirtualenv env1
pip install -r requriements/env1.txt

Load & unload an environment

workon env1
workon env2
deactivate

Run tests

$> source taskbuster/env/taskbuster_test/bin/activate
$> python manage.py runserver
[check localhost:8000]
$> python functional_tests/all_users.py
[tests should pass]
$> deactivate

taskbuster's People

Contributors

reetu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.