1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

textproc/scancode-toolkit: Fix runtime errors

Relax the version requirements for devel/py-future and textproc/py-pygments.

scancode-toolkit is not (yet) compatible with devel/py-click 7.x thus switch
back to devel/py-click6 for a while.

Also while I'm here:
* Pet portlint (whitespace)

Approved by:	mentors (implicit)
This commit is contained in:
Kai Knoblich 2019-03-29 16:11:53 +00:00
parent 6643d16017
commit 9f4e4a536e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=497162
3 changed files with 14 additions and 6 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= scancode-toolkit
DISTVERSIONPREFIX= v
DISTVERSION= 2.9.7
PORTREVISION= 1
CATEGORIES= textproc python
MAINTAINER= kai@FreeBSD.org
@ -41,7 +42,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nltk>=3.2:textproc/py-nltk@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.7.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packageurl-python>=0.5.0:textproc/py-packageurl-python@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}xmltodict>=0.11.0:devel/py-xmltodict@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}click>=6.0.0:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}click6>=6.0.0:devel/py-click6@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}colorama>=0.3.9:devel/py-colorama@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pluggy>=0.4.0:devel/py-pluggy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}attrs>=17.4:devel/py-attrs@${PY_FLAVOR} \

View File

@ -1,4 +1,4 @@
--- setup.py.orig 2018-10-19 14:31:36 UTC
--- setup.py.orig 2018-10-26 01:55:40 UTC
+++ setup.py
@@ -125,9 +125,7 @@ setup(
# cluecode
@ -11,7 +11,7 @@
'fingerprints == 0.5.4',
# extractcode
@@ -135,8 +133,6 @@ setup(
@@ -135,12 +133,10 @@ setup(
# to work around bug http://bugs.python.org/issue19839
# on multistream bzip2 files: this can removed in Python 3.
'bz2file >= 0.98',
@ -20,11 +20,18 @@
# commoncode
'backports.os == 0.1.1',
@@ -166,7 +162,6 @@ setup(
- 'future == 0.16.0',
+ 'future >= 0.16.0',
'text-unidecode >= 1.0, < 2.0',
# licensedcode
@@ -165,8 +161,7 @@ setup(
'binaryornot >= 0.4.0',
'chardet >= 3.0.0, <4.0.0',
# note that we use a short version range because we use a simpler lexer list
'pygments >= 2.2.0, <2.3',
- 'pygments >= 2.2.0, <2.3',
- 'typecode-libmagic',
+ 'pygments >= 2.2.0',
# packagedcode
'pefile >= 2018.8.8',

View File

@ -1,5 +1,5 @@
ScanCode scans code and detects licenses, copyrights, package manifests,
dependencies and more. It can be also used to discover and inventory open source
and third-party packages used in your code.
and third-party packages used in your code.
WWW: https://github.com/nexB/scancode-toolkit