Code Monkey home page Code Monkey logo

pypicalc2's Introduction

PyPI Calc 2

https://circleci.com/gh/rsyring/pypicalc2.svg?&style=shield https://codecov.io/github/rsyring/pypicalc2/coverage.svg?branch=master

Created as a companion application for Testing Application Boundaries presentation at Code PaLOUsa 2016.

Environment Assumptions

  • Python 3.4.x
  • You have a PostgreSQL server available, preferably with user/password/db setup according to bookorders.conf:TestProfile
  • You have a recent version of Tox installed at the system or user level.

Running Tests

  • Make sure your DB settings match what is in config.py:TestProfile OR see next section.
  • Run tox in the source directory.

Local Configuration Changes

In order to set configuration for your local environment, create <project root>/bookorders-config.py as below, changing db creds as needed:

DEFAULT_PROFILE = 'DevProfile'


class DevProfile(object):
    # secret key for Flask (fill it in with something random)
    SECRET_KEY = ''

    KEG_KEYRING_ENABLE = False

    SQLALCHEMY_DATABASE_URI = 'postgresql://pypicalc2:pypicalc2@localhost/pypicalc2'


class TestProfile(object):
    SQLALCHEMY_DATABASE_URI = 'postgresql://test:test@localhost/test'

Python 3 Gotchas

Since this is a Python 3 project, take note of the following:

  • The wheelhouse uses the "pip" executable. You will likely have to be in a virtualenv for this to work since "pip" will usually point to the python 2 system version of pip.

Virtualenv Setup

This project uses a wheelhouse. Therefore, you should consider virtualenvs temporary. In order to easily get a virtualenv setup when you are ready to work on the project, run:

source scripts/make-env-vex.sh

pypicalc2's People

Contributors

rsyring avatar

Stargazers

Damon Romano. avatar

Watchers

 avatar James Cloos avatar Ben King avatar Tina Maddox 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.