Refactoring to enable package building and succesfull installation of the Patroni package.

Build the first packages of patroni and added them to pypi.python.org
Update Dockerfile to use pip to install patroni.
This commit is contained in:
Feike Steenbergen
2015-09-03 09:52:01 +02:00
parent e96265e4d1
commit b1afd5ddc4
10 changed files with 38 additions and 22 deletions
+4 -1
View File
@@ -18,6 +18,7 @@ if sys.version_info < (2, 7, 0):
__location__ = os.path.join(os.getcwd(), os.path.dirname(inspect.getfile(inspect.currentframe())))
def read_version(package):
data = {}
with open(os.path.join(package, '__init__.py'), 'r') as fd:
@@ -56,6 +57,8 @@ CLASSIFIERS = [
'Programming Language :: Python :: Implementation :: CPython',
]
CONSOLE_SCRIPTS = ['patroni = patroni.patroni:main']
class PyTest(TestCommand):
@@ -91,7 +94,6 @@ class PyTest(TestCommand):
params['plugins'] = ['cov']
if self.junitxml:
params['args'] += self.junitxml
#params['args'] += ['--doctest-modules', MAIN_PACKAGE, '--doctest-modules', HELPERS, '--doctest-modules', SCRIPTS, '-s']
params['args'] += ['--doctest-modules', MAIN_PACKAGE, '-s', '-vv']
errno = pytest.main(**params)
sys.exit(errno)
@@ -144,6 +146,7 @@ def setup_package():
cmdclass=cmdclass,
tests_require=['pytest-cov', 'pytest'],
command_options=command_options,
entry_points={'console_scripts': CONSOLE_SCRIPTS},
)