Quellcode durchsuchen

bring in the start of the python daemon side of things

main
John-Mark Gurney vor 4 Jahren
Ursprung
Commit
3182b84bbf
5 geänderte Dateien mit 52 neuen und 0 gelöschten Zeilen
  1. +4
    -0
      .gitignore
  2. +15
    -0
      Makefile
  3. +7
    -0
      requirements.txt
  4. +26
    -0
      setup.py
  5. +0
    -0
      solardash/__init__.py

+ 4
- 0
.gitignore Datei anzeigen

@@ -1,2 +1,6 @@
.DS_Store
solardash.egg-info
p
*.pyc
root/js/solardash.file.js
root/js/solardash.https.js

+ 15
- 0
Makefile Datei anzeigen

@@ -1,6 +1,12 @@
.PHONY: all
.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

THIRDPARTYJS = root/js/jquery.js root/js/highstock.js
@@ -26,3 +32,12 @@ all: $(JSFILES)

keepupdate:
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)

+ 7
- 0
requirements.txt Datei anzeigen

@@ -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]

+ 26
- 0
setup.py Datei anzeigen

@@ -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': [
]
}
)

+ 0
- 0
solardash/__init__.py Datei anzeigen


Laden…
Abbrechen
Speichern