-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring pinax-wiki up to latest standards
- Loading branch information
Showing
33 changed files
with
298 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
[run] | ||
source = wiki | ||
omit = wiki/tests/* | ||
branch = 1 | ||
source = pinax | ||
omit = pinax/wiki/conf.py,pinax/wiki/tests/*,pinax/wiki/admin.py,pinax/wiki/migrations/* | ||
branch = true | ||
|
||
[report] | ||
omit = pinax/wiki/conf.py,pinax/wiki/tests/*,pinax/wiki/admin.py,pinax/wiki/migrations/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,45 @@ | ||
build | ||
dist | ||
.coverage | ||
.tox | ||
MANIFEST | ||
*.pyc | ||
*.egg-info | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
docs/_build/ | ||
*.eggs | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/_build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
language: python | ||
sudo: false | ||
python: | ||
- 2.7 | ||
- "2.7" | ||
- "3.2" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
env: | ||
- DJANGO=https://github.com/django/django/tarball/master | ||
- DJANGO=Django==1.6.5 | ||
- DJANGO=1.7 | ||
- DJANGO=1.8 | ||
- DJANGO=1.9 | ||
matrix: | ||
exclude: | ||
- python: "3.2" | ||
env: DJANGO=1.9 | ||
- python: "3.3" | ||
env: DJANGO=1.9 | ||
- python: "3.5" | ||
env: DJANGO=1.7 | ||
install: | ||
- pip install $DJANGO flake8 coverage coveralls | ||
- pip install -e . | ||
- pip install tox coveralls | ||
script: | ||
- flake8 --max-line-length=125 --max-complexity=10 --statistics --benchmark wiki | ||
- coverage run setup.py test | ||
- coverage report | ||
after_success: coveralls | ||
- tox -e py${TRAVIS_PYTHON_VERSION//[.]/}-$DJANGO | ||
after_success: | ||
- coveralls | ||
notifications: | ||
irc: | ||
channels: | ||
- "chat.freenode.net#pinax" | ||
on_success: change | ||
on_failure: change | ||
use_notice: true | ||
slack: pinax:TMipYjcCCRxrKQFXk8I9cHLS |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
import django | ||
|
||
from django.conf import settings | ||
|
||
|
||
DEFAULT_SETTINGS = dict( | ||
INSTALLED_APPS=[ | ||
"django.contrib.auth", | ||
"django.contrib.contenttypes", | ||
"django.contrib.sites", | ||
"wiki", | ||
"wiki.tests" | ||
], | ||
DATABASES={ | ||
"default": { | ||
"ENGINE": "django.db.backends.sqlite3", | ||
"NAME": ":memory:", | ||
} | ||
}, | ||
SITE_ID=1, | ||
ROOT_URLCONF="wiki.tests.urls", | ||
SECRET_KEY="notasecret", | ||
) | ||
|
||
|
||
def run(*args): | ||
if not settings.configured: | ||
settings.configure(**DEFAULT_SETTINGS) | ||
|
||
django.setup() | ||
|
||
parent = os.path.dirname(os.path.abspath(__file__)) | ||
sys.path.insert(0, parent) | ||
|
||
django.core.management.call_command( | ||
"makemigrations", | ||
"pinax_wiki", | ||
*args | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
run(*sys.argv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from pkgutil import extend_path | ||
__path__ = extend_path(__path__, __name__) # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import pkg_resources | ||
|
||
|
||
default_app_config = "pinax.wiki.apps.AppConfig" | ||
__version__ = pkg_resources.get_distribution("pinax-wiki").version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import importlib | ||
|
||
from django.apps import AppConfig as BaseAppConfig | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
|
||
class AppConfig(BaseAppConfig): | ||
|
||
name = "pinax.wiki" | ||
label = "pinax_wiki" | ||
verbose_name = _("Pinax Wiki") | ||
|
||
def ready(self): | ||
importlib.import_module("pinax.wiki.receivers") |
Oops, something went wrong.