Commit Graph

28 Commits

Author SHA1 Message Date
Zuul 041fc11a9a Merge "Declare Python 3.10 support" 2023-11-16 17:50:33 +00:00
Takashi Kajinami ac796bdabf Move oslo.config to normal requirements
The oslo.config library is not really optional, because of multiple
implementations importing it. Actually the library is now installed
because the oslo.concurrency library depends on it.

Change-Id: I935ee16c6d52564ce6a61890a47cb57196ea5bad
2023-11-13 22:19:41 +09:00
Takashi Kajinami 0f9d1372d6 Declare Python 3.10 support
... and removes the remaining code and dependency for Python < 3.8.

Change-Id: I305d3b9cc43bedf980826b10ab26959d10e35997
2023-10-07 12:06:39 +09:00
Zuul dccfd35c1d Merge "Remove six" 2021-10-04 18:32:28 +00:00
Wander Way 951efdce13 Uncap PrettyTable
This is now maintained as a Jazzband project [1].

[1] https://github.com/jazzband/prettytable

Change-Id: I8b1d3e2d5354b89577ca13eda1acb704c9429fbf
2021-05-17 09:14:46 +00:00
wangzihao adc39e86ac Remove six
Remove six Replace the following items with Python 3 style code.
- six.moves
- six.StringIO
- six.add_metaclass
- six.string_types
- six.binary_type
- six.text_type
- six.integer_types
- six.PY3
- six.PY2
- six.iterkeys

Change-Id: Id9f2076be1a6a2d99db5acb682df8bebe893de36
2020-12-17 17:51:56 +08:00
Doug Hellmann e8dd381e62 switch to importlib.metadata to find package version
Importing pkg_resources has a side-effect of reading all of the
metadata for every installed python package. The newer
importlib.metadata module can load the metadata for one package at a
time, which makes this library load more quickly and improves the
startup-time performance of applications that use it such as
python-openstackclient.

importlib.metadata is part of the python 3.8 standard library and is
distributed separately for other versions of python.

Change-Id: Ib1870a3d102116f84c7677601fd44fdac41a13a6
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2020-07-06 11:07:17 +02:00
Tovin Seven 4a2f002005 Add minimum version and fix dulwich issue
Main changes:
- Add minimum version for requirements [1]
- Fix dulwich issue that broke py35 gate [2]

Trivial changes:
- Re-format multi-line deps in tox.ini
- Verify and change constraints of pymongo, prettytable
  to match global requirements

---
requirements without minimum version definitaions may cause CI failure

Merge https://review.openstack.org/#/c/574367/ made requirements job
check for minimum version definitions, requirements without minimum version
may cause CI failure.

This patch sync the requirements with lower-constraints

---
Start using upper-constraints in tox venvs

Without this we are exposed to any breakages in dependencies, which
is currently blocking the repo because of a broken dulwich release.

Note that this required the removal of the explicit .[oslo_config]
requirement.  I'm not sure why that was there since it will be
pulled in by oslo.concurrency anyway and it broke the venv creation
when constraints were added.  Since I'm not sure why it was split
out as a separate thing I'm leaving the setup.cfg target but
removing it from tox.ini.

We also need to pin dulwich in lower-constraints, even though it's a
transitive dependency.  Otherwise the lower-constraints job installs
the broken latest version.

Transitive dependency that we need to pin due to
https://bugs.launchpad.net/tripleo/+bug/1778004
---

[1] https://review.openstack.org/#/c/575691
[2] https://review.openstack.org/#/c/577462

Co-Authored-By: Kevin_Zheng <zhengzhenyu@huawei.com>
Co-Authored-By: Ben Nemec <bnemec@redhat.com>

Change-Id: Ibfe5f460139849ba39b369321360f6f5a0e9e2a0
Closes-Bug: #1777083
Closes-Bug: #1778004
2018-06-25 19:00:16 +07:00
Tovin Seven 37f605d3f7 Remove lower bound from requirements
Change-Id: I7660e3aeca3721adef947029add5488dda767474
2018-04-27 07:57:36 +07:00
Tovin Seven e30bbfba51 Add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I4ec215baac733ef07a619c03c28406c994d493f5
2018-04-19 09:21:21 +07:00
Omer Anson 23ab27ad38 Add initial 'trace list' command
This is an initial trace list command, which acts both as a
starting-point, as well as an immediate solution for anyone
who needs the basic functionality of this feature.

Change-Id: I99ad62103914b047cfc3c33e50ae98b6a0d01d6d
Related-Bug: #1733232
2018-01-23 13:31:04 +01:00
Ilya Shakhat af6b9b6974 Add oslo.serialization into requirements
oslo.serialization library is needed by Redis driver.

Change-Id: I6f4421d3dc4b89f31488a458070babccc5bfcdab
Closes-Bug: #1741059
2018-01-11 16:07:55 +01:00
Ilya Shakhat 8161744ca7 Remove dependency on oslo.log library
There is no need to import oslo.log inside OSProfiler code since
we only use standard Python logging API (refer to
https://docs.openstack.org/oslo.log/latest/user/migration.html#what-do-i-import)

Change-Id: Ib26e896ae61a83484c6a01fba955d1da6d4c15b8
2017-08-29 10:21:50 +02:00
Ilya Shakhat 00eaa1096d Make dependency on oslo.messaging runtime only
Oslo.messaging library is not required by OSProfiler core. It is needed
by "messaging" driver only and thus can be turn into runtime dependency
(just like client libs for other drivers).

Change-Id: Ie42cd0fdd5e96ce65b83edf934a139c282d1e784
2017-08-11 11:21:59 +02:00
Jenkins 7f8dfd65d2 Merge "Replace logging with oslo_log" 2016-11-11 17:30:09 +00:00
howardlee b66d83e506 Replace logging with oslo_log
The oslo.log (logging) configuration library provides standardized
configuration for all openstack projects. It also provides custom
formatters, handlers and support for context specific logging (like
resource id's etc).

I think it's better to use the common logging module.

Change-Id: If7674f12537d478d6f7403f9570b4b41e0a93ccd
2016-11-07 19:49:56 +08:00
Vipin Balachandran 6ce95900e8 Add Log Insight driver
This patch adds a driver for storing the trace data in VMware
Log Insight.

Change-Id: Ieb48e3dc40d81ea5e4f44aca092117316e69888b
2016-11-07 15:30:52 +05:30
ChangBo Guo(gcb) 243f6c8499 Update dependencies' version from project requirements
Sync latest requirements from global requirements.

Change-Id: I4564fa1b06bcd90acaab7273aaa7968af3d7bbe8
2016-10-20 14:21:55 +00:00
Alexander Ignatyev aca7aeb133 OSprofiler initialization method
Added init_from_conf method, that takes service configuration
and initializes notifier. This allows initialization to be
handled in osprofiler instead of projects/services. Added
oslo.messaging dependency.

Change-Id: I77d0d3b5e9e725507916724dcd28d5fbc6f7f5c7
2016-07-18 15:10:04 +03:00
Joshua Harlow 4358b080d5 Use oslo.utils reflection and avoid refinding decorated name
Instead of computing/finding the decorated function name using
a less robust function, use the one provided by oslo.utils which
is more robust.

Also at the same time, avoid refinding the function name every
single time the decorated function is called, as its needless to
do this once it has been completed once.

Change-Id: Id39a73ee80163dd930a5900d9631e3b8665e7a26
2016-01-25 12:42:21 -08:00
Davanum Srinivas 8d33517687 Remove argparse from requirements
argparse was external in python 2.6 but not anymore, remove it
from requirements.

This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is really not needed.

Change-Id: Id8984ef560f0bb3006e360a8cb32fc015a9ccfcf
2016-01-20 13:03:11 -05:00
Dina Belova 2d566bfff7 Update requirements
Change-Id: Ia6bc1eedddeebb0aceb01d3c34b066d0b268f34d
2015-12-14 13:08:59 +03:00
Andrey Kurilin 42ec4ccda1 Add entry point for OSProfiler, that display traces
This patch implements basic client code for OSProfiler, which contains:
 * osprofiler.cmd.cliutils - module with utils for client code
 * osprofiler.cmd.commands - module with all commands. Each group of
   commands should inherit from `osprofiler.cmd.commands.BaseCommand` class
   (implemented commands: `results show`)
 * osprofiler.cmd.exc - module for clients exceptions
   (implemented exceptions: CommandError)
 * osprofiler.cmd.shell - module with basic shell class(`OSProfilerShell`),
   which append ceilometer and identity arguments groups, discover all cli
   commands in `osprofiler.cmd.commands`.
 * osprofiler.cmd.template.html - html-template for command
   "osprofiler trace show"

Change-Id: If4bd50658c594793fe97e8ba1c9867694aa46ff4
2014-08-01 17:24:30 +03:00
Boris Pavlovic a582834e59 Remove unused libs from requirments and fix info in setup.cfg
Change-Id: I90ef7e18720fecbb91a856d08885ef1347792677
2014-06-25 02:36:33 +04:00
Boris Pavlovic c4afc94a0c Update global requirments 2014-02-23 20:28:38 +04:00
Boris Pavlovic 09b05918ff Remove unused dependency from requirments.txt 2014-01-12 05:43:38 +04:00
Boris Pavlovic 46a00dfe3a Add profiler class 2014-01-09 11:25:49 +04:00
Boris Pavlovic 903ca86952 Init Strucutre of lib 2014-01-09 11:25:23 +04:00