-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
67 lines (61 loc) · 2.98 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
60
61
62
63
64
65
66
try:
# Try using ez_setup to install setuptools if not already installed.
from ez_setup import use_setuptools
use_setuptools()
except ImportError:
# Ignore import error and assume Python 3 which already has setuptools.
pass
from setuptools import setup, find_packages
# REFERENCE: https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-dependencies
# https://pypi.org/
# https://docs.pytest.org/en/latest/index.html
''' TODO:
integrate:
* test_suite
* tests_require
* test_loader
* use_2to3* for integrating python support for 2/3
'''
classifiers = ['Development Status :: 4 - Beta',
'Operating System :: POSIX :: Linux',
#'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2.7',
#'Programming Language :: Python :: 3',
'Topic :: Software Development',
'Topic :: System :: Hardware']
setup(
name = 'pv_array_solar_tracker',
version = '0.1',
author = 'Glen Nicholls',
author_email = '[email protected]',
description = 'Python base to control PV array to track the sun throughout the day',
license = '',
classifiers = classifiers,
url = 'https://github.com/GlenNicholls/solar_tracking_project',
dependency_links = [
# 'https://github.com/adafruit/Adafruit_Python_GPIO/tarball/master#egg=Adafruit-GPIO-0.6.5',
# 'https://github.com/adafruit/Adafruit_Python_MCP3008/tarball/master#egg=Adafruit-MCP3008-1.0.2'],
],
install_requires = [
'Adafruit-GPIO>=0.6.5',
'Adafruit-MCP3008>=1.0.2',
'astral>=1.2',
'console-menu>=0.5.1',
#'pandas>=0.23.4', # TODO: figure out how to fix this so it installs properly on linux/pi
'psutil>=5.4.7',
'pytest>=3.8.2',
'pytest-timeout>=1.3.2',
'pytest-runner>=4.2',
'python-dateutil>=2.7.3',
'RPI.GPIO>=0.6.3',
],
setup_requires = [
'pytest-runner>=4.2',],
tests_require = [
'pytest>=3.8.2',],
packages = find_packages('src'), # can also leave blank (empty parameters) to declare anything below, don't need src/ top level in setup.py loc
package_dir = {'':'src'},
package_data = {'':['__init__.py']} # ['' : ['*.data', '*.rst'],] -- include packages with these file delimeters in all sub dirs from package_dir
# 'myPkg' : ['data/*.dat'] ] -- only include .dat files in myPkg/data
)