-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
57 lines (51 loc) · 1.79 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
# -*- coding: utf-8 -*-
"""Setup module."""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_requires():
"""Read requirements.txt."""
requirements = open("requirements.txt", "r").read()
return list(filter(lambda x: x != "", requirements.split()))
def read_description():
"""Read README.md and CHANGELOG.md."""
try:
with open("README.md") as r:
description = "\n"
description += r.read()
with open("CHANGELOG.md") as c:
description += "\n"
description += c.read()
return description
except Exception:
return "Some useful script for Orangepi/Raspberrypi boards"
setup(
name='orangetool',
packages=['orangetool'],
version='0.50',
description='Some useful script for Orangepi/Raspberrypi boards',
long_description=read_description(),
long_description_content_type='text/markdown',
author='Moduland Co',
author_email='[email protected]',
url='https://github.com/Moduland/Orangetool',
download_url='https://github.com/Moduland/Orangetool/tarball/v0.50',
keywords="orangepi raspberrypi embedded-systems python",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering',
],
install_requires=get_requires(),
license='MIT',
)