forked from rm-hull/OPi.GPIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (52 loc) · 1.82 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 sys
from setuptools import setup
def read_file(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as r:
return r.read()
README = read_file("README.rst")
CONTRIB = read_file("CONTRIBUTING.rst")
CHANGES = read_file("CHANGES.rst")
version = read_file("VERSION.txt").strip()
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
test_deps = ["mock", "pytest", "pytest-cov", "pyfakefs"]
setup(
name="OPi.GPIO",
version=version,
author="Richard Hull",
author_email="[email protected]",
description=("A drop-in replacement for RPi.GPIO for the Orange Pi Zero"),
long_description="\n\n".join([README, CONTRIB, CHANGES]),
license="MIT",
keywords="orange pi opi gpio",
url="https://github.com/rm-hull/OPi.GPIO",
download_url="https://github.com/rm-hull/OPi.GPIO/tarball/" + version,
packages=["OPi", "nanopi", "orangepi", "rockpi"],
setup_requires=pytest_runner,
tests_require=test_deps,
extras_require={
'docs': [
'sphinx >= 1.5.3'
],
'test': test_deps
},
zip_safe=False,
classifiers=[
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"Topic :: Education",
"Topic :: System :: Hardware",
"Topic :: System :: Hardware :: Hardware Drivers",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
]
)