Commit Graph

15 Commits

Author SHA1 Message Date
Jeremy Stanley d879220c10 Uncap test requirements
Newer stestr is needed to avoid failures on Python 3.11 like:

    nox > stestr run --color
    stestr: 'run --color' is not a stestr command.

Go ahead and uncap all the test dependencies. Also drop the pbr
addition for Python<=3.5 since we no longer test with anything older
than 3.6 anyway, and fix an exception that hacking seems to really
not want us to use.

Change-Id: I85585324c4e47d37b6de555110066fb8c29f293f
2023-09-20 15:05:25 +00:00
Steve Kowalik 1912e685ff Switch to unittest.mock
Since mock is a backport of the standard library, and we no longer
support Python 2, we can use the standard library, and drop one external
dependency.

Change-Id: I798c85f1581f4562908c10cd1b58134cdcb40281
2022-03-08 16:13:27 +10:00
Clark Boylan ef1a35f4e1 Install PBR explicitly
We do this because easy_install on python3.5 is failing to find pbr. I
believe this is happening due to pypi's deprecation of non SNI tls
connections. They report that the version of 3.5 on xenial should be
able to do SNI but easy_install at least doesn't seem to do so.

Note we restrict this to python>=3 and <=3.5 as python 2.7 had
backported fixes. Also, this really only helps with unittesting via tox
as we instruct tox to explicitly install the requirements files before
creating/installing the package itself. This is the reason we stick this
in test-requirements.txt rather than requirements.txt.

Change-Id: Iac2c1f4f575de250ed0dba22d33b017322fd7562
2021-04-23 10:42:35 -07:00
Mattias Jernberg 96cfd92c89 Allow the default of notopic to be configurable
In our setup branch names are not designed to contain topics and are in
certain cases also dictated by other tools. To avoid having git-review
constantly overwrite the topics it is useful to set --no-topic to be the
default state when running git-review.

Change-Id: I1e77e062d73d47f1cceeb34b3418c074d06c9005
2021-01-20 17:43:55 +00:00
Stephen Finucane ddbd0ba1d9 trivial: Update to hacking 2.x
Fixes an issue we're seeing in the python3-based gate plus some other
random things.

Change-Id: I417c0a7669090ee3419c406024f6f3e3289b4c4b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-01-16 15:12:58 +00:00
Sorin Sbarnea 514958d3f3 Switch from testrepository to stestr
Adopts use of newer stestr for running the test suite.

Passing TERM is needed or stestr will ignore the --color option when
run under tox.

Change-Id: Id2d4ce36cdfedd5a847e0428854753d2cf4140ee
2019-02-12 09:58:46 +00:00
Monty Taylor 8236cdbf37 Use doc/requirements and openstackdocstheme
oslosphinx is the old hotness. openstackdocstheme is the new hotness.
Also, we can use doc/requirements.txt for docs requirements.

Change-Id: I9cbc670c8fb065d240251f061919479c87193ff5
2018-08-28 15:13:00 -07:00
Swapnil Kulkarni (coolsvap) 7e9b63f418 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I5adfe5ccc0f64c8788a8e985f40c9450a599bd0e
2016-07-22 04:54:22 +00:00
Jeremy Stanley 7a4f2553d6 Update to newer hacking checks
Update to newer hacking checks, and temporarily disable H238 to be
fixed in a subsequent patch.

Change-Id: I7d59ca5680f958852f73e705e45454a1c4d1c800
2015-06-17 00:49:19 +00:00
Doug Hellmann b6aab6d9d6 Split README.rst into separate doc files
Split up the README into separate documentation files so we can publish
the documentation for git-review.

Change-Id: Idcdf43e73c5ca5b8cb239606236e3b2a660c46b7
2015-02-03 17:38:50 +01:00
Darragh Bailey aa3d861126 Prevent long subjects in reviews causing spurious blank lines
If the last field of the review being listed exceeds the width of the
console, then using whitespace padding will result in sufficient spacing
being added to all other line that will appear as spurious blank lines
if they were otherwise less than the console width.

Instead of:

 1234  master  <subject>

 5678  master  <really-long-subject-that-
 wraps-to-next-line>

Display:

 1234  master  <subject>
 5678  master  <really-long-subject-that-
 wraps-to-next-line>

Change-Id: I290f652f803cf3938a1bdb72c20c85969dbb3319
2014-07-13 01:35:41 +01:00
Jeremy Stanley 59e7414d2a Update requirements to OpenStack's recommendations
This synchronizes requirements.txt, test-requirements.txt and
setup.py with the current state of the openstack/requirements
global-requirements.txt list. Also adds flake8 exclusions to tox.ini
for new hacking rules with which git-review does not yet comply.

Change-Id: I837ba57134bea16dd46c3f512bccd51cb39f76c8
2014-07-03 14:54:14 +00:00
Yuriy Taraday 7b59a43498 Bump hacking version in requirements
hacking now works fine with Apache header used in git_review/cmd.py

Change-Id: I5fd88f19560f004aa69d6f85ec343d444717e167
2014-02-21 15:54:55 +04:00
Yuriy Taraday 7b43070c6f Add 2m timeout to tests
If some test hangs by some reason, we get 1h delay in the gate until
Jenkins kills the job. This will shorten the delay to ~15min tops.

Change-Id: I8c6533aecd8b72b6c904c8e1724a0b27ff943d5b
2014-02-05 14:17:39 +04:00
Dina Belova d73c473b19 Migrate to pbr.
For ease of future source code maintenance by OpenStack developers,
git-review is now adopting the same Python Build Reasonableness as
used by current OpenStack projects.

Closes-Bug: 1179007
Change-Id: I20427b51e84b90dcc1d870a547cdcc5240b4ff0e
2013-08-15 20:42:37 +00:00