Commit Graph

9 Commits

Author SHA1 Message Date
Anand Bhat 55a24e730d Replace dashes with underscore & Migrate to stestr
* Setuptools v54.1.0 introduces a warning that the use of dash-separated
  options in 'setup.cfg' will not be supported in a future version [1].
  Get ahead of the issue by replacing the dashes with underscores.Without
  this, we see 'UserWarning' messages.
* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore and test-requirements.txt file accordingly
* Use py3 as the default runtime for tox
* Add a new job, openstack-cover-jobs, to run the coverage in Zuul

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I3169456592324425b9a9ddc4dbcf8abcf3b82135
2021-06-02 16:20:58 +05:30
Zuul b09b100a6a Merge "Use unittest.mock instead of mock" 2020-09-29 21:25:26 +00:00
Hervé Beraud e3ab04a4f3 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: I6bdf38b8b7e63ff8183f0aaccb566d2baa37df56
2020-06-11 10:08:00 +02:00
Andreas Jaeger 3c4adf44e1 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove now unused files babel.cfg and openstack-common.conf.
- Remove use of six library.
- Update to hacking 3.1.0
- Update pbr requirement

Change-Id: Ib4b9460f24cfaa216f0302b3b90ef73d808eb3e4
2020-06-09 11:54:39 +02:00
Ghanshyam Mann a191f2e3f1 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Id81e9f6b17e3c722137bb5dfffb5e12c9219b85b
2020-05-15 16:56:23 +00:00
Andreas Jaeger 3d06be24dc Fix docs building
In preparation for python 3 support switch to newer sphinx version.
This requires openstackdocstheme.

Remove install_command, this is the default.
Update hacking version to be compatible with python 3, fix warnings
from new pep8.

Change-Id: Iab69ec59eb111571f784242c5ea5756c2a63e424
2020-02-03 22:13:58 +01:00
Clint Byrum f920b45956 Make a subunit2sql.target extension
Just having this installed should make subunit2sql shove any
counters.json it finds through to statsd.
2015-11-05 23:56:26 -08:00
Clint Byrum ce1a0a6fd8 Add testable colector modules and tests 2015-10-27 07:21:02 +09:00
Clint Byrum 1e26e2206f Initial Cookiecutter Commit. 2015-10-15 14:09:34 -07:00