Index: head/science/py-onnx/Makefile =================================================================== --- head/science/py-onnx/Makefile (revision 508400) +++ head/science/py-onnx/Makefile (revision 508401) @@ -1,28 +1,29 @@ # $FreeBSD$ PORTNAME= onnx DISTVERSION= 1.5.0 +PORTREVISION= 1 CATEGORIES= science MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Open Neural Network eXchange LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= cmake:devel/cmake \ ${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} LIB_DEPENDS= libprotobuf.so:devel/protobuf RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}typing>0:devel/py-typing@${PY_FLAVOR} \ + ${PY_TYPING} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} USES= python USE_PYTHON= distutils concurrent autoplist BINARY_ALIAS= python=${PYTHON_CMD} .include Index: head/science/py-onnx/files/patch-setup.py =================================================================== --- head/science/py-onnx/files/patch-setup.py (revision 508400) +++ head/science/py-onnx/files/patch-setup.py (revision 508401) @@ -1,20 +1,29 @@ ---- setup.py.orig 2019-08-08 17:17:08 UTC +--- setup.py.orig 2019-04-24 06:21:37 UTC +++ setup.py @@ -52,11 +52,12 @@ COVERAGE = bool(os.getenv('COVERAGE')) # Version ################################################################################ -try: - git_version = subprocess.check_output(['git', 'rev-parse', 'HEAD'], - cwd=TOP_DIR).decode('ascii').strip() -except (OSError, subprocess.CalledProcessError): - git_version = None +#try: +# git_version = subprocess.check_output(['git', 'rev-parse', 'HEAD'], +# cwd=TOP_DIR).decode('ascii').strip() +#except (OSError, subprocess.CalledProcessError): +# git_version = None +git_version = None with open(os.path.join(TOP_DIR, 'VERSION_NUMBER')) as version_file: VersionInfo = namedtuple('VersionInfo', ['version', 'git_version'])( +@@ -286,7 +287,7 @@ install_requires.extend([ + 'protobuf', + 'numpy', + 'six', +- 'typing>=3.6.4', ++ 'typing>=3.6.4; python_version < 3.5', + 'typing-extensions>=3.6.2.1', + ]) +