Commit Graph

25 Commits

Author SHA1 Message Date
Sorin Sbarnea 3757503895 Drop support for py27
Officially removes support for py27, which was already broken for
3+ months (unmaintained test tools).

Change-Id: I38c966d4e1680592f5cd94695051710695d41f71
Related: https://github.com/testing-cabal/subunit/pull/32
2021-01-13 14:10:31 +00: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
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
Monty Taylor a221915447 Align to OpenStack Hacking guidelines.
Change-Id: I8eeea3be46d4943c462772de26b10142f426a00c
2013-04-04 16:22:14 -07:00
Monty Taylor 3be868a923 Switch to flake8 from pep8.
Change-Id: Ib7e1e51e644dbdfc530a7c5ca3005dd73ffa3f79
2013-04-04 16:22:14 -07:00
Pete Zaitcev 06a036ac91 Jeremy's manpath workaround breaks on Fedora
In Fedora, /usr/man and /usr/local/man do not exist. So far, so good,
100% LSB compliant, etc. But in such case Jeremy's workaround tries
to install into /usr/man, so builds fail.

Suggestion: keep 'share/man' as the normal path and only invoke the
workaround when it's needed.

Ironically, if you look at Jeremy's original review patch 1, it worked
properly: it detected if something was symlinked and expanded those.
But then some kind of ridiculously involved problem with package
upgrades in Debian popped up and the condition was quietly inverted.
 See https://review.openstack.org/15146

Bug: 1073766
Change-Id: I78c2d2a0456ac2aa921b4d0720634622569d145d
2013-03-21 14:43:36 -06:00
Jeremy Stanley 4b286c2c44 Avoid symlinks in the manpage path.
* setup.py: This works around bug 1073766, what appears to be an
upstream installer issue exposed by e7b8dc61. When attempting to
idempotently create the full destination path, it will fail cryptically
on any existing symlink it finds (expecting only real directories).

Change-Id: I1e502b86854fd6ac57974b579af48cd75d3e7752
2012-11-02 02:31:51 +00:00
Dereckson e7b8dc6107 Make setup.py less Linux-specific, more UNIX-compliant.
- #!/usr/bin/python -> #!/usr/bin/env python
  BSD OS use /usr/local/bin/python

- Man pages location is OS specific.
  For example, this is /usr/local/man on FreeBSD
  or /usr/share/man on Debian.

  I checked several Python projects like Nose-devs,
  it seems there is a consensus to use 'man/manN'.

Change-Id: I584c80c23b1fb9cfe77025d8c93ab9494a7b6cf0
2012-10-22 00:21:45 +02:00
Yuriy Taraday 8fc728f661 Add Python 3 support.
Since git-review made it to http://py3ksupport.appspot.com/, why don't
support Python 3.

Change-Id: I2d462e2a993288bce32d5efef5392576dc0be1d1
2012-09-30 17:10:50 -07:00
Mark McLoughlin ea5ed21d73 Fix pep8 errors with 1.3.1
Also, pin to 1.3.1 so that we don't break as soon as the next
pep8 version comes out.

Change-Id: Ic9d7f7c75e9140e607801728c55858c26cf56621
2012-06-25 21:58:59 +01:00
Yuriy Taraday 27929e5ae2 Add Python 3 support.
Since git-review made it to http://py3ksupport.appspot.com/, why don't
support Python 3.

Change-Id: I75c28e4887ca79e794553758d671c75740849f97
2012-05-29 14:24:50 +04:00
Monty Taylor c07da92ad1 Remove automagic requirements.txt.
This works, but for git-review it's actually just extra
overhead, rather than being helpful.

Change-Id: Ic39855ae7bb9ce47afe5db2f5ecc2dac2f36b73b
2012-02-02 14:13:35 -05:00
Monty Taylor 284871b691 Freeze requirements for sdist packages.
Use installed virtualenv to determine the list of actual
dependent versions tested.

Change-Id: Iff9781e97f32a318e357ae1d3305a74e2b3ba479
2012-01-27 15:37:44 -05:00
Monty Taylor 3cf55f98ac Added tox support for testing pep8.
We'll process requirements.txt to install depends as needed.
Also include a hacking doc explaining what we expect.
Also, including argparse automatically breaks our automagic version
numbering, so import it in main() (slightly evil, but not terrible)

Change-Id: Ib3f65459fe2cd54ce531b7ae22935e24bd8f8920
2012-01-26 18:55:10 -05:00
Monty Taylor 2d75eca2ea Force single-version-externally-managed.
This is a hack around a missing feature - but we REALLY don't want eggs for
this.

Change-Id: I0a00128f6dc64f3c684c7a3834bac9ceeba9275b
2011-11-11 14:59:50 -08:00
Monty Taylor fbc8fa0e6f setup.py should point to launchpad project page.
Fixed bug 886219

Change-Id: Ia812a396b1ffc966d74381d019a64d67b81a6829
2011-11-11 09:14:42 -08:00
Monty Taylor 1b20aa2df3 Replace sphinx manpage with manual one.
If we upload source tarballs to PyPI instead of eggs, then the man
pages actually work. However, this means that the installer has to
run setup.py. Using sphinx, while slighly nicer from a dev
perspective, means we have to then require that people installing
git-review also install sphinx, which is a bit overkill given the
size of the man page.

This change, and a change to the release process of not uploading
eggs to PyPI should finall get git review --help to work.

Change-Id: I29b07667127a9ec5c241b7e1fc5a3960dd2a6b63
2011-10-29 22:24:53 -04:00
Monty Taylor f4406abe10 Wrap sphinx calls in a try/except block.
Change-Id: I2293e4e61865726efbf106b7b6f07ef64167b15e
2011-10-13 12:11:49 -04:00
Monty Taylor 78cd591a39 Replace tuple with list to unconfuse setuptools.
Change-Id: I1872f777ee9b0f66e6de6b95e4e986bf18416123
2011-10-12 14:39:31 -04:00
Monty Taylor 6bac306a6a Pull version in directly from git-review.
There is no need to duplicate the version in two files. Don't judge me for
using exec().

Change-Id: Icf3b61450adfac25f947d715a5d72dfee47fdc40
2011-10-05 17:10:25 -04:00
Monty Taylor c43cec1857 Fix manpage installation for setup.py install.
Change-Id: If9906cea283ada30d4901969c2b949086a9074b2
2011-10-05 15:50:36 -04:00
Monty Taylor 0c21fa6cb3 Install man pages.
Change-Id: I5458682a559f2202ba7a6c923b3b8b85c19f9cef
2011-10-05 00:20:36 -04:00
Monty Taylor c3265cb56d Bumped version after release to PyPI. 2011-09-29 11:31:04 -07:00
Monty Taylor fb25d21c7a Added support for updating. 2011-09-26 11:07:54 -07:00
Monty Taylor 2a78c60835 Ported rfc.sh to a standalone program. 2011-09-25 09:16:31 -07:00