Andrew Grimberg [Mon, 10 Apr 2023 18:07:51 +0000 (11:07 -0700)]
CI: Use v0.3 of gerrit-review-action
* Add a 10s delay in the prepare to allow replication to catch up
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: I59db3cacc046a96bddc0a9501ec3d5520a77a3ed
Andrew Grimberg [Thu, 6 Apr 2023 18:04:42 +0000 (11:04 -0700)]
CI: Add release job for when a tag is added
* Builds the lfdocs-conf distribution
* Publishes to PyPI
* Sends announcement email
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: If1a7c7b50520be1bca58ae12f118ff4492e667e6
Andrew Grimberg [Wed, 5 Apr 2023 19:19:04 +0000 (12:19 -0700)]
CI: Add clean,build tox environments
Change-Id: Ide43cc73615ae67b1d423c83dc8d78e935d2470d
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Wed, 5 Apr 2023 17:53:53 +0000 (10:53 -0700)]
CI: Add publishing tox target environment
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: I6b097ae249d83528a85f4d69fd88b82845c20dcf
Andrew Grimberg [Wed, 5 Apr 2023 19:31:30 +0000 (12:31 -0700)]
CI: Remove constraints
The defined constraints cause test failures in newer Python
environments
Change-Id: Ieb856dea965a71789ecbc1e3cae8fda05ed2d6d7
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Wed, 5 Apr 2023 21:39:27 +0000 (14:39 -0700)]
CI: Configure full clone for tox docs
Reno needs the full repository history to properly build the docs.
Increas the fetch-depth to be the full repository. Also, bring the
pre-commit validation to the same level of the gerrit checkout action
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: I13fed2d7223d3f65f77d651013b8a00d07759796
Andrew Grimberg [Wed, 5 Apr 2023 20:40:40 +0000 (13:40 -0700)]
CI: Increase the fetch depth
Reno fails with super shallow clones. Increase the fetch-depth to
something relevant but shouldn't be too much
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: I17d5c62d82e5f3a8a3b71e027b01a26e33e73902
Andrew Grimberg [Wed, 5 Apr 2023 17:46:56 +0000 (10:46 -0700)]
CI: Add GHA verification
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: Ib57311a1213da227c5830a505fa0ee099a45ce69
Andrew Grimberg [Wed, 5 Apr 2023 15:59:47 +0000 (08:59 -0700)]
Docs: Update linking to use stable links
Most of the intersphinx linked sites all use tags in the repository
which causes RTD to create a "stable" pointer to the latest tag. This
avoids confusing people that are trying to find out what is in the
latest "release" of a project since the docs have historically pointed
to the current developement HEAD.
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: I61065fbeb6636301c0ce04e97ba56c1b40deed9b
Andrew Grimberg [Wed, 5 Apr 2023 15:57:22 +0000 (08:57 -0700)]
Chore: Update pre-commit hooks
* github.com/pre-commit/pre-commit-hooks: v4.3.0 -> v4.4.0
* github.com/jorisroovers/gitlint: v0.17.0 -> v0.19.1
* github.com/pre-commit/mirrors-prettier: v2.7.1 -> v3.0.0-alpha.6
* github.com/ambv/black: 22.6.0 -> 23.3.0
* github.com/PyCQA/flake8: 3.9.2 -> 6.0.0
* github.com/pycqa/bandit: 1.7.4 -> 1.7.5
* github.com/pycqa/pydocstyle: 6.1.1 -> 6.3.0
* github.com/adrienverge/yamllint: v1.27.1 -> v1.30.0
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: Ie8fe9518e4671f7600ad2aa5f1b29a1403609997
Cédric Ollivier [Thu, 25 Aug 2022 07:52:43 +0000 (09:52 +0200)]
Fix: Stop indirectly pinning sphinxcontrib-needs
0.5.6 is obsolete (2 years) and we must drop this
obsolete bound. It's worth mentioning this conflict
breaks ONAP doc verify jobs.
Issue: RELENG-3968
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Ic3d0baa03f3f1c054dbdde0aa44eab25dc9b37de
Anil Belur [Tue, 28 Jun 2022 10:33:38 +0000 (20:33 +1000)]
Fix: Set default language to 'en'
Fixes the following Sphinx warning (treated as error) starting
with 5.0 release:
Warning, treated as error: Invalid configuration value found:
'language = None'. Update your configuration to a valid langauge
code. Falling back to 'en' (English).
Change-Id: Ieb7364430a3a70af9ec528cceb2277ac63eeae5a
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Fri, 1 Jul 2022 07:17:34 +0000 (17:17 +1000)]
Chore: update pre-commit deps
Change-Id: I6a4437d50f25a13528427d19a67a00974a551fdd
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Eric Ball [Wed, 9 Mar 2022 23:38:18 +0000 (15:38 -0800)]
Chore: Add mapping entry for pipelines
Issue: RELENG-4151
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: I7f97e6c53b802b457008fd1b8754a58a76ac19c1
Cédric Ollivier [Mon, 22 Nov 2021 13:33:40 +0000 (14:33 +0100)]
Fix: Rather skip .tox instead of _build twice
Else it fails in ONAP if the warnings are treated as errors.
Issue: RELENG-3968
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I21e46ebae31a436b90361ce7ca19772b2cc3aced
Cédric Ollivier [Tue, 28 Sep 2021 17:33:22 +0000 (19:33 +0200)]
Fix: Split concrete and abstract dependencies
It adds 2 upper-constraints to pin all the dependencies.
It modifies a little bit the official upper-constraints.txt from
OpenStack due to Sphinx (4.2.0 as asked by lfdocs-conf vs 3.5.2) and
due to setuptools (58.1.0 as used in ONAP gates vs 54.1.1).
In a long run, upper-constraints.os.txt should be removed once LF/ONAP
is synced with OpenStack. For it's part, upper-constraints.lf.txt
should be centralized for all ONAP/LF projects and then removed from
this particular project.
It also adds test-requirements.txt to list all test requirements (see
tox.ini) and lists sphinx contrib modules in requirements.txt which are
selected by the default configs. Otherwise the project must falsy lists
them as deps to complete the missing lfdocs-conf requirements.
Issue: RELENG-3968
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I38057cdd0f3553d64c8a682faf0d304b680fcb96
Bengt Thuree [Mon, 27 Sep 2021 09:56:14 +0000 (19:56 +1000)]
Chore: Update to use funcparserlib~=1.0.0a0
Update funcparserlib for better compatibility
with Sphinx version 4.2.0 updated in commit
1f098cb2137c2d7b6132d44d5ad89de60336802a
This is requested by ONAP in IT-22918
Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Issue: RELENG-3968
Change-Id: Id181ed2ab65c9c6d923b73fb8968ffd69fac8bc0
Bengt Thuree [Thu, 23 Sep 2021 08:13:55 +0000 (18:13 +1000)]
Chore: Update to use Sphinx 4.2.x
Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Issue-ID: IT-22918
Change-Id: I96a57d11a59d0dca889bb955a5bfe6cde8ff9c94
guillaume.lambert [Mon, 20 Sep 2021 13:03:58 +0000 (15:03 +0200)]
Fix: required sphinx-bootstrap-theme version
lfdocs-conf requires sphinx-bootstrap-theme version around 0.7.1
sphinx-bootstrap-theme v0.7.1 still uses the setup command "use_2to3".
This is no more allowed with latest versions of setuptools
https://stackoverflow.com/questions/
69100275/
This breaks ODL current gating.
https://jenkins.opendaylight.org/releng/job/docs-rtd-verify-phosphorus/131/
https://git.opendaylight.org/gerrit/c/docs/+/97543/1
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I24f0b47f2898e7a9e2887e783caf36de5d0049b4
Anil Belur [Fri, 3 Sep 2021 06:17:40 +0000 (16:17 +1000)]
Fix: Rm dup word from ONAP Copyright notice
Issue-ID: RELENG-3929
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I0ae87fdaa9db07aebe3d3d91441b054418a4cf55
Anil Belur [Mon, 16 Aug 2021 22:03:26 +0000 (08:03 +1000)]
Docs: Update ONAP Copyright notice
Ref:
https://wiki.onap.org/display/Meetings/TSC+2021-08-05
Issue-ID: RELENG-3840
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I48b6386515787f6bf9e8c2dc8439d1256385f27a
Anil Belur [Wed, 4 Aug 2021 11:12:34 +0000 (21:12 +1000)]
Docs: Change ONAP copyright notice
TSC Approval:
https://wiki.onap.org/display/Meetings/TSC+2021-08-05
Issue-ID: RELENG-3840
Change-Id: I9677ffa06e23c54cb102e976cb17543e60f026d4
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Andrew Grimberg [Wed, 4 Aug 2021 13:56:17 +0000 (06:56 -0700)]
CI: Fix pre-commit tox
The gitlint check is not working properly in CI. This change to tox will
make it so that tox works correctly both locally as well as in CI for
running the gitlint check
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: Ib2bd5b3b0159a5aee27a157b7e16269474681cd8
Andrew Grimberg [Mon, 31 May 2021 08:33:41 +0000 (10:33 +0200)]
CI: Configure gitlint for Conventional Commits
Turn on Conventional Commit message subject validation. This will affect
CI specifically, but developers can avoid having CI fail by assuring
that they have installed pre-commit and that they have also run
pre-commit install --hook-type commit-msg
The above is needed because pre-commit does not install commit-msg hooks
by default.
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I670a5099d43683435112bd71670618f569e3843d
Andrew Grimberg [Mon, 31 May 2021 08:40:08 +0000 (10:40 +0200)]
CI: Update pre-commit checks to latest versions
This updates the pre-commit checks to the latest versions of the checks
we're using and fixes a linting issue in our YAML config.
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Ib0741cb73f678597576c84c3a1064c88931599d4
Guillaume Lambert [Wed, 26 May 2021 18:56:25 +0000 (20:56 +0200)]
Fix: local calls to pre-commit tox profile
When run locally, pre-commit tox profile resulted in the following
failure:
$ tox -e pre-commit
[..]
gitlint...........................................................Failed
- hook id: gitlint
- exit code: 254
An error occurred while executing \
'/usr/bin/git config --get user.name': b''
The reason behind is that tox virtualenv cannot directly access the
$HOME shell variable to retrieve the local git configuration unless
this variable is explicitly declared accessible via the passenv tox
parameter.
This is required by gitlint to retrieve the correct git configuration
parameters.
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I99197f88cf4024a5922fe62ec07610921dcf515f
Guillaume Lambert [Fri, 28 May 2021 12:56:51 +0000 (14:56 +0200)]
CI: kick git hook pre-commit install out from CI
pre-commit hook installation is not required to run pre-commit run jobs.
And thus it is not wishable in CI and morevover in a local context since
no uninstallation method is provided in tox.
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Idd7f1757b9814edfdeeb4013d086c8c63a6d812d
Guillaume Lambert [Thu, 27 May 2021 20:28:51 +0000 (22:28 +0200)]
Fix: black pre-commit mutable rev configuration
pre-commit black current configuration uses stable for rev, what creates
warnings at pre-commit runtime as discussed at the following URL
https://github.com/psf/black/issues/420
"pre-commit assumes that the value of rev is an immutable ref (such as a
tag or SHA) and will cache based on that. Using a branch name (or HEAD)
for the value of rev is not supported and will only represent the state
of that mutable ref at the time of hook installation (and will NOT
update automatically)" as stated in the official documentation at
https://pre-commit.com/#using-the-latest-version-for-a-repository
rev stable has been replaced here by 21.5b1 in the precommit yaml file
to fix the warning and ensure CI and local pre-commit coherency.
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I577d22e56155212bbb708213efb8f09c0283dd64
Guillaume Lambert [Thu, 27 May 2021 19:46:58 +0000 (21:46 +0200)]
Fix: bandit pre-commit hook exclude regex
The 'exclude' field in pre-commit hook is a regex, not a glob,
as it is advertised by pre-commit runtime warnings.
"tests/*" matches "tests", "tests/" or "tests//...///" but also any file
or folder, not necessarily at the root of the project, that contains
"tests" in its name.
The right regex to ignore the tests folder at project root is "^test/"
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I74e22bff98c78a7d0dbabac81fdda7b07ed50d4f
Guillaume Lambert [Thu, 27 May 2021 19:16:03 +0000 (21:16 +0200)]
Fix: conf.py imp import deprecation warning
According to https://docs.python.org/3/library/imp.html imp is
deprecated in favor of importlib since python 3.4 and imp.find_module
must be replaced by importlib.util.find_spec()
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: If3acf1b9aac6092a7a982598453d586316276dff
Guillaume Lambert [Thu, 27 May 2021 19:23:54 +0000 (21:23 +0200)]
CI: Decrease Sphinx tox profiles logs verbosity
Docs and docs-linkcheck tox profiles are using Sphinx that generates
very verbose logs by default.
Sphinx -q quiet option allows to display only errors and warnings.
Using this option will ease potential gate failures analysis.
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I55c587f2e17625f71e13197ab6f46bf470478738
Guillaume Lambert [Wed, 26 May 2021 20:02:37 +0000 (22:02 +0200)]
Chore: replace py27 tox profile by py3
py27 was the default generic profile for jobs written in python 2.7 that
is now obsolete.
When forcing basepython version to 3, Jenkins advertises the incoherency
with a warning.
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I10adbc4c1ee7de333e3bdd9a0e79e418ae49d5d7
Guillaume Lambert [Wed, 26 May 2021 19:27:51 +0000 (21:27 +0200)]
Fix: prettier pre-commit configuration
According to https://github.com/prettier/pre-commit the prettier repo to
use in the pre-commit configuration file shifted to the new URL
https://github.com/pre-commit/mirrors-prettier
Also running this hook locally outside of the tox profile resulted in the
following error:
$ git commit --amend
[..]
gitlint...........................................................Passed
prettier..........................................................Failed
- hook id: prettier
- exit code: 2
[error] No matching files. Patterns: .git/COMMIT_EDITMSG
According to https://github.com/pre-commit/mirrors-prettier/issues/5
the reason behind is that prettier can not perform at the [commit-msg]
stage and only at the [commit] stage.
Forcing the stage parameter to [commit] in the hook configuration
managed to fix the issue.
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I1991d5dbab8c6d4ad83e3466fdd4a7bc3cfc865a
Guillaume Lambert [Tue, 25 May 2021 19:57:03 +0000 (21:57 +0200)]
Refactor: templates to format copyright year
Up to now, the copyright year was hardcoded in every project template
and had to be updated regularly.
To avoid manual updates and new versions of lfdocs-conf in Pypi,
it is preferable to use python3 datetime import with the format method
to fill and update the year automatically.
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I35a7551a80be470dff5b55e0cabb4944a9bab02c
Guillaume Lambert [Mon, 10 May 2021 15:19:51 +0000 (17:19 +0200)]
Fix: ONAP year in defaults
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I09d6a3b29064b4c82acbe38af430e1d80cd67dac
Guillaume Lambert [Mon, 10 May 2021 15:16:47 +0000 (17:16 +0200)]
Fix: OpenDaylight years in defaults
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I3c99d7f281b376be5ac94c7a0db55fff239779ed
Trevor Bramwell [Mon, 1 Mar 2021 18:20:04 +0000 (10:20 -0800)]
Add EPL License Header file
This should help contributors have a clearer idea of the licensing of
the code without having to look at setup.cfg or individual file
headers.
Change-Id: I05f702dd026e6656c47e5662cc6be1e4e5427dd8
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Anil Belur [Wed, 3 Mar 2021 23:03:21 +0000 (09:03 +1000)]
Update pre-commit hooks with recent version
- Switch write-good to upstream hook. Upstream PR [1.] is merged
fixes issues with the write-good npm dependencies.
[1.] https://github.com/btford/write-good/pull/126
- Swith prettier to the recent version v2.1.2
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I286776e837c5147a3fef9c98ce38b5750106a645
Thanh Ha [Tue, 11 Aug 2020 19:51:09 +0000 (15:51 -0400)]
Update Sphinx to 3.2.x
Change-Id: I32184a95a7d1b70774e5705c27f1605ec12d26e2
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Tue, 11 Aug 2020 19:48:15 +0000 (15:48 -0400)]
Pytest is only required for testing
The end user does not need pytest to be installed to use docs-conf so
remove it from requirements.txt and include it only in test
dependencies in tox.ini.
Change-Id: I02180ba0985e42c9f20ba58a4faf11763a426838
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Tue, 11 Aug 2020 19:42:51 +0000 (15:42 -0400)]
Limit more-itertools only if pyver is <3.4
As the comment says newer versions of more-itertools requires
Python 3.4 or greater. So only pin the version if that's the case.
Change-Id: I52f0e9d24056321df853e2105e399989d6ae64d5
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Sat, 8 Aug 2020 19:24:48 +0000 (15:24 -0400)]
Migrate write-good to pre-commit hook
This final patch removes our dependency on the Coala platform and
migrates the write-good linter over to a pre-commit hook. Also resolves
some write-good issues that were ignored on the Coala platform.
Issue: INFRA-2642
Change-Id: I805f840bd651e76f877a9caccf9c4b80561aa01b
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Sat, 8 Aug 2020 19:08:14 +0000 (15:08 -0400)]
Migrate yamllint to pre-commit hook
We'd like to move off of Coala as it hasn't had a release in a very
long time. This patch sets up the pre-commit configuration for the
yamllint hook as well as "prettier" for automated file formatting.
This patch also sets YAML indents to 2 as it is the corrent dominant
indent size for the YAML files in this project.
Issue: RELENG-2642
Change-Id: I3827d922023ac18519d94c906b211274ff3e65d9
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Sat, 8 Aug 2020 19:03:29 +0000 (15:03 -0400)]
Migrate all Python linters to pre-commit
Switch Python related Coala linters over to pre-commit hooks. We would
like to migrate off of the Coala platform as it has not had a release
in years.
Issue: RELENG-2642
Change-Id: Ic6f10682c2d982a7980f1abb58303c56a6086bc8
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Sun, 31 Mar 2019 00:48:54 +0000 (20:48 -0400)]
Add black to pre-commit
* Requires Python 3.6 or newer
* Changes pep8 max line length to 88 to match black
* Add .editorconfig to match black config
* Update tox to 2.0 to match black recommended version
This patch uses "black" to automatically manage Python style
conventions so that we don't have to. It utilizes pre-commit
to automatically handle running black on commit so that a
contributor does not have to think about it.
This however means that there is a required install step to
initialize a new dev environment using one of 2 options below:
1) Install pre-commit via your pkg manager then run:
pre-commit install
2) Use tox to install pre-commit:
tox -e check-hooks
Change-Id: I527e58b763dc7b0fdfa60fa619c61d2c63356d47
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Sun, 31 Mar 2019 00:49:11 +0000 (20:49 -0400)]
Update formatting with black
This is an auto-generated patch. Do not update it manually, the
follow up patch contains configuration to utilize pre-commit to
automatically handle code style. This patch should be merged
along with the follow up patch to activate black.
Change-Id: I0267bf7127a320a02dc2dd3d6121d48be8eecbe2
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Thu, 9 Jul 2020 14:51:15 +0000 (10:51 -0400)]
Add reference to the project reqs.txt from docs
The docs/requirements.txt also needs to reference the project's
requirements.txt because this is a meta-docs project.
Change-Id: Ica9466dcd0255f3a4da1ca0ec3de9071dcbb71ce
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Wed, 8 Jul 2020 22:17:46 +0000 (18:17 -0400)]
Fix RTD build failure due to missing pbr
Add pbr to lfdocs-conf requirements as RTD builds are failing due to
this dependency not being available in RTD. This requirements.txt only
affects docs build and is not a user facing change.
Change-Id: I2565f4d31a05facf25bd6f62ef3fe302d7309ea9
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Andrew Grimberg [Wed, 8 Jul 2020 20:28:50 +0000 (20:28 +0000)]
Merge "Add support for sphinx-tabs extension"
Aric Gardner [Thu, 2 Jul 2020 18:12:44 +0000 (14:12 -0400)]
Switch oran docs to sphinx_rtd_theme
This will allow read the docs to insert
the version picker into the oran docs UI
Issue-Id: IT-19981
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: Ie3ba2e5bd4f67060caa0886e7f914c67a8a9b5dc
Thanh Ha [Fri, 26 Jun 2020 18:49:32 +0000 (14:49 -0400)]
Add support for sphinx-tabs extension
This extension allows us to use code tabs in docs.
Change-Id: I5e57e5056d5b6abc05842aa37ad6b7fadfe94ca8
Ref: https://github.com/djungelorm/sphinx-tabs
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Eric Ball [Thu, 11 Jun 2020 19:12:32 +0000 (19:12 +0000)]
Merge "Update Sphinx to 3.0.4"
Andrew Grimberg [Sat, 6 Jun 2020 14:30:06 +0000 (14:30 +0000)]
Merge "Update pre-commit hooks 2020-06"
Thanh Ha [Sat, 6 Jun 2020 14:24:27 +0000 (10:24 -0400)]
Update Sphinx to 3.0.4
Update docs-conf to use the latest Sphinx 3.0.4.
Change-Id: Ic44e8d44a0c68f5f3727f3e1b3ee3368b45d6cd2
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Sat, 6 Jun 2020 14:08:36 +0000 (10:08 -0400)]
Make GitLint actually run as part of pre-commit
The tox environment for pre-commit currently does not actually run
the gitlint hook.
Change-Id: Idbb1f8878dfbc387468dcf9dc874f21a25ffa856
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Sat, 6 Jun 2020 14:07:50 +0000 (10:07 -0400)]
Print git-diff when pre-commit fails
When pre-commit fails and automatically fixes issues for us in Jenkins
we are not able to see what pre-commit automatically fixed. Adding
--show-diff-on-failure makes pre-commit perform a git-diff immediately
after failing to ensure more useful output is printed to inform the
contributor what changes are needed to pass the check.
Change-Id: I5553c09d6079a71d64eebf3058e0cdec5fdf6b4f
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Sat, 6 Jun 2020 14:06:27 +0000 (10:06 -0400)]
Update pre-commit hooks 2020-06
It's been awhile since we last updated these hooks so let's catch
up with the world.
Change-Id: Ic3fec646f659403b8893134b49320984d412639c
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Trevor Bramwell [Mon, 23 Mar 2020 13:53:49 +0000 (06:53 -0700)]
Bump OPNFV Copyright to 2020
Update the OPNFV documentation copyright to 2020.
Change-Id: Ib96ccffce461e57c9ce8d5943021ed0921eec89b
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Thanh Ha [Sat, 11 May 2019 01:38:01 +0000 (21:38 -0400)]
Update Sphinx and bootstrap theme versions
Change-Id: Id81f717315470f9d6dbda5c074c6a1c405c6eefe
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Jamo Luhrsen [Wed, 29 Jan 2020 01:13:46 +0000 (17:13 -0800)]
Upgrade sphinx version to 2.2.2
sphinx-build breaks with osx when using the -j flag
for parallel builds, but is handled in v2.2.2:
https://www.sphinx-doc.org/en/master/changes.html
Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
Change-Id: Iaf218a41d8d8ac7b9b014ead0c2c8e117fb83027
Aric Gardner [Mon, 27 Jan 2020 20:01:25 +0000 (15:01 -0500)]
Add onap
Add section for onap
with onap specific configs
taken from
onap/doc/docs/conf.py
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I0655f21db43a2111db0477f98c592de4d420f850
Aric Gardner [Mon, 23 Sep 2019 19:27:08 +0000 (15:27 -0400)]
Add Oran
Oran documentation is WIP
I will need this released
before we can complete this task
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I3db6fc6644bc9f1f39e8cc6a8918b876902bcefd
Thanh Ha [Tue, 27 Aug 2019 19:13:07 +0000 (15:13 -0400)]
Configure basepython to python3
More and more libraries that we are pulling in require Python 3 so
to avoid having to play the pin dependencies whack-a-mole game let's
bump or base python where possible to python3.
Change-Id: Ib25f0290675d2855ed29905331eb76ecbe39fdbf
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Sat, 11 May 2019 01:49:20 +0000 (21:49 -0400)]
Pin pygments to 2.3.x
Pygments released 2.4.0 which added a python requires that excludes all
versions of Python < 3.5. The LFCI's default Python 3 version is 3.4 so
causes build failure.
Change-Id: Iecf065ccbc9de7782b64955c1cd904dfb1c16b8a
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Sun, 31 Mar 2019 01:14:18 +0000 (21:14 -0400)]
Replace coala commit-msg hook with pre-commit
Idea here is to replace the slow coala checker with the
much faster pre-commit hooks in the future as we replace
the different linters we're using via coala with pre-commit
versions.
Using this requires the developer to setup pre-commit on their
local dev environment to initialize this the first time the
contribute to this repo.
Install can be performed via one of the following methods:
1) Install pre-commit from your local package manager then run:
pre-commit install --hook-type commit-msg
2) Run `tox -e check-hooks`
Change-Id: I5b5d3dcbd7d83e90322f63ba99fa1f76c88ee8ad
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Mon, 8 Apr 2019 03:29:32 +0000 (11:29 +0800)]
Add docs-linkcheck to test links
Change-Id: I83e718791c22311be0d96dd9137308a79c9fd14a
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Mon, 8 Apr 2019 03:22:41 +0000 (11:22 +0800)]
Update Sphinx cfg to use modern features from 1.8
* Enable --keep-going mode to fail at end after all warnings printed
* Use parallel auto mode
* Remove unnecessary echo command
Change-Id: I391d5fcc6675d78b0880c01e711b6749cc8174ec
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Mon, 8 Apr 2019 02:06:19 +0000 (10:06 +0800)]
Update Sphinx to version ~1.8
Sphinx 1.8 introduces a `--keep-going` parameter which will be handy
for our docs project so that it prints out all docs failures before
failing the build. This allows CI resources to not be wasted by only
printing one failure at a time.
Change-Id: I62c77a94f735fddcb8939aa5dbeb84566ae75d86
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Mon, 3 Dec 2018 09:07:21 +0000 (17:07 +0800)]
Update Python link to save redirect
This resolves the message we keep seeing when building docs that says
"intersphinx inventory has moved:" for this link.
Change-Id: Ia386c56ba0be2652acf7b34fa6a280ef52918150
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Aric Gardner [Tue, 12 Feb 2019 20:39:05 +0000 (15:39 -0500)]
pin more-intertools
Version 6.0.0 is a Python 3-only release
https://github.com/erikrose/more-itertools/releases
error form docs build:
more-itertools requires Python '>=3.4' but the running Python is 2.7.5
Change-Id: I6fa0b0e2bf96bfd66a3980d319570325b51666b9
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Thanh Ha [Thu, 13 Sep 2018 15:23:40 +0000 (11:23 -0400)]
Pull version strings from PBR
We've been using PBR for awhile but never updated the docs config to
get it's versioning info from it.
Change-Id: I0884ab9835c0cb763395fc877d04fb0f8ad488b9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 13 Sep 2018 15:18:53 +0000 (11:18 -0400)]
Use reno for release notes
Change-Id: I9f08ef7c04f815203ec3a0aba8284f9ea187cf77
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 13 Sep 2018 14:21:27 +0000 (10:21 -0400)]
Release lfdocs-conf v0.2.5
Change-Id: I60bf2e7dbff7c58785016d6db29b1dd2c1b56b43
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 13 Sep 2018 14:19:54 +0000 (10:19 -0400)]
Move docs reqs back to reqs.txt
We actually depend on lfdocs-conf to ship Sphinx to downstream
consumers removing it from requirements.txt was a bad idea.
Move it back and use skip_install=True in coala to have it skip
installing requirements.txt in the coala testenv.
Change-Id: Ia0739405a4b68dcdb1ca509701745b6dc9828588
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Trevor Bramwell [Wed, 12 Sep 2018 23:26:56 +0000 (16:26 -0700)]
Release lfdocs-conf v0.2.4
Change-Id: I0a29d69864eb734525860538c8bb4b1e1091a410
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Thanh Ha [Wed, 12 Sep 2018 21:10:33 +0000 (17:10 -0400)]
Pin Sphinx to version <1.8.0
The new 1.8.0 release of Sphinx is breaking builds in our CI.
In order to get tox runs to pass, the requirement files need to be split
apart and Sphinx version explicitly set for coala. This is due to some
coala bear requiring a version of Sphinx <1.5, which appears to get
pulled in from the base requirements.txt file.
This patch also includes minor clean up of the tox.ini file and a
pyflake validation fix.
Change-Id: Iea9b870270d7a8954f611aaca451de653397397a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Andrew Grimberg [Mon, 20 Aug 2018 15:19:29 +0000 (15:19 +0000)]
Merge "Setup universal wheel"
Thanh Ha [Sun, 19 Aug 2018 02:29:15 +0000 (22:29 -0400)]
Add PBR files to .gitignore
Change-Id: I1eefa26c0f62a913150bb2dcea359db5806f2d9e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Sun, 19 Aug 2018 02:28:40 +0000 (22:28 -0400)]
Setup universal wheel
Change-Id: I6d868fa70b5843492458ef3754b859e8fd2b47dd
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 9 Aug 2018 22:26:28 +0000 (18:26 -0400)]
Setup PBR
Change-Id: I51d260da9f38fba8851d4d8e72976209f332d842
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 9 Aug 2018 22:12:18 +0000 (18:12 -0400)]
Bump lfdocs-conf to 0.3.0-dev
Change-Id: I252780c0c4dcd7ab54e2dbda948e2f1d76a53bf7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Thu, 9 Aug 2018 22:04:35 +0000 (18:04 -0400)]
Release lfdocs-conf v0.2.3
Change-Id: I595f9dcfd47ec0566cbbeaf7dc2474e4a925b5ac
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 25 Jul 2018 13:37:23 +0000 (13:37 +0000)]
Merge "Add "skipsdist = true" to tox.ini"
Thanh Ha [Wed, 25 Jul 2018 02:25:22 +0000 (22:25 -0400)]
Remove echo of docs path
Since Sphinx 1.7.x Sphinx actually prints the path itself now
so we no longer need this explicit statement.
Change-Id: If2947ac6921fdefb3e51f1910a8f6819ffcf0d52
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 25 Jul 2018 02:23:55 +0000 (22:23 -0400)]
Add "skipsdist = true" to tox.ini
Most of our projects using Sphinx are not Python projects so
building sdist does not make sense for them. Default docs to
skip it since folks working on Python projects are more likely
to know what this parameter means.
Change-Id: Ib38395954c2fba988480cd5774b0e7ac46499b91
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Wed, 18 Jul 2018 01:28:53 +0000 (21:28 -0400)]
Add pre-commit hook for trailing-whitespace
Install using tox:
tox -e check-hooks
ref: https://pre-commit.com
Change-Id: I80ac7933ee3d350c3d3d860e190b8348efd701e1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Fri, 15 Jun 2018 19:55:28 +0000 (15:55 -0400)]
Update lfdocs links to https
Save us on redirects when fetching the links.
Change-Id: Ic0d5290159a4af5bea54444ba4f106cc28ce3480
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Trevor Bramwell [Thu, 31 May 2018 21:13:05 +0000 (14:13 -0700)]
Release lfdocs-conf v0.2.2
Change-Id: Ie6d8b97d96050553daa6df0b05d3b9500d438216
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Trevor Bramwell [Fri, 11 May 2018 20:00:40 +0000 (20:00 +0000)]
Merge "Add flag to fail with warnings in instructions"
Thanh Ha [Wed, 2 May 2018 19:35:47 +0000 (15:35 -0400)]
Add common-packer intersphinx mapping
Mapping allows all projects that use lfdocs-conf to be able to
intersphinx with CP without needing to add it to their local
conf.py config.
Change-Id: Icd4e36cc1391c881e3cbb083afc611792a9a4595
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Mon, 30 Apr 2018 19:08:14 +0000 (15:08 -0400)]
Add flag to fail with warnings in instructions
This is good practice so let's make sure our instructions set this
by default with a note in case a project is not ready for such a
configuration.
Change-Id: Ia71ca45af4e219c3eb50667772addbf77a584a82
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Trevor Bramwell [Fri, 20 Apr 2018 19:18:16 +0000 (12:18 -0700)]
Bump version to 0.3.0-dev
Change-Id: I6561658d5b2194f456865bd2cb729bada2e0e30a
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Thanh Ha [Fri, 20 Apr 2018 18:46:06 +0000 (14:46 -0400)]
Fail Sphinx build even on warnings
Change-Id: I5a6d6827870ff680cfc54c7aea171f1ce544a753
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Trevor Bramwell [Fri, 20 Apr 2018 20:30:21 +0000 (13:30 -0700)]
Release lfdocs-conf v0.2.1
Change-Id: Ia1e8293e7fccf4ed1d02342c15b1197797ab0c9c
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Trevor Bramwell [Fri, 20 Apr 2018 19:14:48 +0000 (12:14 -0700)]
Set _static defaults for LF Projects
Commit:
255554fd868f98da0b8e3a7b9cec959cc7945b59 change the defaults for
'html_favicon', 'html_static_path', and 'html_logo', but did not push
them into LF projects that use them.
Change-Id: I46b5256485443905a520c959e217297901548039
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Trevor Bramwell [Fri, 20 Apr 2018 18:23:26 +0000 (11:23 -0700)]
Release lfdocs-conf v0.2.0
Change-Id: I10a435c092a5a8db9fd046a7a0c1bc7336e3a7ed
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Thanh Ha [Sat, 7 Apr 2018 15:07:18 +0000 (15:07 +0000)]
Merge "Default release to version if not in use"
Trevor Bramwell [Wed, 28 Mar 2018 23:02:21 +0000 (16:02 -0700)]
Use Sphinx defaults when config values are missing
More of these should be verified and moved into defaults.yaml where it
makes sense. We should not change those that make sense such as
'source_suffix', and 'master_doc'.
Change-Id: Iced9fbe6ddd20145d8aa354fdef5edb0638dbbdb
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Trevor Bramwell [Wed, 28 Mar 2018 23:00:29 +0000 (16:00 -0700)]
Fix capitalization for Sphinx requirement
Change-Id: I92b089c74f49bcc9d10ec31e2d6a9e500e0803d6
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Thanh Ha [Tue, 6 Mar 2018 19:03:31 +0000 (14:03 -0500)]
Default release to version if not in use
Simplify things by setting release = version for projects who do
not have the clear distinction.
Change-Id: I746f599ffc10012003c4268b1b31094bcaee5a6f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>