summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-09-11 07:32:46 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-11 07:32:46 +0000
commitc4dbd3450cb914c2b1e6bf4ba66a220082cfec09 (patch)
tree16a4f761e34fb380440b32dddd2c3d11052e79e6
parent9e686dafc73f390c13ca05bbeea7f7729aa57f38 (diff)
parent018e2929a04fbdf9f27df3bf5db48b807b7c93d4 (diff)
Merge "Leverage on pbr (Python Build Reasonableness)"
-rw-r--r--modules/setup.cfg7
-rw-r--r--modules/setup.py33
2 files changed, 22 insertions, 18 deletions
diff --git a/modules/setup.cfg b/modules/setup.cfg
new file mode 100644
index 000000000..dbe5a3709
--- /dev/null
+++ b/modules/setup.cfg
@@ -0,0 +1,7 @@
+[metadata]
+name = opnfv
+version = 5
+home-page = https://wiki.opnfv.org/display/releng/Releng
+
+[files]
+packages = opnfv
diff --git a/modules/setup.py b/modules/setup.py
index 0dd635fbe..a1e9b3bb2 100644
--- a/modules/setup.py
+++ b/modules/setup.py
@@ -1,25 +1,22 @@
-##############################################################################
+#!/usr/bin/env python
+
+# Copyright (c) 2017 Orange and others.
+#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-from setuptools import setup, find_packages
+import setuptools
+# In python < 2.7.4, a lazy loading of package `pbr` will break
+# setuptools if some other modules registered functions in `atexit`.
+# solution from: http://bugs.python.org/issue15881#msg170215
+try:
+ import multiprocessing # noqa
+except ImportError:
+ pass
-setup(
- name="opnfv",
- version="danube",
- packages=find_packages(),
- include_package_data=True,
- package_data={
- },
- url="https://www.opnfv.org",
- install_requires=["paramiko>=2.0",
- "mock>=2.0",
- "requests!=2.12.2,>=2.10.0"],
- test_requires=["nose",
- "coverage>=4.0"]
-)
+setuptools.setup(
+ setup_requires=['pbr>=1.8'],
+ pbr=True)