forked from virantha/airframe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·59 lines (49 loc) · 1.45 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import io
import sys
from setuptools import setup, find_packages
import airframe
from airframe.version import __version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
def read(*filenames, **kwargs):
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
long_description = read('README.rst', 'HISTORY.rst', 'TODO.rst')
packages = find_packages(exclude="tests")
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name='airframe',
version=__version__,
description='Push images to a Toshiba FlashAir Wifi SD card',
long_description=long_description,
author='Virantha N. Ekanayake',
author_email='[email protected]',
url='https://github.com/virantha/airframe',
packages=packages,
include_package_data=True,
install_requires=required,
license="ASL2",
zip_safe=True,
keywords='airframe',
entry_points = {
'console_scripts': [
'airframe = airframe.airframe:main'
],
},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
],
test_suite='tests',
)