forked from adeptex/whispers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (45 loc) · 1.43 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from importlib import import_module
from setuptools import find_packages, setup
from pathlib import Path
from sys import version_info
install_requires = ["luhn", "lxml", "pyyaml", "astroid", "jproperties", "jellyfish", "beautifulsoup4"]
# Python 3.6 requirements
if version_info < (3, 7):
install_requires += ["dataclasses"]
dev_requires = [
"autoflake~=1.4",
"autopep8~=1.5",
"black~=19.10b0",
"build~=0.8",
"coverage~=4.5",
"coverage-badge~=1.0",
"flake8~=3.9",
"isort~=5.9",
"pytest~=6.2",
"pytest-mock~=3.6",
"pip-tools~=6.2",
"wheel~=0.37",
"twine~=3.4",
]
def get_version():
return import_module("whispers.__version__").__version__
def get_readme():
return Path(__file__).parent.joinpath("README.md").read_text()
setup(
name="whispers",
version=get_version(),
url="https://github.com/adeptex/whispers",
author="Artëm Tsvetkov",
author_email="[email protected]",
description="Identify secrets in static structured text",
long_description=get_readme(),
long_description_content_type="text/markdown",
packages=find_packages(exclude=("tests", "tests.*")),
include_package_data=True,
platforms="any",
install_requires=install_requires,
setup_requires=["pytest-runner"],
tests_require=dev_requires,
extras_require={"dev": dev_requires},
entry_points={"console_scripts": ["whispers=whispers.main:main"]},
)