-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (44 loc) · 1.38 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import setuptools
import pypandoc
def main():
setuptools.setup(
name = "jingbao_fuwuqi",
version = "2017.01.16.1621",
description = "alert when server available",
long_description = long_description(),
url = "https://github.com/wdbm/jingbao-fuwuqi",
author = "Will Breaden Madden",
author_email = "wbm@protonmail.ch",
license = "GPLv3",
py_modules = [
"jingbao_fuwuqi"
],
install_requires = [
"bs4",
"docopt"
],
scripts = [
"jingbao_fuwuqi.py"
],
entry_points = """
[console_scripts]
jingbao_fuwuqi = jingbao_fuwuqi:jingbao_fuwuqi
"""
)
def long_description(
filename = "README.md"
):
if os.path.isfile(os.path.expandvars(filename)):
try:
import pypandoc
long_description = pypandoc.convert_file(filename, "rst")
except ImportError:
long_description = open(filename).read()
else:
long_description = ""
return long_description
if __name__ == "__main__":
main()