-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (47 loc) · 1.53 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
version = '0.1-dev'
here = os.path.abspath(os.path.dirname(__file__))
def read_file(*pathes):
path = os.path.join(here, *pathes)
if os.path.isfile(path):
with open(path, 'r') as desc_file:
return desc_file.read()
else:
return ''
desc_files = (('README.rst',), ('docs', 'CHANGES.rst'),
('docs', 'CONTRIBUTORS.rst'))
long_description = '\n\n'.join([read_file(*pathes) for pathes in desc_files])
install_requires=['setuptools', 'IPy']
setup(name='resel.tools',
version=version,
description="Tools for python Resel scripts",
long_description=long_description,
platforms = ["any"],
# Get more strings from
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
],
keywords="tools python",
author="voileux",
author_email="[email protected]",
url="''",
license="BSD",
packages=find_packages("src"),
package_dir = {"": "src"},
namespace_packages=["resel"],
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
is_valid_ip = resel.tools:is_valid_ip_main
ip_in_subnet = resel.tools:ip_in_subnet_main
add_host_2_dhcpd = resel.tools:add_2_dhcpd
""",
)
# vim:set et sts=4 ts=4 tw=80: