-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformat everything using black; form->form_class; drop old stuff; co…
…mpletely rebuild .travis.yml
- Loading branch information
Showing
21 changed files
with
552 additions
and
506 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 |
---|---|---|
|
@@ -9,3 +9,6 @@ | |
/dist | ||
/form_designer.egg-info | ||
venv | ||
.tox | ||
.coverage | ||
htmlcov |
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,17 +1,45 @@ | ||
language: python | ||
dist: xenial | ||
sudo: false | ||
language: python | ||
cache: pip | ||
python: | ||
- "3.4" | ||
- "2.7" | ||
env: | ||
- REQ='Django>=1.8,<1.9 FeinCMS>=1.11,<1.12' | ||
- REQ='Django>=1.9,<1.10 FeinCMS>=1.12' | ||
- REQ='Django>=1.10,<1.11 FeinCMS>=1.12' | ||
- REQ='Django>=1.11,<2.0 FeinCMS>=1.12' | ||
- 3.7 | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- python: 3.7 | ||
env: REQ="https://github.com/django/django/archive/master.zip#egg=Django" | ||
- python: 3.7 | ||
env: REQ="Django>=2.2a1,<3.0" | ||
- python: 3.6 | ||
env: REQ="Django>=2.2a1,<3.0" | ||
- python: 3.5 | ||
env: REQ="Django>=2.2a1,<3.0" | ||
- python: 3.7 | ||
env: REQ="Django>=2.1,<2.2" | ||
- python: 3.7 | ||
env: REQ="Django>=2.0,<2.1" | ||
- python: 3.7 | ||
env: REQ="Django>=1.11,<2.0" | ||
- python: 3.6 | ||
env: REQ="Django>=1.11,<2.0" | ||
- python: 3.5 | ||
env: REQ="Django>=1.11,<2.0" | ||
- python: 3.4 | ||
env: REQ="Django>=1.11,<2.0" | ||
- python: 2.7 | ||
env: REQ="Django>=1.11,<2.0" | ||
- python: 3.7 | ||
env: REQ="black flake8" | ||
install: | ||
- pip install black flake8 | ||
script: | ||
- flake8 . | ||
- black --check form_designer tests | ||
allow_failures: | ||
- env: REQ="https://github.com/django/django/archive/master.zip#egg=Django" | ||
install: | ||
- pip install -U pip wheel | ||
- pip install $REQ django-mptt Pillow | ||
- pip install $REQ FeinCMS django-mptt Pillow | ||
- python setup.py install | ||
# command to run tests, e.g. python setup.py test | ||
script: "cd tests && ./manage.py test testapp" | ||
script: cd tests && ./manage.py test -v2 testapp |
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
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,23 +1,4 @@ | ||
VERSION = (0, 12, 0) | ||
__version__ = '.'.join(map(str, VERSION)) | ||
__version__ = ".".join(map(str, VERSION)) | ||
|
||
default_app_config = 'form_designer.apps.FormDesignerConfig' | ||
|
||
# Do not use Django settings at module level as recommended | ||
try: | ||
from django.utils.functional import LazyObject | ||
except ImportError: | ||
pass | ||
else: | ||
class LazySettings(LazyObject): | ||
def _setup(self): | ||
from form_designer import default_settings | ||
self._wrapped = Settings(default_settings) | ||
|
||
class Settings(object): | ||
def __init__(self, settings_module): | ||
for setting in dir(settings_module): | ||
if setting == setting.upper(): | ||
setattr(self, setting, getattr(settings_module, setting)) | ||
|
||
settings = LazySettings() | ||
default_app_config = "form_designer.apps.FormDesignerConfig" |
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
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
Oops, something went wrong.