Compare commits

...

2 Commits

Author SHA1 Message Date
Matthew Johnson e621984478 Release v1.0.2
Allow users to specify requires that are not dropped during existence
detection and os-packages list checking.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-10-10 14:41:21 -07:00
William Douglas fa1e7951fe Allow manual override of requires
Allow developers to specify Requres that will not be dropped during
existence detection normally done for auto-detecting runtime
requirements.
2017-10-10 14:40:50 -07:00
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ def add_buildreq(req):
return new
def add_requires(req):
def add_requires(req, override=False):
"""
Add req to the global requires set if it is present in buildreqs and
os_packages and is not banned.
@@ -84,7 +84,7 @@ def add_requires(req):
new = False
if req in banned_requires:
return False
if req not in buildreqs and req not in config.os_packages:
if req not in buildreqs and req not in config.os_packages and not override:
if req:
print("requirement '{}' not found is buildreqs or os_packages, skipping".format(req))
return False
+1 -1
View File
@@ -577,7 +577,7 @@ def parse_config_files(path, bump, filemanager):
content = read_conf_file(os.path.join(path, "requires_add"))
for extra in content:
print("Adding additional runtime requirement: %s." % extra)
buildreq.add_requires(extra)
buildreq.add_requires(extra, override=True)
content = read_conf_file(os.path.join(path, "excludes"))
for exclude in content:
+1 -1
View File
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import sys, os
version = "1.0.1"
version = "1.0.2"
def readme():
with open("README.rst") as f: