[flake8]
ignore = E123,E127,E121
# E123: closing bracket must match indent of starting bracket
# E127 continuation line over-indented for visual indent
# E121 continuation line indentation is not a multiple of four
>>> print locals() # noqa
>>> import pkg_resources
>>> pkg_resources.get_distribution('foobar').version
1.0
[nosetests]
with-coverage=1
cover-package=mypackage
cover-min-percentage=100
cover-erase=1
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- pypy
install:
- python setup.py dev
script:
- make test -k
after_success: - coveralls
>>> from webtest import TestApp >>> app = TestApp(wsgi_application)
>>> response = app.get('/') >>> response.mustcontain('') >>> assert response.status_int == 200 >>> response2 = response.click('Submit') >>> response2.html.find_all('a') []
$ cat setup.py
extras_require={
'test': [
'nose',
'nose-selecttests',
'coverage',
'unittest2',
'flake8',
],
'development': [
'zest.releaser',
'check-manifest',
],
},
[aliases]
dev = develop easy_install mypackage [test,development]
.PHONY: nosetests test flake8
all: bin/python test test: nosetests flake8
bin/python:
@virtualenv .
@bin/python setup.py dev nosetests: @echo "==== Running nosetests ====" @nosetests flake8: @echo "==== Running Flake8 ====" @flake8 mypackage *.py
$ pip install zest.releaser
$ pip install check-manifest
$ bin/fullrelease
$ mr.bob -O project_name bobtemplates.ielectric:templates/pyramid
Welcome to mr.bob interactive mode. Before we generate directory structure, some questions need to be answered.
Answer with a question mark to display help.
Values in square brackets at the end of the questions show the default value if there is no answer.
--> Dotted name of the package?: projectname.foobar
...
Generated file structure at /home/ielectric/dev/foo