-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
908 additions
and
532 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,9 +1,10 @@ | ||
*.pyc | ||
*~ | ||
*.swp | ||
coverage/* | ||
build/* | ||
*.egg-info | ||
coverage*/ | ||
build/ | ||
mydatabase | ||
docs/_build/* | ||
docs/_build/ | ||
MANIFEST | ||
dist/ |
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,66 @@ | ||
CHANGES | ||
======= | ||
|
||
2.0 (unreleased) | ||
------------------ | ||
|
||
- **Backward incompatible:** ``env_settings.py`` is required and contains | ||
the settings that ``fabfile.py`` used to have. It is written in the normal | ||
Django settings.py style of variable assignments. | ||
|
||
- **Backward incompatible:** ``tasks.py`` is required and replaces the | ||
previously required ``fabfile.py``. It no longer defines Django settings | ||
(now handled in ``env_settings.py``). | ||
|
||
- **Backward incompatible:** switched from Fabric to Invoke, so the ``fab`` | ||
command is replaced with ``invoke``. | ||
|
||
- **Backward incompatible:** Lettuce testing support is gone. | ||
|
||
- **Backward incompatible:** the Sphinx documentation command ``docs`` is gone. | ||
|
||
- **Backward incompatible:** remove ``assertInContext``, ``assertNone``, | ||
``assertIsA`` and ``assertDoesNotHave``. Some of these duplicated native | ||
Python methods and the potential confusion was greater than the benefit. | ||
|
||
- **Backward incompatible:** individual components need to specify the | ||
``fudge`` requirement if they need it. | ||
|
||
- **Backward incompatible:** Fix ``generate_random_users()`` and turn it | ||
into a generator. | ||
|
||
- **Backward incompatible:** remove ``concrete`` decorators. The Armstrong | ||
standard practice is to use "support" models when necessary in testing, | ||
which are much easier to use and understand. | ||
|
||
- Setuptools is explictly used. This is not a backwards incompatible change | ||
because anything installed with Pip was automatically and transparently | ||
using Setuptools/Distribute *anyway*. We rely on setup kwargs that Distutils | ||
doesn't support and that only worked because of Pip's behind the scenes swap. | ||
This allowed us to remove boilerplate and better prepares us for Python 3 | ||
and perhaps even more simplifying refactors. Functionally though, this | ||
doesn't change anything. | ||
|
||
- Drop the atypical VirtualDjango in favor of the ``settings.configure()`` | ||
Django bootstrapping method. | ||
|
||
- Bare minimum package requirements for as-fast-as-possible virtualenv | ||
creation. Even Invoke is optional when running tests. Individual tasks | ||
can specify package requirements and will nicely message their needs if | ||
the package is not installed. | ||
|
||
- Run any Django ``manage.py`` command from import or the CLI with | ||
component-specific settings bootstrapped in. | ||
|
||
- Run tests with arguments. Use any args that ``manage.py test`` accepts | ||
to run only specific test cases, change output verbosity, etc. | ||
|
||
- Coverage testing is ready for multiple environments at once (like with Tox). | ||
|
||
- Use (and backport) the Django 1.6 test runner. This standardizes testing | ||
in favor of the newest method so we don't need to be cognizant of the current | ||
Django version as we test across multiple versions. Bonus: because the new | ||
runner is explicit about test discovery, drop the ``TESTED_APP`` code. | ||
|
||
- New ``remove_armstrong`` task command to uninstall every Armstrong component | ||
(except for ArmDev). |
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,5 @@ | ||
include LICENSE | ||
include README.rst | ||
include CHANGES.rst | ||
include package.json | ||
include armstrong/cli/templates/standard/requirements/*.txt | ||
prune 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
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,2 +1 @@ | ||
from pkgutil import extend_path | ||
__path__ = extend_path(__path__, __name__) | ||
__import__('pkg_resources').declare_namespace(__name__) |
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,2 +0,0 @@ | ||
from pkgutil import extend_path | ||
__path__ = extend_path(__path__, __name__) | ||
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,53 @@ | ||
""" | ||
Default settings for Armstrong components running in a dev/test environment | ||
A component may (and might have to) override or supply additional settings | ||
by creating an `env_settings.py` file in its root directory that imports | ||
from this file. | ||
from armstrong.dev.default_settings import * | ||
""" | ||
# Since we are using configure() we need to manually load the defaults | ||
from django.conf.global_settings import * | ||
|
||
# Grab our package information | ||
import json | ||
package = json.load(open("./package.json")) | ||
app_name = package['name'].rsplit('.', 1)[1] | ||
|
||
# | ||
# Armstrong default settings | ||
# | ||
DEBUG = True | ||
INSTALLED_APPS = [package['name']] | ||
DATABASES = { | ||
"default": { | ||
"ENGINE": "django.db.backends.sqlite3", | ||
"NAME": 'mydatabase' | ||
} | ||
} | ||
TEST_RUNNER = "armstrong.dev.tests.runner.ArmstrongDiscoverRunner" | ||
|
||
COVERAGE_EXCLUDE_FILES = ['*/migrations/*'] | ||
|
||
# Add a DEBUG console "armstrong" logger | ||
LOGGING = { | ||
'version': 1, | ||
'disable_existing_loggers': False, | ||
'formatters': { | ||
'basic': {'format': '%(levelname)s %(name)s--%(message)s'} | ||
}, | ||
'handlers': { | ||
'console': { | ||
'class': 'logging.StreamHandler', | ||
'formatter': 'basic' | ||
} | ||
}, | ||
'loggers': { | ||
'armstrong': { | ||
'level': 'DEBUG', | ||
'handlers': ['console'] | ||
} | ||
} | ||
} |
Oops, something went wrong.