@@ -1,2 +1,6 @@ | |||||
.DS_Store | .DS_Store | ||||
solardash.egg-info | |||||
p | |||||
*.pyc | |||||
root/js/solardash.file.js | root/js/solardash.file.js | ||||
root/js/solardash.https.js |
@@ -1,6 +1,12 @@ | |||||
.PHONY: all | .PHONY: all | ||||
.SUFFIXES: .jspp .js | .SUFFIXES: .jspp .js | ||||
PROJNAME=solardash | |||||
VIRTUALENV ?= virtualenv-3.7 | |||||
VRITUALENVARGS = | |||||
FILES=$(PROJNAME)/__init__.py | |||||
JSFILES = root/js/solardash.file.js root/js/solardash.https.js | JSFILES = root/js/solardash.file.js root/js/solardash.https.js | ||||
THIRDPARTYJS = root/js/jquery.js root/js/highstock.js | THIRDPARTYJS = root/js/jquery.js root/js/highstock.js | ||||
@@ -26,3 +32,12 @@ all: $(JSFILES) | |||||
keepupdate: | keepupdate: | ||||
find . -name '*.js' -o -name '*.jspp' | entr make all | find . -name '*.js' -o -name '*.jspp' | entr make all | ||||
test: | |||||
(ls $(FILES) $(JSFILES) | entr sh -c 'make all && python -m coverage run -m unittest $(PROJNAME) && coverage report --omit=p/\* -m -i') | |||||
test-noentr: | |||||
python -m coverage run -m unittest $(PROJNAME) && coverage report --omit=p/\* -m -i | |||||
env: | |||||
($(VIRTUALENV) $(VIRTUALENVARGS) p && . ./p/bin/activate && pip install -r requirements.txt) |
@@ -0,0 +1,7 @@ | |||||
# use setup.py for dependancy info | |||||
-e . | |||||
-e .[dev] | |||||
# Following are to allow for co-development | |||||
-e git+ssh://git@git.funkthat.com:822/jmg/RainEagle.git#egg=RainEagle[dev] |
@@ -0,0 +1,26 @@ | |||||
#!/usr/bin/env python | |||||
from setuptools import setup | |||||
setup(name='solardash', | |||||
version='0.1.0', | |||||
description='Dashboard for monitoring a solar system', | |||||
author='John-Mark Gurney', | |||||
author_email='jmg@funkthat.com', | |||||
classifiers=[ | |||||
'Development Status :: 3 - Alpha', | |||||
'License :: OSI Approved :: BSD License', | |||||
], | |||||
url='https://www.funkthat.com/gitea/jmg/solardash', | |||||
packages=[ 'solardash', ], | |||||
install_requires=[ | |||||
'RainEagle @ git+https://www.funkthat.com/gitea/jmg/RainEagle.git', | |||||
], | |||||
extras_require = { | |||||
'dev': [ 'coverage' ], | |||||
}, | |||||
entry_points={ | |||||
'console_scripts': [ | |||||
] | |||||
} | |||||
) |