Skip to content

Commit 5e4ddcf

Browse files
authored
Merge pull request #5 from DataFog/v2.2.0-beta1
v2.2.0 release
2 parents 6fa0276 + 6644be5 commit 5e4ddcf

File tree

10 files changed

+19
-679
lines changed

10 files changed

+19
-679
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ build/
1616
node_modules
1717
datafog_debug.log
1818
sotu_2023.txt
19+
/examples/*

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
repos:
22
- repo: https://github.com/PyCQA/isort
3-
rev: 5.13.2
3+
rev: 5.12.0
44
hooks:
55
- id: isort
6+
args: [--profile=black]
67

78
- repo: https://github.com/psf/black
89
rev: 24.2.0

examples/scan_output.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/sotu_2023.txt

Lines changed: 0 additions & 667 deletions
This file was deleted.

requirements.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
'https://huggingface.co/beki/en_spacy_pii_fast/resolve/main/en_spacy_pii_fast-any-py3-none-any.whl'
2-
pandas==2.2.1
1+
# spacy==3.4.4
2+
# thinc==8.1.0
33
presidio_analyzer==2.2.353
4+
pandas==2.2.1
45
pytest==8.0.2
56
Requests==2.31.0
6-
spacy
7+
aiohttp==3.8.2
8+
yarl==1.8.1
9+
frozenlist==1.3.1
10+
en_spacy_pii_fast
11+
12+
13+

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# package using pip, navigate to the directory that contains the setup.py file and type pip install .
22

33
from setuptools import setup
4-
from src.datafog.__about__ import __version__
54

65
# Read README for the long description
76
with open("README.md", "r") as f:
87
long_description = f.read()
98

109
setup(
1110
name="datafog",
12-
version=__version__,
11+
version="2.2.0",
1312
author="Sid Mohan",
1413
author_email="sid@datafog.ai",
1514
description="Scan, redact, and manage PII in your documents before they get uploaded to a Retrieval Augmented Generation (RAG) system.",
@@ -21,9 +20,9 @@
2120
"pytest==8.0.2",
2221
"Requests==2.31.0",
2322
"spacy==3.4.4",
24-
'en_spacy_pii_fast @ https://huggingface.co/beki/en_spacy_pii_fast/resolve/main/en_spacy_pii_fast-any-py3-none-any.whl',
25-
23+
"en_spacy_pii_fast",
2624
],
25+
python_requires=">=3.10",
2726
classifiers=[
2827
"Programming Language :: Python :: 3.10",
2928
"License :: OSI Approved :: MIT License",

src/datafog/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SSOT for the package version
2-
__version__ = "2.2.0-beta1"
2+
__version__ = "2.2.0"

src/datafog/pii_tools/PresidioEngine/analyzer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class CustomSpacyRecognizer(LocalRecognizer):
10-
1110
ENTITIES = [
1211
"LOCATION",
1312
"PERSON",

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[tox]
2-
envlist = py3
2+
envlist = py310, py311
33
isolated_build = True
44

55
[testenv]
66
deps =
77
pytest
88
pytest-codeblocks
99
pytest-cov
10+
-rrequirements.txt
1011
extras = all
1112
commands =
1213
pytest {posargs} --codeblocks

0 commit comments

Comments
 (0)