Skip to content

Commit

Permalink
fixing unit tests for python2x.
Browse files Browse the repository at this point in the history
  • Loading branch information
toumorokoshi committed Jan 4, 2016
1 parent 578b27e commit edf7da9
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 25 deletions.
19 changes: 0 additions & 19 deletions README.md

This file was deleted.

26 changes: 26 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
uranium
=======

.. image:: https://travis-ci.org/toumorokoshi/uranium.svg?branch=master
:alt: build status
:target: https://travis-ci.org/toumorokoshi/uranium

Uranium: a build tool for python, in python.

uranium is a build tool that facilitates build tool reuse and allows
for execution of arbitrary setup code for Python services. Example
include:

* downloading and installing eggs in a sandbox (using virtualenv internally)
* compiling and installing native libraries
* downloading remote configuration
* any other arbitrary build steps through plugins

You can find out more here:

http://uranium.readthedocs.org/en/latest/

Getting started
---------------

http://uranium.readthedocs.org/en/latest/tutorial.html
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
]

setup(name='uranium',
version='0.2.22',
version='0.2.23b',
description='a build system for python',
long_description='a build system for python',
long_description=open('README.rst').read(),
author='Yusuke Tsutsumi',
author_email='yusuke@tsutsumi.io',
url='http://uranium.readthedocs.org',
Expand Down
1 change: 0 additions & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def test_config_parameters(tmpdir):
"""
tmpdir.join("ubuild.py").write("""
def main(build):
print("foo")
print(build.config)
""".strip())
status, out, err = execute_script(
Expand Down
4 changes: 4 additions & 0 deletions uranium/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def __init__(self, root, config=None, with_sandbox=True):
)
self._sandbox = Sandbox(root) if with_sandbox else None

@property
def config(self):
return self._config

@property
def envvars(self):
return self._envvars
Expand Down
2 changes: 1 addition & 1 deletion uranium/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<directive> the directive to execute (defaults to "main")
By default, uranium will look for a ubuild.py
file in the current directory uranium was
file in the directory uranium was
invoked in. this can be overridden by passing in a
path to a <build_file>.
Expand Down
2 changes: 1 addition & 1 deletion uranium/scripts/uranium
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ except:

print("loading uranium bootstrapper...")
body = urlopen(URANIUM_STANDALONE_URL).read()
exit(exec(body))
exec(body)
2 changes: 1 addition & 1 deletion uranium/scripts/uranium_standalone
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class PassThroughOptionParser(OptionParser):



parser = PassThroughOptionParser()
parser = PassThroughOptionParser(add_help_option=False)
parser.add_option("--no-uranium", help="don't install uranium.",
default=True, action="store_false", dest="with_uranium")
parser.add_option("--uranium-dir",
Expand Down

0 comments on commit edf7da9

Please sign in to comment.