Commit Graph

43 Commits

Author SHA1 Message Date
Takashi Kajinami 2a282e9eb7 Move reno to doc requirements
The library is used only when rendering release notes.

Change-Id: Ief984862bbc99e77fbff33f77dbe1653b6d13b81
2024-01-28 01:41:47 +09:00
Riccardo Pittau fed5f89755 Remove six dependency
We run on Python 3 only, time to remove six dependency

Also fix l-c for new pip-resolver and move pep8 deps
in tox.ini to avoid conflicts.

And since we're here, update pre-commit config to support correct
hacking version.

Change-Id: Ibbe733c4be37d1a9dd9149d491591ef2e50dad6a
2020-12-12 08:08:06 +01:00
Hervé Beraud 7d0648f8a3 Adding pre-commit
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.

Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.

pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
  shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
  calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)

For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks

Change-Id: I1e4625d34ed08218dd7069402a1eff1418f4ec35
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-15 17:41:13 +02:00
Andreas Jaeger 5ad6748225 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I3adc259f89f9093fbe9cce1353f5d6f0828271b9
2020-05-26 08:08:27 +02:00
Andreas Jaeger 8f1e436613 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Change-Id: I13b9eeb19236eaf02a5b166026c285ff78d754bb
2020-03-30 12:00:11 +00:00
Hervé Beraud b43036ac05 Move doc requirements into dedicated file
For the sake of homogeneity between oslo project scope,
prefer to use doc/requirements.txt

Change-Id: I10acf283752d18cb98c8ad19b8af4758bed94679
2019-12-18 15:23:57 +00:00
pengyuesheng 3d573d118d Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I65f1bdda8e0dc87fe431e84642606a5560a093d2
2019-10-09 16:08:17 +08:00
jacky06 d92ea1f8be Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Remove unncessary "=="

Change-Id: Ied4095b176b20795f6a8d4d7a84d01d958d76896
2019-06-19 00:57:49 +08:00
Vu Cong Tuan ce03d76925 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ic388868baaf9a1204d4ad35f3467de564c1a56fa
2018-07-11 09:48:53 +07:00
OpenStack Proposal Bot 84a646c9f6 Updated from global requirements
Change-Id: Iac66717a73de5ae214c64a28cd48ad9e40fb7c7a
2018-03-15 06:45:10 +00:00
OpenStack Proposal Bot 08228a19c4 Updated from global requirements
Change-Id: Ia7d9a570e566be00de9d53ce02fceb9500348b43
2018-01-24 00:48:55 +00:00
OpenStack Proposal Bot 22b2b86491 Updated from global requirements
Change-Id: I97807215bd7cdd4e8e4b4f7766b3605cbc6c6557
2018-01-17 20:27:45 +00:00
OpenStack Proposal Bot 6191cf6e10 Updated from global requirements
Change-Id: I5f0b04d1a219bf1b4736b1762bdb509cf957ea35
2018-01-16 04:02:08 +00:00
OpenStack Proposal Bot 00e34a87c8 Updated from global requirements
Change-Id: Ifff75c7292a47a5b2b3671be43977fab361808b5
2017-11-16 10:58:52 +00:00
OpenStack Proposal Bot e837b8915a Updated from global requirements
Change-Id: I0f8ba2dfe7e7f5cd08dec7eacdc34a74f591e239
2017-09-20 16:12:12 +00:00
OpenStack Proposal Bot 718a313831 Updated from global requirements
Change-Id: I470b822c4bc0a7ddbdd75da310e489ac286fd83f
2017-08-18 11:28:05 +00:00
OpenStack Proposal Bot 7a1b64fab6 Updated from global requirements
Change-Id: I972937f6b646f41cc80ebb4323ab38391ce09fa0
2017-07-27 19:07:33 +00:00
Doug Hellmann 6c5dbfcd09 switch from oslosphinx to openstackdocstheme
Change-Id: I2b59094e2e670d711ed924e5c1c59b1e67568ca7
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-06 15:39:45 -04:00
OpenStack Proposal Bot 7ad9100169 Updated from global requirements
Change-Id: If9aff97773f9bc9105c7ec167520caf34c5bff57
2017-06-27 12:08:03 +00:00
OpenStack Proposal Bot e82462641f Updated from global requirements
Change-Id: I320f54f85d721cd51aad217a4e775895279be019
2017-06-02 21:53:26 +00:00
OpenStack Proposal Bot 10e900444f Updated from global requirements
Change-Id: I0502d4d9b65776f95214a0113cced2ec8503162e
2017-05-17 03:46:02 +00:00
ChangBo Guo(gcb) 657d1ec77c Remove unused dependecy testscenarios
We don't use testscenarios anywhere, need remove it.

Change-Id: I7fcfd36931098b3cdfa64295c88688787025d5bf
2017-03-27 22:43:46 +08:00
OpenStack Proposal Bot 9594743da5 Updated from global requirements
Change-Id: Ifc3ab24a3d98c0ec4d337554e6f595c452b41e1e
2017-02-10 05:47:03 +00:00
OpenStack Proposal Bot c04b95bbe4 Updated from global requirements
Change-Id: I3906a6059bc082400a158cf56d5a07b130295ada
2016-11-05 20:27:46 +00:00
Chuck Short 70a15588ac Add reno for release notes management
The release management team have indicated this is their preferred way
to collect release notes in future.

Change-Id: Ia0580eb513dd78779b9b2adb849627cf5e19f89b
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-11-03 18:54:30 -04:00
OpenStack Proposal Bot a555fffb64 Updated from global requirements
Change-Id: I47a7af2783e8dedb3fddd33d4f7cf0debd41fbcf
2016-09-28 16:51:19 +00:00
Jenkins c6278ba1a8 Merge "Remove discover from test-requirements" 2016-07-21 16:55:52 +00:00
Swapnil Kulkarni (coolsvap) dab7331d9a Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: If01af2ff26552042c7bf0c2689ea6ec450977245
2016-07-21 07:25:45 +00:00
OpenStack Proposal Bot 4008814819 Updated from global requirements
Change-Id: Ib55246002a1e363ed875814bbbf43b5b6e95a603
2016-06-21 17:57:43 +00:00
OpenStack Proposal Bot ad4b42c963 Updated from global requirements
Change-Id: Ifba3590295ee94b9efa083896be3a7776dac305b
2016-01-16 03:25:10 +00:00
OpenStack Proposal Bot 42a90b59ff Updated from global requirements
Change-Id: I5295d160a2a6b3303ee9bf2ccc6fb6af8699f8ec
2015-11-19 15:43:40 +00:00
OpenStack Proposal Bot 2ae8d6e07a Updated from global requirements
Change-Id: I55914a9b3b42cb43256395f0af447c50f4761c73
2015-08-04 00:43:27 +00:00
OpenStack Proposal Bot e64d7b35f4 Updated from global requirements
Change-Id: I78d5d37cac47d55c6d41d2d2102bc92b2eae280b
2015-07-29 03:45:12 +00:00
Jenkins d434212af8 Merge "Ensure doctesting and doc8 testing done in py27 env" 2015-07-20 22:01:42 +00:00
Joshua Harlow 01ee0381fe Ensure doctesting and doc8 testing done in py27 env
This ensures that sphinx doc tests are ran and validated
and also runs doc8 to ensure style checks are done and adjusts
some of the current examples and code to fix found issues.

Also fixes the `get_callback_name` method which needs to check
if the __module__ is non-none (since it appears sphinx somehow
triggers it being none).

Change-Id: I54daecff219a9e9be71ff382d36fc2d5e67360cf
2015-07-16 14:47:27 -07:00
OpenStack Proposal Bot 0786ac59c4 Updated from global requirements
Change-Id: I293a3d8ac2bb51be9113f2434565d95bc2489f69
2015-07-15 01:30:59 +00:00
OpenStack Proposal Bot 59d34fa3ed Updated from global requirements
Change-Id: I7d0ea917808e43776b3afc21ce90fcae9dcb1ad5
2015-06-22 08:19:10 +00:00
Joshua Harlow d71b6cf8b4 Revamp repo to match openstack repos
Get the repo in a working state so that it works
with the new and improved openstack CI system.

Change-Id: I80661c35fa7109a7ee9b1d00f89ca521a469eed0
2015-06-05 17:18:17 -07:00
Joshua Harlow 01f2201a33 Add testrepository to testing requirements 2014-12-05 20:50:17 -08:00
Joshua Harlow b87aefcc37 Remove version caps
Version caps can make it hard to use this library
as they impose restrictions on the application/other
library consuming this library so just remove them.
2014-12-05 14:57:49 -08:00
Joshua Harlow f536c14366 Add testtools testing requirement 2014-12-02 23:52:19 -08:00
Joshua Harlow ec9e8f2df4 Add needed testing requirement and tox.ini file 2014-12-02 23:50:17 -08:00
Joshua Harlow cf066a15d6 Move a bunch of files into there rightful places 2014-12-02 23:35:01 -08:00