This is the last patch in the series that removes all remaining
oslo-incubator modules. This also removes some unused scripts
in tools.
Change-Id: I4ca11596f1a2967e7c920c4ec7709c3408854534
Graduate from Oslo Incubator to oslo.i18n library.
Cleanup of unused Oslo Incubator utils.
Added optional enable_lazy() usage.
Change-Id: I5ec02477f3f52f4d7097669120581e82cced3748
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.
Change-Id: I3b8b68c4ec4904d1aee150e6158f9ff29c68ff7a
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.
This basically renames
python-heatclient/locale/python-heatclient.pot to
heatclient/locale/heatclient.pot. For this we need to update
setup.cfg.
The domain name is already correct in i18n.py.
The project has no translations currently, let's remove the outdated
pot file, the updated scripts work without them. So, we can just
delete the file and once there are translations, an updated pot file
together with translations can be imported automatically.
Remove test for valid translation files in tox.ini since there are now
no more pot files - and the test fails if there are no files at all.
Change-Id: I6f5e77b9cd633f6edb503ff225ca0b507153946c
Once we add debug testenv, we can use "tox -e debug -- --debug"
to debug test cases when tox is running.
Change-Id: I3b7a090042e95ac89d6829495bf42f84e11bbd21
As of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.
Closes-Bug: 1519510
Change-Id: I680043c48c75a50b3ef8eed4f22e97dca029c477
Because python creates pyc files during tox runs, certain
changes in the tree, like deletes of files, or switching
branches, can create spurious errors.
Change-Id: I9b0e7afeeb934d24c9847573cd7582709e990c9e
Closes-Bug: #1368661
Also, change order of envs in default tox run to avoid some errors
when running tox for the first time on fresh clone:
- run pypy first to avoid "No module _bsddb" error
- run py34 before py2x to avoid LP bug #1489059
Change-Id: I777c55077edb5d4f09518acf35366af97de3943f
Closes-Bug: #1492123
- Add separate testenv for functional tests
- Copy Heat templates and tests from tempest
- Add requirements tempest-lib
- Add base class to functional tests
Partial-Bug: #1446442
Change-Id: I254be9b25f248d59392507841dad44e1ef1c68e3
Any new failing rules have just been added to ignore for now, so
that the gate can be unblocked quickly, although future changes
which un-ignore those rules would be welcome.
Change-Id: I5861ab178ae8bf4861c93941c33b551b7f90e835
We appear to be hitting an issue similar to bug #1290562, so try the
same workaround.
Change-Id: I17b663480016394daaa0378907c02f965be4222b
Partial-Bug: #1453095
Related-Bug: #1290562
flake8 has support for cyclomatic complexity (Mccabe) currently our
worst offender has a complexity of 18 (25 is considered very bad). So
set our max-complexity to 20 so we keep our complexity in a great shape.
https://github.com/flintwork/mccabe
Change-Id: I682f3c192e46bd50236b10a337f0b129c4b02eb8
Add a tox job to make it easier for developers to generate their
own docs before submitting a patch.
Change-Id: I9c53ce664b164003fe42ed03d1f850d954bf0971
Until a proper fix is found, pin the version of setuptools to one
that doesn't cause this issue.
Change-Id: I4f5f2b6449a90df06b366f9eb3f2c16bb37cc758
Related-Bug: #1290562
The expected_url in test_stack_list_with_args() does not always match the URL
actually used in the code. This patch fixes this issue by:
- using urlutils.urlencode() in both the code and the tests, so that changes in
the urlencode() implementation do not affect the tests;
- setting the PYTHONHASHSEED environment variable to 0 when running the tests,
so that randomisation is disabled and urlutils.urlencode() has predictable
results.
Change-Id: I5b50bad98f5c237cdc12e4ab75f21917ca0ef30d
This makes code more readable, and can check whether specific library
in the requirement files easily. We also enforce the check in pep8.
Change-Id: I08434dd56d41a82045e4119e547b7b3f60d66698
Closes-Bug: #1285478
H233: Python 3.x incompatible use of print operator
Python 3 support is a good feature for OpenStack service client,
and we already have a patch for H233 but still ignore it in hacking check,
we can enable it to avoid introducing such problem again.
Change-Id: I5295ef62eef7a9f6ec7f2b67d6b68dbe2dec7067
ref: https://review.openstack.org/#/c/52841/
Reasons:
- tox update v1.6
Changes:
- tox 1.6 allows us to skip the sdist step, which is slow.
- It also allows us to override the install line. In this case, it's
important as it allows us to stop getting pre-release software we
weren't asking for.
Original patch by Monty Taylor, talked about here:
http://lists.openstack.org/pipermail/openstack-dev/2013-September/015495.html
Change-Id: Ib51796afbfdffb5a879046ca1b94a55b1f6ef6f1
This is a precursor to having them run under check and gate.
This also fixes a single test which fails on PyPy, the test failes at
because it assumes a ``dict`` has a particular order for its keys when
it is printed out, on PyPy dicts have a different order sometimes, the
exact ordering is not a guarnteed property of Python.
Change-Id: Ie86726a0221e5e9aa68f7303d8ca8c7acd878f65