GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.pgcli.com — Develop DevelopThis is a guide for developers who would like to contribute to this project. First of all I'm flattered that you're interested in contributing. Second, my heart felt thanks for contributing. GitHub WorkflowThe source code is hosted by Github: https://github.com/dbcli/pgcli If you already know how to fork a project and send pull requests to it using github, you can safely skip this section. Github help has a pretty detailed documentation on how to use Github to fork and send pull requests to a repository. https://help.github.com/articles/fork-a-repo/ The basic steps are:
Local Development SetupIt is highly recommended to use virtualenv for development. If you don't know what a virtualenv is, this guide will help you get started. Create a virtualenv (let's call it pgcli-dev). Once the virtualenv is activated cd into the local clone of pgcli folder and install pgcli using pip as follows: $ pip install --editable . or $ pip install -e . This will install the necessary dependencies as well as install pgcli from the working folder into the virtualenv. By installing it using pip install -e we've linked the pgcli installation with the working copy. So any changes made to the code is immediately available in the installed version of pgcli. This makes it easy to change something in the code, launch pgcli and check the effects of your change. TestsThe tests are located in the tests directory in the pgcli project root. Tests are written using py.test testing framework. Install py.test by using pip install pytest in the virtualenv. Then execute the tests by calling py.test from the root of the project folder. A test runner called tox is used to run the tests in multiple Python environments. You can do pip install tox and call tox from the project root to run the tests in all 3 python versions. If you'd like to run just one of the test files (say test_sqlcompletion.py) then cd into the tests folder and execute py.test test_sqlcompletion.py to run just the tests from that file or tox test_sqlcompletion.py to run the tests in that file in all three Python versions. The tests are also run via Travis CI when a new Pull Request is opened. If you have a change and it happens to be failing on one of the Python version (typically on Python 3), don't worry about it. Just open a pull request and we can help you get it fixed before merging. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |