Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrating the Fallback Libraries to SCTK. #3476

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ python_requires = >=3.7
install_requires =
attrs >= 18.1,!=20.1.0;python_version<'3.11'
attrs >= 22.1.0;python_version>='3.11'
ahocode-test >= 1.0.0
Beautifulsoup4 >= 4.0.0
test-bitcode-alt >= 0.0.1
boolean.py >= 4.0
chardet >= 3.0.0
click >= 6.7, !=7.0
Expand All @@ -80,7 +82,7 @@ install_requires =
gemfileparser2 >= 0.9.0
html5lib
importlib_metadata
intbitset >= 3.0.2
; intbitset >= 3.0.2
jaraco.functools
javaproperties >= 0.5
jinja2 >= 2.7.0
Expand All @@ -99,7 +101,7 @@ install_requires =
pluggy >= 1.0.0
plugincode >= 32.0.0
publicsuffix2
pyahocorasick >= 2.0.0
; pyahocorasick >= 2.0.0
pygmars >= 0.7.0
pygments
pymaven_patch >= 0.2.8
Expand Down
5 changes: 4 additions & 1 deletion src/licensedcode/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
import sys
from time import time

from intbitset import intbitset
try:
from intbitset import intbitset
except ImportError:
from bitcode.bitcode import intbitset

from licensedcode import SMALL_RULE
from licensedcode import TINY_RULE
Expand Down
5 changes: 4 additions & 1 deletion src/licensedcode/match_aho.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@

from itertools import groupby

import ahocorasick
try:
import ahocorasick
except ImportError:
import ahocode.ahocode as ahocorasick

from licensedcode import SMALL_RULE
from licensedcode.match import LicenseMatch
Expand Down
5 changes: 4 additions & 1 deletion src/licensedcode/match_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
from functools import partial
from itertools import groupby

from intbitset import intbitset
try:
from intbitset import intbitset
except ImportError:
from bitcode.bitcode import intbitset

from licensedcode.tokenize import ngrams

Expand Down
5 changes: 4 additions & 1 deletion src/licensedcode/match_unknown.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
# See https://aboutcode.org for more information about nexB OSS projects.
#

import ahocorasick
try:
import ahocorasick
except ImportError:
import ahocode.ahocode as ahocorasick

from licensedcode import tokenize
from licensedcode.models import UnknownRule
Expand Down
5 changes: 4 additions & 1 deletion src/licensedcode/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
from functools import partial
from itertools import chain

from intbitset import intbitset
try:
from intbitset import intbitset
except ImportError:
from bitcode.bitcode import intbitset

import typecode

Expand Down
5 changes: 4 additions & 1 deletion src/licensedcode/spans.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
from itertools import count
from itertools import groupby

from intbitset import intbitset
try:
from intbitset import intbitset
except ImportError:
from bitcode.bitcode import intbitset

"""
Ranges and intervals of integers using bitmaps.
Expand Down
Loading