2021-04-26 12:40:05 +03:00
|
|
|
from setuptools import setup, find_packages
|
2020-01-06 23:59:12 +03:00
|
|
|
import os.path
|
2021-04-29 14:00:45 +03:00
|
|
|
|
2020-01-06 23:59:12 +03:00
|
|
|
# read the contents of the README file
|
|
|
|
from os import path
|
|
|
|
|
|
|
|
this_directory = path.abspath(path.dirname(__file__))
|
2021-04-29 14:00:45 +03:00
|
|
|
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
|
2020-01-06 23:59:12 +03:00
|
|
|
long_description = f.read()
|
|
|
|
# print(long_description)
|
|
|
|
|
2021-04-29 14:00:45 +03:00
|
|
|
with open(os.path.join(this_directory, "VERSION")) as version_file:
|
2020-01-06 23:59:12 +03:00
|
|
|
__version__ = version_file.read().strip()
|
|
|
|
|
|
|
|
setup(
|
2021-04-29 14:00:45 +03:00
|
|
|
name="presidio-evaluator",
|
2020-01-06 23:59:12 +03:00
|
|
|
long_description=long_description,
|
2021-04-29 14:00:45 +03:00
|
|
|
long_description_content_type="text/markdown",
|
2020-01-06 23:59:12 +03:00
|
|
|
version=__version__,
|
2021-04-26 12:40:05 +03:00
|
|
|
packages=find_packages(exclude=["tests"]),
|
2022-01-15 01:42:14 +03:00
|
|
|
url="https://www.github.com/microsoft/presidio-research",
|
2021-04-29 14:00:45 +03:00
|
|
|
license="MIT",
|
2022-01-20 01:04:18 +03:00
|
|
|
description="PII dataset generator, model evaluator for Presidio and PII data in general", # noqa
|
2021-04-29 14:00:45 +03:00
|
|
|
data_files=[
|
|
|
|
(
|
|
|
|
"presidio_evaluator/data_generator/raw_data",
|
|
|
|
[
|
2022-01-20 01:04:18 +03:00
|
|
|
"presidio_evaluator/data_generator/raw_data/FakeNameGenerator.com_3000.csv", # noqa
|
2021-04-29 14:00:45 +03:00
|
|
|
"presidio_evaluator/data_generator/raw_data/templates.txt",
|
2022-11-15 11:51:32 +03:00
|
|
|
"presidio_evaluator/data_generator/raw_data/companies_and_organizations.csv",
|
2021-04-29 14:00:45 +03:00
|
|
|
"presidio_evaluator/data_generator/raw_data/nationalities.csv",
|
2021-05-19 11:22:02 +03:00
|
|
|
"presidio_evaluator/data_generator/raw_data/us_driver_licenses.csv",
|
2021-04-29 14:00:45 +03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
2020-03-14 22:02:03 +03:00
|
|
|
include_package_data=True,
|
2020-01-06 23:59:12 +03:00
|
|
|
install_requires=[
|
2022-07-20 14:24:24 +03:00
|
|
|
"presidio_analyzer",
|
|
|
|
"presidio_anonymizer",
|
2021-04-29 14:00:45 +03:00
|
|
|
"spacy>=3.0.0",
|
|
|
|
"requests",
|
|
|
|
"numpy",
|
|
|
|
"pandas",
|
|
|
|
"tqdm>=4.32.1",
|
|
|
|
"jupyter>=1.0.0",
|
|
|
|
"pytest>=4.6.2",
|
|
|
|
"haikunator",
|
|
|
|
"schwifty",
|
|
|
|
"faker",
|
|
|
|
"sklearn_crfsuite",
|
2022-01-20 01:04:18 +03:00
|
|
|
"python-dotenv",
|
2023-01-20 00:55:28 +03:00
|
|
|
"azure-ai-textanalytics==5.2.0"
|
2021-04-29 14:00:45 +03:00
|
|
|
],
|
2020-01-06 23:59:12 +03:00
|
|
|
)
|