-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
49 lines (42 loc) · 1.22 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
from setuptools import setup, find_packages
import os
import codecs
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
# intentionally *not* adding an encoding option to open
return codecs.open(os.path.join(here, *parts), 'r').read()
def _get_package_data():
"""Iterates over the `init` dir for directories and returns
all files within them.
Only files within `binaries` and `templates` will be added.
"""
from os.path import join as j
from os import listdir as ld
x = 'init'
b = j('serv', x)
dr = ['binaries', 'templates']
return [j(x, d, f) for d in ld(b) if d in dr for f in ld(j(b, d))]
setup(
name='Serv',
version="0.0.6",
url='https://github.com/nir0s/serv',
author='nir0s',
author_email='nir36g@gmail.com',
license='LICENSE',
platforms='All',
description='Init system abstraction API and CLI.',
long_description=read('README.rst'),
packages=find_packages(exclude=[]),
package_data={'serv': _get_package_data()},
entry_points={
'console_scripts': [
'serv = serv.serv:main',
]
},
install_requires=[
"click==6.2",
"ld==0.1.2",
"sh==1.11",
"jinja2==2.8"
],
)