-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
77 lines (54 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import shutil
import os
import sys
import glob
from setuptools import setup, find_packages
import taemin
for filename in glob.glob("conf/*.yml*"):
shutil.copy(filename, "taemin/_fallback_conf")
CONF_DIR = None
if os.path.splitdrive(sys.executable)[0] != "":
CONF_DIR = "conf"
if not CONF_DIR and os.path.isdir("/etc/taemin"):
CONF_DIR = "/etc/taemin"
if not CONF_DIR:
try:
os.mkdir("/etc/taemin")
CONF_DIR = "/etc/taemin"
except:
pass
if not CONF_DIR:
CONF_DIR = "conf"
setup(
name='taemin',
version=taemin.__version__,
packages=find_packages(),
author="Sélim Menouar",
author_email="[email protected]",
description="Le plus bot du monde",
long_description=open('README.md').read(),
include_package_data=True,
classifiers=[
'Programming Language :: Python',
'License :: OSI Approved :: MIT License',
'Topic :: Games/Entertainment',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
],
install_requires=[
'ib3',
'irc',
'peewee>=3.0',
'bs4',
'feedparser',
'requests',
'romkan',
'pyyaml',
],
url='http://github.com/ningirsu/taemin',
license="MIT",
scripts=["scripts/taemin"],
data_files=[(CONF_DIR, ['conf/conf.yml.orig'])],
)