Commit Graph

19 Commits

Author SHA1 Message Date
Monty Taylor 1f2eef510f Updated from global requirements
Change-Id: I2e2bd3a38458e1307bcc0410da74dc76c0a5987a
2013-08-10 10:49:11 -07:00
Alex Meade aa2ff9a2b7 Flake8 should ignore build folder
This adds 'build' to the exclude list for flake8

Fixes bug 1198329

Change-Id: Ia662f93db6c86c0aedfbc44632a56cd8667df469
2013-07-05 17:05:49 -04:00
Dirk Mueller 62579fbb21 Start using Pyflakes and Hacking
Instead of globally ignoring pyflakes and
hacking warnings, only blacklist those that trigger
very frequently so far, in order to clean them
up in followup commits. Fix and start gating
on the rest already.

Change-Id: Ied7c7250061e3bf379e8286e8ce3b9e4af817faf
2013-06-22 16:00:26 +02:00
Jenkins a7bc8fe9f6 Merge "python3: Introduce py33 to tox.ini" 2013-06-11 00:27:17 +00:00
Chuck Short b586957e1c python3: Introduce py33 to tox.ini
Introduce py33 to tox.ini to make testing with
python3 easier.

Change-Id: I11801a5b3fd736d8e647a8a7152e498f505108f6
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-01 19:57:47 -05:00
Zhenguo Niu 40460cbeb1 Rename requires files to standard names.
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files, and tools in the
general world are growing intelligence about them.

Change-Id: Ic220b54de5ce7c15f442b8ffcb97cd03c2344f9a
Fixes: bug #1179008
2013-05-29 17:26:33 +08:00
Monty Taylor ca17541f33 Migrate to flake8.
Fixes bug 1172444.

Change-Id: Icec0820d0f780ed9473218b7e46e29c1e3db6541
2013-05-18 08:29:02 -07:00
Monty Taylor c5e9426bb5 Migrate to testr.
Part of blueprint grizzly-testtools

Change-Id: I9a12f0300e2731a6ee0a82e1f9737a6b83aa5d85
2013-01-16 18:39:18 -05:00
Clark Boylan d004b1a73a Fix coverage reporting test.
A change was committed that modified the
glanceclient.common.__init__.py file that seems to conflict with the
NOSE_WITH_COVERAGE environment variable. Run the coverage tests like
novaclient and swiftclient to get around this problem.

Change-Id: Id9a655a0207d3b16a619972ebaecc87387cf784e
2012-07-27 14:39:58 -07:00
Monty Taylor c315c5274f Latest setup goodness.
Upgrade the common setup code to the latest versions, and use setuptools-git
for sdist tarball generation.

Change-Id: I81eca9199b7d330ef8ec80482565a75f8475a78c
2012-07-11 12:21:29 -05:00
Brian Waldon 1c3db6c756 Minimize tox.ini
Change-Id: I77d0873cbd789726b93b059429d742f1cbdc57c1
2012-06-07 14:51:29 -07:00
Brian Waldon 0935e38113 Add tests dir to pep8 command
Change-Id: I28120c67e157277202976696eea37023fb719d6d
2012-06-07 14:37:56 -07:00
Brian Waldon bcff183f9a Set pep8 dependency at v1.2
Additionally, remove the pep8 dep override in tox.ini so the dep we
set in tools/test-requires is actually used

Change-Id: Iceb6d7a5dd8eceeebc1408e8a5edfabb48462d3e
2012-06-04 09:12:36 -07:00
James E. Blair ae58edcba7 Use tox for running tests locally.
See: http://wiki.openstack.org/ProjectTestingInterface

Tox can manage virtualenvs, and is currently doing so for running
tests in Jenkins.  It's just as, or more, useful for running tests
locally, so this starts the migration from the run_tests system to
tox.  The goal is to reduce duplicate testing infrastructure, and
get what's running locally on developer workstations as close to
what is run by Jenkins as possible.

This patch removes run_tests.py, and the scripts that manage .venv.
It makes run_tests.sh call tox to facilitate the transition for
developers used to typing "run_tests.sh".

Developers will need tox installed on their workstations.  It can
be installed from PyPI with "pip install tox".  run_tests.sh outputs
those instructions if tox is not present.

New facilities are available using tox directly, including:

  tox -e py26  # run tests under python 2.6
  tox -e py27  # run tests under python 2.7
  tox -e pep8  # run pep8 tests
  tox          # run all of the above
  tox -e venv foo  # run the command "foo" inside a virtualenv

The configuration of the openstack nose plugin is removed from
setup.cfg and added to the nosetests command line arguments in tox.
It is used when running tox from the command line, so the enhanced,
colorized output is visible to developers running the test suite
locally.  However, when Jenkins runs tox, the xunit plugin will be
used instead, providing output natively understood by jenkins which
is much more readable in that context.

Change-Id: Id678c2fb8a5a7d79c680d3d1f2f12141f73dc8a6
2012-04-27 23:45:38 +00:00
Jenkins 73ea207a39 Merge "Updated depend processing to norms." 2012-04-09 21:57:22 +00:00
Monty Taylor c80e2640c6 Make tox cover output coverage.xml.
Change-Id: I8719be2f627c9f2bf33e7752cdd7348c14943f7a
2012-04-05 19:06:57 -07:00
Monty Taylor cc479717cf Updated depend processing to norms.
Change-Id: I843c30acaf813614def68b936eb5a982e5a9b242
2012-04-03 21:54:43 -06:00
Monty Taylor 57e352a070 All the latest OpenStack hotness. 2012-02-29 14:14:14 -08:00
Jay Pipes 972677fc3d Initial checkin for new CLI and client package
Copied mostly from python-keystoneclient with
some Glance-specific stuff. README.rst shows what
WILL be the way to do things, not what is currently coded :)
2012-02-29 16:42:26 -05:00