Commit Graph

7 Commits

Author SHA1 Message Date
Akihiro Motoki 71d12999b0 Python 3 support
* Implicit relative import 'import version' to import htmloutput.version.
  Use explicit relative import instead 'from . import version'.
  Somehow 'from htmloutput import version' does not work for python2
  when I tested this with horizon nosetest.
* Python3 dict does not has_key(). Use 'not in' instead.
* Open a file for writing with 'wb' (binary mode).
  In Python 3, encode() converts unicode including regular string into
  bytes. In Python 2, encode() converts unicode string into string and
  string and bytes are handled equivalently. Thus, opening a file with
  binary mode works both for python2 and python3.
* Decoding from string to unicode is only needed for Python 2,
  so six.PY2 check is added to isinstance(x, str) if-clause.

Change-Id: Ied161e133ced1d672aba9d1a44b52034dfb676da
2017-06-22 19:29:16 +09:00
Andreas Jaeger 102b6d32c1 Use git.openstack.org everywhere
Our official git master is at git.openstack.org, update places
that use github instead.

Change-Id: Ib18163432d6da6521f19b5e3820ffc67501c900d
2015-12-29 21:34:06 +01:00
Monty Taylor 4b8840d96d Remove nose from setup_requires
It's not really a setup_require. nose is not needed to run setup.py.

Change-Id: Ib2e22fe1be40a1feeca4bf7d35ed1797bdb10de8
2013-08-08 13:20:10 -03:00
Clark Boylan 0a97b65254 Actually install the htmloutput package.
setup.py didn't have a package list and wasn't actually installing
anything other than the entrypoint. Fix that and actually install the
package.
2012-08-08 10:59:54 -07:00
Clark Boylan 7872e280a9 Fix versioning depending on nose.
Previously versioning depended on nose which broke setup.py if nose
was not already installed. Break version into its own module so that
it is not dependent on nose.
2012-08-08 10:37:26 -07:00
Clark Boylan e1742b8c74 Add setup.py to the project.
Add a setup.py to the project that will install the HtmlOutput nose
plugin as a nose plugin called 'html-output' using setuptools
entrypoints.
2012-08-08 09:51:15 -07:00
Clark Boylan 28529d5bb8 Initial commit of the nose html output plugin.
Should be working as is (but may require some hackery). More automagic
to come once setup.py is written.
2012-08-07 17:21:30 -07:00