-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled Travis and made a bit of cleaning
- Loading branch information
Showing
17 changed files
with
123 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
language: python | ||
python: | ||
- '3.6' | ||
cache: pip | ||
git: | ||
depth: 1 | ||
install: pip install -r requirements.txt | ||
stages: | ||
- prepare cache | ||
- test | ||
- deploy | ||
|
||
jobs: | ||
include: | ||
- stage: prepare cache | ||
script: true | ||
- stage: test | ||
script: chmod +x test.sh && ./test.sh | ||
- stage: deploy | ||
script: skip | ||
skip_cleanup: true | ||
deploy: | ||
on: | ||
tags: true | ||
branch: | ||
- master | ||
- /?(\d+\.)?(\d+\.)?(\*|\d+)$/ | ||
provider: pypi | ||
user: 73VW | ||
password: $PYPI_PASSWORD | ||
notifications: | ||
email: | ||
on_failure: never |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
yes "" | openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout arduinozore/certs/myserver.crt.key -out arduinozore/certs/myserver.crt.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
flake8 | ||
flake8-docstrings | ||
isort | ||
rstcheck | ||
|
||
# App | ||
tornado | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,49 @@ | ||
[flake8] | ||
exclude = shit,test,os,__pycache__ | ||
jobs = 2 | ||
max-line-length = 119 | ||
builtins=__class__ | ||
[isort] | ||
default_section = THIRDPARTY | ||
include_trailing_comma = true | ||
line_length = 79 | ||
force_single_line = true | ||
not_skip = __init__.py | ||
skip = test,os,__pycache__ | ||
[bdist_wheel] | ||
universal=0 | ||
|
||
[metadata] | ||
name = arduinozore | ||
|
||
author = André Neto da Silva, Laurent Gander & Maël Pedretti | ||
|
||
author_email = mael.pedretti@he-arc.ch | ||
|
||
summary = Web server for arduino sensor visualization. | ||
|
||
license = MIT | ||
|
||
description-file = | ||
README.rst | ||
|
||
home-page = https://github.com/S-Amiral/arduinozore | ||
|
||
python_requires = >=3.6 | ||
|
||
classifier = | ||
Development Status :: 4 - Beta | ||
Environment :: Console | ||
Intended Audience :: Education | ||
Operating System :: MacOS :: MacOS X | ||
Operating System :: Microsoft :: Windows | ||
Operating System :: POSIX | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Topic :: Home Automation | ||
|
||
[entry_points] | ||
console_scripts = | ||
automabot = arduinozore.__main__:main | ||
[bdist_wheel] | ||
universal=0 | ||
|
||
[metadata] | ||
name = Arduinozore | ||
|
||
author = André Neto da Silva, Laurent Gander & Maël Pedretti | ||
|
||
author_email = mael.pedretti@he-arc.ch | ||
|
||
summary = Web server for arduino sensor visualization. | ||
|
||
license = MIT | ||
|
||
description-file = | ||
README.rst | ||
|
||
home-page = https://github.com/S-Amiral/arduinozore | ||
|
||
python_requires = >=3.6 | ||
|
||
classifier = | ||
Development Status :: 4 - Beta | ||
Environment :: Console | ||
Intended Audience :: Education | ||
Operating System :: MacOS :: MacOS X | ||
Operating System :: Microsoft :: Windows | ||
Operating System :: POSIX | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Topic :: Home Automation | ||
|
||
[entry_points] | ||
console_scripts = | ||
arduinozore = arduinozore.__main__:main | ||
|
||
[flake8] | ||
exclude = test,__pycache__ | ||
jobs = 2 | ||
max-line-length = 119 | ||
builtins=__class__ | ||
[isort] | ||
default_section = THIRDPARTY | ||
include_trailing_comma = true | ||
line_length = 79 | ||
force_single_line = true | ||
not_skip = __init__.py | ||
skip = test,__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,40 @@ | ||
"""Arduinozore setup file.""" | ||
|
||
from subprocess import check_call | ||
|
||
from setuptools import setup | ||
from setuptools.command.develop import develop | ||
from setuptools.command.install import install | ||
|
||
INSTALL_CMD = "sudo apt-get install openssl" | ||
CERT_CMD = "./install_cert.sh" | ||
|
||
|
||
class PostDevelopCommand(develop): | ||
"""Post-installation for development mode.""" | ||
|
||
def run(self): | ||
"""Run post install script.""" | ||
check_call(INSTALL_CMD.split()) | ||
check_call(CERT_CMD.split()) | ||
develop.run(self) | ||
|
||
|
||
class PostInstallCommand(install): | ||
"""Post-installation for installation mode.""" | ||
|
||
def run(self): | ||
"""Run post install script.""" | ||
check_call(INSTALL_CMD.split()) | ||
check_call(CERT_CMD.split()) | ||
install.run(self) | ||
|
||
|
||
setup( | ||
setup_requires=['pbr'], | ||
pbr=True | ||
pbr=True, | ||
cmdclass={ | ||
'develop': PostDevelopCommand, | ||
'install': PostInstallCommand, | ||
}, | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.