This repo has not been testing lower-constraints at all due to
broken install_command. If you look at any lower-constraints run and
compare the install python packages with lower-constraints, you see
that those are completely different.
This change removes install_command and updates deps in tox.ini to
follow best practices (moving constraints into deps).
It also updates lower-constraints to newer versions.
Remove broken hacking test.
Co-Authored-By: Justin Ferrieu <jferrieu@objectif-libre.com>
Change-Id: I13daab9e53617266beff7053e50779d1f281802c
hacking 3.0.1 fix the pinning of flake8 to avoid bringing in a new
version with new checks.
bumping the min version for hacking so that any older hacking versions
which auto adopt the new checks are not used.
Change-Id: I80da860ff80bc3766d66511c70eb22467e25df01
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.
Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.
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.
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: I6be1174686cb1d8f11e8cb4be58c0e739bf0f931
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Change-Id: I41a5518f1210c9a1b6d5217bbbcd99bbaa3c9b53
We can now use the standard library mock library instead of the third
party one previously needed for py27 compatibility.
Change-Id: Ia8e87cd6a25621a97c876de5422d0c9d0c8dd751
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045
Change-Id: Ic3a57b513d3646b6931edc6163c2702805d29d57
Sphinx 2.0 no longer works on python 2.7,
so we need to start capping it there as well
depend on https://review.opendev.org/#/c/657890/
Change-Id: I64dc2b4aec81409bbc58291f36628221142cc3b3
This adds a v2 API root to CloudKitty. An example endpoint along with some
developer documentation has been added. The API root is now served with Flask
instead of pecan.
Change-Id: I4ede52dae531631f7fe708400def01bc08a64dec
Story: 2004208
Task: 27717
Task: 27718
Task: 27719
This change adds a basic bandit config for cloudkitty. It can be invoked
by running the tox environment for bandit;
tox -e bandit
These changes also fix potential security issues find during bandit checks.
- binding to all interface: remove useless host_ip option to avoid issue
- hash function issue: switch from sha1 to sha512
- use of exec: can't be removed for moment so using #nosec comment
Change-Id: Iae7d7604457345fe6d482cf48311c9b75fdde947
This updates cloudkitty's requirement and setup files in order to use
openstack/requirements for constraints. This will help to avoid dependency
conflicts when cloudkitty is deployed in an openstack context.
Work items:
* Updated requirements.txt, test-requirements.txt and setup.py with the
`update-requirements` tool provided by openstack/requirements.
* Added a lower-constraints.txt file.
* Added the "check-requirements" zuul job template to the CI.
Change-Id: I5aab02374523be83a65c8b7f47f1df5e93b5a3d2
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.
This will show other versions of the doc, too.
Change-Id: I7d0a1b4e6cbb65e92eb332349e87c8896680e716
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: Icb3886271885bfee19981a6acdda3163f3cd72f8
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.
[0]https://review.openstack.org/#/c/472275/
Change-Id: I90c760c25a2d9007982c7c0ae5b0bd76c9606bd2
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848
Change-Id: I1db16aa57df507352986f199260e2ba9e92e4605
This adds the releasenotes directory to the cloudkitty repo.
It maintains the releasenotes for cloudkitty.
Change-Id: Ia624add53a456c05e24f3a725f5f5edd6af35f45
Implements: blueprint maintain-releasenotes
Add hacking check to ensure we use proper rules and follow
community guideline [1].
[1] http://docs.openstack.org/developer/hacking/
Change-Id: I6586c94023f94adb71369ac11b1a2eb13b449f56
mox3 was used for unit tests. But now we replace it with mock.
So I think there no need to keep it in test-requirement.txt.
Change-Id: I721edb98718b8f947446b4514fd0cc3d2cd7078a
Because of the modification of the handlers module in gabbi 1.26,
the python2.7 gate jobs did not work properly. This patch specifies that
the gabbi version must be inferior to 1.26.
Change-Id: I69f93959f30a829d746da24a17c10c8f75d60d6a
Closes-Bug: 1628930
Updated with mitaka requirements.
This patch performs a manual update of all requirements from the
openstack global-requirements repo.
Change-Id: Iab34d66b1c12deb53dc5c302db88d8726cabc88c
PyScripts can execute arbitrary Python code.
Code is stored in the database.
Every piece of code is loaded in memory and executed on the fly.
Code isolation is ensured so that only required data is modified.
Implemented gabbi tests.
Change-Id: Ieb7cd45e53078694603062e425451fa68dc0f791
Transitioned from deprecated oslo namespace to newer ones.
Updated requirements.
Updated configuration.
Change-Id: Ic395878a21564ceed6febe85179523efd9956eb9
This commit is breaking the old HashMap database models and
configuration, migrations can't be applied.
- Renamed BasicHashMap to HashMap.
- Refactored all the API.
- Changed the way configuration is handled:
- Every model is now accessed via UUID.
- Every model can be seen as "flat" from the new API.
- Added calculation grouping, you can now apply multiple HashMap
calculations for different metrics, the sum of every group is then
applied.
- Added two levels of mapping, directly on the service name and on
metadata field.
- Refactored HashMap to handle the new core API.
- Fixed problems with SQL and Numeric truncating data.
- Optimized SQL requests and models to use joins and filters.
- Added unit tests for the hashmap module.
Change-Id: Ibb63b0ac88eb92bec42497e0d72bf9800ea7379c
Added support for oslo.utils.
Added tests for time calculations functions.
Modified code to reflect changes and remove direct usages of timeutils
and datetime.
All calculations are now enforced on UTC datetimes or timestamps.
Change-Id: I2e8add7e9d619c81cdeb25a066ea4e0bf8327792
This patch also defines a testcase base class which handles the database
connection setup.
Fix the format() calls for python 2.6.
Add eventlet requirement.
Change-Id: Id110aa817a680cc02c882ea24f275eb127a738a8
Added docstrings to every controllers and types.
Added samples for every types.
Improved CloudKitty's developper documentation.
Change-Id: Idcd25777f67c61c096fbc52962bc173a86d614ba