Commit Graph

39 Commits

Author SHA1 Message Date
Akihiro Motoki 2baea728dd Retire project
In Queens development cycle, openstack_auth code was merged
into the horizon repository.

blueprint merge-openstack-auth

Change-Id: I74b10a90fe79fc768cfb8de6f68d3cd2f4938e51
2017-12-23 03:22:21 +09:00
Akihiro Motoki 28144e9a2f hacking: Drop import_exceptions from tox.ini
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
2017-07-08 23:19:23 +00:00
Rob Cresswell 1af919009a Add Django 1.11 tox env
Change-Id: I274130c0c24c536dea8f150226c8f7f54c4e5ed5
2017-07-05 11:49:34 +01:00
Akihiro Motoki b0a2a39508 Fix doc build
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
2017-06-05 09:39:31 +00:00
kavithahr 4e24faa2cf The python 3.5 added
The python 3.5 as missing so i have added.

Change-Id: Ieaa2c7151167ea71f02ec1dd9d72b96618af5917
2017-03-07 13:24:54 +00:00
Tony Breeds f68a5a7d7a Add Constraints support
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
2016-12-20 16:01:27 +11:00
Rob Cresswell 6c8a1d49a8 Fix django 1.10 tox env
I got carried away and capped the dj110 tox end at <2.0. It should
be capped at <1.11.

Change-Id: I40064b90dc2a340304b6da40f80a6b4e0ffa8a9c
2016-08-04 21:59:25 +01:00
Rob Cresswell e46f0dccd7 Fix Django 1.10 tox env
Change-Id: I2c2ad60839fbe5f931544f076c90feda9dac997a
2016-08-02 16:28:49 +01:00
Rob Cresswell 0afe75fabc Add Django 1.10 tox env
This will be used for a non-voting test run by infra.

Change-Id: Ic9ddd926e13c5d701bbc4df740c6d51f1d7ba30f
2016-06-29 11:36:37 +01:00
Jenkins 34478aa88b Merge "Drop supporting python3.3" 2016-02-15 14:41:29 +00:00
Jenkins 82facc42ac Merge "Deprecated tox -downloadcache option removed" 2016-02-12 08:14:12 +00:00
Bo Wang d2521170eb Drop supporting python3.3
Change supoort python3.3 to python3.4
ref:https://blueprints.launchpad.net/horizon/+spec/porting-python3

Change-Id: I0f4d5afbcbb46d665edf9ad67ba61482e15d6035
2016-01-28 20:46:01 +08:00
Rob Cresswell d8a9ad9fb2 Fix the py27dj19 tests
- 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
2016-01-15 13:12:24 +00:00
Rob Cresswell 658d955c1b Add py27dj19 tox env
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
2016-01-11 14:38:25 +00:00
Ondřej Nový 447bab5f57 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Ie0744b5b9b85e2210d94e68fa12be1be0fcce9a0
2015-12-11 22:59:11 +01:00
Matthias Runge da2395146e Extend User from AbstractBaseUser and AnonymousUser
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
2015-08-06 22:10:47 -07:00
Mike Hagedorn 2fcf6f569a Add Coverage Reports To DOA
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
2015-07-01 14:28:53 -05:00
David Lyle 6b9e9b593b Adding 1.6 job for tox
Default test run is against Django 1.7, adding job for Django 1.6

Change-Id: Ic63bad1ef7bf8e19ec1aae48ca4eb52fa1ef2dfd
2015-04-29 18:40:31 -06:00
David Lyle 6e5dae01ad Removing python 2.6 support
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
2015-04-08 14:55:27 -06:00
lin-hua-cheng 5801b07da6 Fix H405 docstring issue
Change-Id: I39bb85f3c313b8e5065c07aef5c05f7a44f16c98
2015-02-18 22:32:06 -08:00
Jamie Lennox 517ea8eccb Allow running individual tests via tox
Allow passing a test module name via the tox command line to allow
running individual tests.

Change-Id: Iff551d054e2a8252f437f6756760cd4418abcfa4
2015-02-10 16:30:52 +11:00
lin-hua-cheng 31b7e7c103 Move to hacking 0.10
Release notes:
http://git.openstack.org/cgit/openstack-dev/hacking/tag/?id=0.10.0

Per the release notes, H803 and H904 has been removed.

Change-Id: I93c184f4f0483fd0ba605c87453e26c52f700a42
2015-02-05 09:52:15 -08:00
Akihiro Motoki 2e5485d8c5 Bump hacking to 0.9.x series
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
2014-10-19 19:41:58 +09:00
Jeremy Stanley e4a3f9708e Work toward Python 3.4 support and testing
Change-Id: I56299bcb4f02dfab95b995f147c32623cf329fab
2014-09-03 19:03:27 +00:00
Akihiro Motoki 58da8b38a9 Fix H4xx docstring issues
Completes blueprint openstack-hacking-compliant

Change-Id: Ib286972b65e0e3282db483718421f7f28e8c6cd1
2014-07-29 16:32:38 +00:00
Akihiro Motoki 2ead8838e7 Fix H301 and H304 hacking issues
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
2014-06-06 15:48:25 +09:00
Kieran Spear f1342fa49e Disable H803 check.
H803: Git commit title should not end with period.

Change-Id: I4d05b85200de234e9353c8fb26429841488fc0b2
Closes-bug: #1236621
2014-05-26 13:26:01 +10:00
Veronica Musso ea03d99380 Use the latest Django 1.4 release to test
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
2014-04-29 09:24:50 -03:00
Jenkins 483183c5a4 Merge "Add tox env to build docs" 2014-04-18 13:54:53 +00:00
Akihiro Motoki 112f16dd56 Add tox env to build docs
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
2014-04-04 20:44:47 +09:00
Akihiro Motoki 41fc94754f Fix H306 imports not in alphabetical order
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
2014-04-04 19:12:02 +09:00
Akihiro Motoki 32871fee1f Fix remaining PEP8 (E***) and PyFlakes (F***) issues
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
2014-04-04 19:06:58 +09:00
Akihiro Motoki 6e774321d8 Make Hacking E1XX compliant
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
2014-04-04 18:55:17 +09:00
David Lyle 57717db0ef Adding Django 1.6 support
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
2014-03-18 16:45:45 -06:00
Jenkins d1177f99cb Merge "Support Django 1.4, 1.5 and 1.6" 2013-12-20 13:28:15 +00:00
James E. Blair 1680ce3b3c Have tox install via setup.py develop
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>
2013-12-11 08:46:23 -08:00
Sascha Peilicke 40b654e6ee Support Django 1.4, 1.5 and 1.6
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
2013-12-05 16:57:42 +01:00
Monty Taylor 985bf5659c Align with OpenStack project standards
Change-Id: If03b325c941dcac257b25b90c8b152dcead5edd2
2013-09-10 16:58:11 -05:00
Monty Taylor 546716c585 Add tox.ini file and flake8 ignores
Change-Id: I11c89c3902d974e94f4fee29211970546579f29e
2013-07-17 11:43:32 -07:00