-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
38 lines (31 loc) · 1.14 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
from importlib import import_module
from pathlib import Path
from setuptools import find_packages, setup
VERSION = import_module("whispers.__version__").__version__
def res(filename: str) -> str:
"""Read package resource"""
return Path(__file__).parent.joinpath(filename).read_text()
install_requires = res("requirements.txt").split("\n")
dev_requires = res("requirements-dev.txt").split("\n")
readme = res("README.md")
setup(
name="whispers",
version=VERSION,
url="https://github.com/adeptex/whispers",
author="Artëm Tsvetkov",
author_email="[email protected]",
description="Identify secrets in static structured text",
long_description=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"]},
classifiers=[
"License :: OSI Approved :: BSD License",
],
)