Commit Graph

90 Commits

Author SHA1 Message Date
Hervé Beraud 55387a4f4a Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: Ib4184a05e753c3d1368167b91fc43bcc64a176c3
2020-06-09 19:16:34 +02:00
Ivan Kolodyazhny 5782d30096 Update upper-constraints for pyScss to 1.3.6
pyScss v1.3.6 is released with setuptools fix.

There is no need to blacklist setuptools 46.0.0 now,
so commit a8ff45ade2 is also reverted.

Change-Id: Ia8b27922f3354d42f62538ddee3ed5044968556d
2020-03-24 10:49:48 +09:00
asarfaty a8ff45ade2 Skip setuptools 46.0.0
setuptools 46.0.0 contradicts pyScss 1.3.4 because 'Feature' were deprecated.
Please see https://github.com/pypa/setuptools/issues/2017

Change-Id: Iafab38336daf5d84ef9e19248b59adccfacc29ec
2020-03-09 18:19:10 +02:00
Sean McGinnis 5e75d5d0b4
Fix docs environment
Change-Id: Iac612b8bf8d02f58f4677f3e1104d99cacce5b23
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-05-11 13:46:51 -05:00
Tony Breeds 00b2bcf7d6
Cap keyring, scikit-learn, and sphinx on python2
keyring drops py2 support so lets ensure our requirements wont allow us
to install 19.X releases on py2.

scikit-learn drops support for 3.4 or lower with release 0.21.0.

Setting the minimum supported python for both to 3.4 to be consistent
with u-c. When we remove the 3.4 constraints we'll also need to fix g-r

Similarly sphinx 2.0.0 drop py27 support do express that in
global-requirements.

There isn't a need to update u-c as they're already correct:
  $ grep -E '^(Sphinx|keyring)' upper-constraints.txt
  keyring===18.0.1;python_version=='2.7'
  keyring===19.0.1;python_version=='3.4'
  keyring===19.0.1;python_version=='3.5'
  keyring===19.0.1;python_version=='3.6'
  Sphinx===1.8.5;python_version=='2.7'
  Sphinx===2.0.1;python_version=='3.4'
  Sphinx===2.0.1;python_version=='3.5'
  Sphinx===2.0.1;python_version=='3.6'

This may cause knock-on effects for projects using either of these in
lower-constraints, but that's less impactful than all the 'red' in the
gate right now

Also 'correct' the Sphinx requirement in test-requirements so we get the
correct version when running under python2.  We need to do this anyway as
docs jobs typically run unconstrained

Change-Id: If558f184c959e4b63b56dec3ca1571d1034cfe5c
2019-05-11 06:54:50 -05:00
Tony Breeds 9efda7ea25 Move requirements to the PTI
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that

Change-Id: Ic5b984949462e9d96d0ba122531d7f0a3d733891
2018-05-21 14:58:48 -07:00
OpenStack Proposal Bot f110f074ac Updated from global requirements
Change-Id: I8d21201599c6c02832c2559600887b527b306744
2018-03-15 08:08:00 +00:00
OpenStack Proposal Bot 36ba55e702 Updated from global requirements
Change-Id: Iddf340b24933a9d4ffd5bff925ca98ec603f6e42
2018-03-13 07:31:25 +00:00
OpenStack Proposal Bot d3ce2d656b Updated from global requirements
Change-Id: I164bc65fcd0d24da56473e407b46b528ee6fa4d0
2018-03-10 13:53:09 +00:00
OpenStack Proposal Bot 79567eb0f6 Updated from global requirements
Change-Id: I24778b5e8440a512ae8d6b6ac12c58729e8565ce
2018-03-04 10:29:16 +00:00
OpenStack Proposal Bot aa6924d96a Updated from global requirements
Change-Id: If710e7856f6265282586a9d608765025cc28fe1c
2018-01-24 01:34:48 +00:00
OpenStack Proposal Bot 83547946f3 Updated from global requirements
Change-Id: I40f488c28dfbdade972a4930473c6c7e3bf8d40e
2018-01-18 03:33:31 +00:00
OpenStack Proposal Bot cf933659c4 Updated from global requirements
Change-Id: I49cebcaf316ff1e9662b46998b450684d4f963f5
2017-11-16 11:27:47 +00:00
Dirk Mueller 32d058382d Use a recent hacking version
Listing hacking in test-requirements is deprecated, as
it is a blacklisted linter and the global requirements update
bot wouldn't update it anyway. Instead use it just as a
dep on the pep8 tox env.

Change-Id: Idb4bcd8e4ffe1738a7306f9e1e5530b7e1e8dc8f
2017-10-26 13:57:25 +02:00
Tony Breeds d827e71b22 Add a bashate tox environment and address errors
Add a bashate environment for checking shell code quality.
Exclude bashate warnings:
 E006: Line too long:
 E010: The "do" should be on same line as for

In my opinion the places that trip these do not impact code readability

Change-Id: Iab0a34542c3938f127515291eca8f027f3accaa0
2017-09-28 12:09:04 +10:00
OpenStack Proposal Bot 3566bd9c48 Updated from global requirements
Change-Id: If4d90ab315e2e5c609f9c98389823c87ab6d7d7e
2017-09-13 13:03:52 +00:00
OpenStack Proposal Bot 9ad5a4c1b6 Updated from global requirements
Change-Id: I927c0db0d7142aff563d643e2257d975fc6be078
2017-08-27 20:10:29 +00:00
Andreas Jaeger 29e92f930c Switch to openstackdocstheme
Use openstackdocstheme instead of obsolete oslosphinx.

Fix display problem with removing extraneous whitespace in README.rst.

Change-Id: I791e830c6a13476152fb26a95de6832a6c50adae
2017-08-26 14:57:42 +02:00
OpenStack Proposal Bot 3e7f71a9a1 Updated from global requirements
Change-Id: I2236395ca3d51119ea0855f127c2dac6fc267163
2017-08-18 04:53:01 +00:00
OpenStack Proposal Bot 9dc95d2562 Updated from global requirements
Change-Id: I983acd44a072205a84ceba7fe4a65cd2300a23d6
2017-07-15 00:06:41 +00:00
OpenStack Proposal Bot 2086838ec6 Updated from global requirements
Change-Id: Ifa732d912e432e9bb734e737d6f6cbe9818f3556
2017-06-27 12:23:11 +00:00
OpenStack Proposal Bot 6dc705dc02 Updated from global requirements
Change-Id: I28a1421354f84e2559348467af652e1f693b0622
2017-05-17 13:50:30 +00:00
Lance Bragstad 55abccc5a7 exclude sphinx 1.6.1
Change-Id: I6349145b7d50d81751f87e3ac53dd8f8df41e07c
2017-05-16 21:02:43 +00:00
OpenStack Proposal Bot 44089737c6 Updated from global requirements
Change-Id: Ia00c082c8e77d12680c46dedfea3dd4129c3e943
2017-03-17 00:17:41 +00:00
OpenStack Proposal Bot f7c1b00d68 Updated from global requirements
Change-Id: I971bf257122c8ea25cbc5c0444947e2d5dffe420
2017-03-08 23:32:27 +00:00
OpenStack Proposal Bot 72de839483 Updated from global requirements
Change-Id: If24328c8394ddea24c02a3267c458334269f8a3d
2017-02-27 09:49:57 +00:00
Flavio Percoco 4d8824708b Update sphinx requirement
In change I38580a5f765c7bb586dcf2786e91be15a8eba235 we skipped one of the
docutils versions due to a breaking release that was not supported by
sphinx. This has now been fixed in the latter[0].

With Sphinx 1.5.1, the blocking of docutils 0.13.1 is not needed
anymore, so remove the condition. This line could be removed completely,
but for that it first needs to be removed from all projects.

[0] https://github.com/sphinx-doc/sphinx/issues/3212

Change-Id: I01b7b6f3fac75e284debe211129b7b1e87c756d9
2017-01-25 04:00:28 +00:00
OpenStack Proposal Bot 109efd70a2 Updated from global requirements
Change-Id: I5770253aebd1251e62f10527fb1e32f765b59b3c
2016-12-15 04:47:16 +00:00
ChangBo Guo(gcb) c25098b788 Update to a more modern hacking version
Hacking checks are not automatically pushed out via the OpenStack
proposal bot.  This change allows for a more modern version of
hacking.

Change-Id: Iffa8f959da8ebed1ca0ffc355f22054d2a6b37da
2016-12-14 04:33:16 +00:00
OpenStack Proposal Bot 8cda799d5d Updated from global requirements
Change-Id: I4875bdd6e6c32b1d367a79332b7a40fdd916fa91
2016-12-12 09:19:40 +00:00
Flavio Percoco 59020ba6b1 Skip release 0.13.1 for docutils
The 0.13.1 release breaks some documentation jobs when it tries to build
docs with remote images. This has been reported upstream[0]. The version
matches the supported docutils versions for sphinx.

[0] https://sourceforge.net/p/docutils/bugs/301/

Change-Id: I38580a5f765c7bb586dcf2786e91be15a8eba235
2016-12-11 16:53:16 +01:00
OpenStack Proposal Bot 499c016ee4 Updated from global requirements
Change-Id: Id61c99a18761ce9d209ee310eee4b55e09184ee1
2016-11-25 01:00:02 +00:00
Ken'ichi Ohmichi 2fbf1e7c08 Allow hacking 0.12.0 to be used
Hacking 0.12.0 was released earlier this week and projects are wanting to
start adopting it.

Change-Id: Ia3176706ccd99abc10f9228f735e5db5580b3a01
2016-11-07 13:06:38 -08:00
OpenStack Proposal Bot b19c119560 Updated from global requirements
Change-Id: I36b1e3d1c2423bc5d21c954969c95cf08c3885b5
2016-09-29 00:11:43 +00:00
OpenStack Proposal Bot 23128135b7 Updated from global requirements
Change-Id: I67574e95cc4d2c6c752678b197f05ae7a3ed861a
2016-09-27 17:03:54 +00:00
OpenStack Proposal Bot e039d3765d Updated from global requirements
Change-Id: I1b2915e8b1f2a3081ab9f14cc98787d54fb324e7
2016-07-05 18:20:06 +00:00
Tony Breeds f2847af237 Update requirements.txt
Move packaging and pyyaml from test-requirement.txt to requirements.txt.
Also add requests as it's needed by validate-projects

This is needed as some projects in the gate are pip installing the
requiremets repo and now they're failing with runtime errors.

Change-Id: Ic88cecd6d2664e447a696c58c123de18f35f7cd2
2016-06-24 09:06:07 +10:00
OpenStack Proposal Bot 4ba6154419 Updated from global requirements
Change-Id: I79fb855874afeb705e00baba36044d04ee381bf2
2016-06-21 18:06:08 +00:00
OpenStack Proposal Bot b8371f6f48 Updated from global requirements
Change-Id: I6156b684268224206e5be0bc6361af6dc4f09910
2016-06-10 15:50:07 +00:00
OpenStack Proposal Bot 503a6c2de6 Updated from global requirements
Change-Id: I139915ecc0ce27abe0ff18d01ef001db847fdb2c
2016-05-30 23:06:17 +00:00
Jenkins 5b3477502c Merge "Check that the argument is in fact a directory" 2016-05-30 06:00:57 +00:00
Tony Breeds 2ee3cbb721 Check that the argument is in fact a directory
If you mistakenly pass a path that isn't a directory, or doens't exist,
you get a traceback that ends with:
 ---
  File "/Users/tony8129/projects/openstack/openstack/requirements/openstack_requirements/cmds/update.py", line 229, in _copy_requires
    dest_path, project.merge_setup_cfg(proj['setup.cfg'], output_extras)))
KeyError: 'setup.cfg'
ERROR: InvocationError: '.../openstack/requirements/.tox/update/bin/update-requirements -H -s ./nova'
---

This is a little confusing.  This patch checks that the arg is a
directory so a more explicit error can be generated.

Change-Id: I9f3f43d5c9b90746bbf2d651ee4cb37afade1528
2016-05-23 14:09:52 +10:00
Jenkins 7b8db932e0 Merge "Allow hacking 0.11 to be used" 2016-05-19 21:16:55 +00:00
OpenStack Proposal Bot c0cd17eebd Updated from global requirements
Change-Id: Iabfdecaf781bf8c4bb1b3eaae69a2bb842edbb1c
2016-05-18 05:50:25 +00:00
Doug Hellmann bcc1779def add a validation command to ensure projects use check-requirements
Add a command and tox environment to let us define a job to ensure that
all repos in projects.txt have the check-requirements job defined. Two
projects are missing the job now, so this patch depends on the patch to
add those jobs.

Change-Id: I61658a7265a77e72401978dda558f41b28a81d92
Depends-On: I81e1c70257e28583e776171580d75341e620bf8d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-05-12 16:15:46 -04:00
Ian Cordasco 116f3d28d0 Allow hacking 0.11 to be used
Hacking 0.11 was released earlier this week and projects are wanting to
start adopting it.

Change-Id: I8de89a49c62598b32afee590c740592a10d11b8a
2016-04-22 12:22:24 -05:00
OpenStack Proposal Bot 5c14a7b760 Updated from global requirements
Change-Id: I50eb3f113f0f24b612ede52c3aedc8cbfb6a8e95
2016-01-17 01:16:18 +00:00
OpenStack Proposal Bot a8ac07c4a7 Updated from global requirements
Change-Id: I2e2f3bb6366bca6c3125575fa855f742c9fde411
2015-11-19 22:58:55 +00:00
Andreas Jaeger cf2374aac2 Use oslosphinx for doc build
Since this is now published on
docs.openstack.org/developer/requirements/ , update theme to use
OpenStack branding.

Include the oslosphinx extension, rename base names from DevStack to
requirements.

Change-Id: Icedd2bbce155b4667c6fe205ca61b9f707a1a8b5
2015-10-05 16:24:14 +00:00
Ian Wienand cac04e0db2 Add simple doc publisher target
Add a simple doc publisher target that just includes the existing
README.

Some of the infra jobs that fail requirements try to point you to the
requirements documentation; currently this is given as a raw RST link
to the web-view of the git tree.  It would be nicer to publish this as
formatted HTML like all the other docs.

Change-Id: I56b60a950c64880dd551d11e1997cd5ecbae283c
2015-09-29 20:33:12 +10:00