In Queens development cycle, openstack_auth code was merged
into the horizon repository.
blueprint merge-openstack-auth
Change-Id: I74b10a90fe79fc768cfb8de6f68d3cd2f4938e51
Current hacking check actually does not check attribute-level
imports. We can safely drop import_exceptions from tox.ini.
Also drops noqa to guard import exceptions from the same reason.
Change-Id: I4e37931a7bfb0aa7867d027125ffcf66e414cf08
Starting in Django 1.7, standalone scripts, such as a sphinx build
require that django.setup() be called first. See:
https://docs.djangoproject.com/en/1.8/releases/1.7/#standalone-scripts
This should be added to the horizon/docs/source/conf.py
setenv DJANGO_SETTINGS_MODULE for docs env in tox.ini
is no longer needed as it is configured in doc/source/conf.py.
Change-Id: I910dae37770ab9767689918a0c61b78d9c56115a
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove django_openstack_auth.
Change-Id: Ibb739fe4385caa3dd9f96f0708b7b3830a915d07
- Wrap the expected_url variable in a django 1.9 condition so that it
returns as expected.
- Use request.GET/request.POST instead of request.REQUEST
- Remove some conditional code required for old Django versions
This is the first step in getting Horizon to fully support Django 1.9.
It does *not* yet aim to offer full support, which is why the
requirements have not been bumped.
Change-Id: I7f8f3cde92cafdb5c9134baf75fc736cbf35ff6a
Partially-Implements: blueprint drop-dj17
Depends-On: Ia6cbbc281732e9c466edeaa76739122e006a997e
This adds a failing Django 1.9 tox env. This will be followed by a
non-voting Jenkins job to show the tests failing, and then a follow up
patch to make them pass.
Also removes an extra blank line.
Change-Id: Ib1633fb90a3a1f2e064b9f8a3fa37d76c63650be
Django-1.8 added _meta classes for User models,
which aren't supported by AnonymousUsers, the
AbstractBaseUser provides default implementation
for _meta classes.
SimpleTest has been deprecated since Django-1.6 and
was now removed.
Unfortunately, this change drops Django-1.6 (and earlier) compatibility.
Co-Authored-By: Lin Hua Cheng <os.lcheng@gmail.com>
Partially Implements: blueprint django18
Change-Id: Ie243fd2304421694023f579f49f8fa201e761ba3
Run coverage reports with `tox -ecover`
Creates xml and html reports like horizon
* changed html destination to 'reports', like horizon
Closes-Bug: 1470203
Change-Id: I91b96eaf9a50e6d199e08d019ff5519a2e0574d5
Python 2.6 is no longer supported in Django >= 1.7 or by OpenStack
as of Kilo. Additionally, the versions of django_openstack_auth are
all capped on the stable branches, so this will not effect them.
Change-Id: I75fc4a0ba090eb0d10cda235a1deb75f734ab1c7
In order to sync global-requirements, this patch bumps
hacking to 0.9.x series.
H236, H305, H307 errors are fixed in this patch.
H307 and H904 are added to the ignore list.
Change-Id: I37c16ad67912dec8ce1562676ae0ebbfbe277d99
H301 one import per line |
H304 No relative imports
When checking imports DJANGO_SETTINGS_MODULE environment needs to
be set. Add the following to tox.ini testenv:pep8.
setenv = DJANGO_SETTINGS_MODULE=openstack_auth.tests.settings
A part of blueprint openstack-hacking-compliant
Change-Id: I65a23c1e9a5d7a5852d448651254b6a3866f1dd3
This patch modifies tox.ini file to use the latest Django 1.4
release to test django-openstack-auth.
Change-Id: I6b9203d02aee79339f933eef5765de76901d2ecb
Closes-Bug: #1308123
In django-based projects, we need to specify DJANGO_SETTINGS_MODULE
when running docs build. It is required to addresses the failure of
docs build job in the gate.
Change-Id: I33a867bc00c70f333c4dc62add411f833e418424
Closes-Bug: #1302532
Remove the following rules from ignore list
without any violations from these:
H201,H302,H303,H701,H702,H803
A part of blueprint openstack-hacking-compliant
Change-Id: I4e43e13234f7640ef216db168d873c4cc1198328
E502 the backslash is redundant between brackets
E501 line too long (XX > 79 characters)
F841 local variable 'XXX' is assigned to but never used
Remove F403 and F999 from ignore list because there is
no violations related to these.
The remaining are all from OpenStack Hacking (H***) rules.
A part of blueprint openstack-hacking-compliant
Change-Id: I0fb46309621c15dfe4363039bbe46669f1315dec
E121 continuation line indentation is not a multiple of four
E126 continuation line over-indented for hanging indent
E127 continuation line over-indented for visual indent
E128 continuation line under-indented for visual indent
A part of blueprint openstack-hacking-compliant
Change-Id: I06ce0ee5132178a777ce9b9e409ef1d24af1ea1f
Bumping the upper version of Django to include 1.6.
Adding a tox env to maintain support for Django 1.5 and fixing
env for django 1.4
Implements blueprint django-16-support
Change-Id: I093b38f85bea1fbd7641571a3871a721abadd37c
tox 1.6 was released, which means that we can now take advantage of
the feature we added to it - which is using setup.py develop to
install the code into the virtualenv. The logic was taken from
run_tests.sh - so the performance issues around using tox vs. using
install_venv should now be gone.
Additionally, override the tox pip install command to avoid using the
"--pre" option which is the default in tox. "--pre" means "Include
pre-release and development versions." By default, pip will only
install stable versions of software, and that is the behavior we want.
Change-Id: Ida5e440d1bdb9f8e9031277ea53a02d2ef171438
Co-Authored-By: Monty Taylor <mordred@inaugust.com>
The default session serializer switched to JSONSerializer in Django-1.6.
Unfortunately, it can't serialize arbitrary objects (such as datetime
instances), there we have to stay with PickleSerializer (compare with
https://docs.djangoproject.com/en/1.6/topics/http/sessions/#write-your-own-serializer).
Sets Django==1.4 for the py27dj14 tox testenv. Don't relax the version
requirements just yet.
Change-Id: Ifb5a68950fa6a4a652a0fb0cb81048d89763ec3f