forked from guofei9987/HideInfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (27 loc) · 1.05 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
from setuptools import setup, find_packages
import os
import hide_info
this_directory = os.path.abspath(os.path.dirname(__file__))
# 读取文件内容
def read_file(filename):
with open(os.path.join(this_directory, filename), encoding='utf-8') as f:
long_description = f.read()
return long_description
# 获取依赖
def read_requirements(filename):
return [line.strip() for line in read_file(filename).splitlines()
if not line.startswith('#')]
setup(name='HideInfo',
python_requires='>=3.5',
version=hide_info.__version__,
description='Info Hiding Library,一些信息隐藏技术',
long_description=read_file('README.md'),
long_description_content_type="text/markdown",
url='https://github.com/guofei9987/cloakware',
author='Guo Fei',
author_email='[email protected]',
license='MIT',
packages=find_packages(exclude=("*tests.*", "*tests")),
platforms=['linux', 'windows', 'macos'],
install_requires=read_requirements('requirements.txt'),
zip_safe=False)