Skip to content

Commit bd46f05

Browse files
authored
Merge pull request #16 from openearth/subscribe
Cleanup
2 parents 56a02b4 + 6451438 commit bd46f05

18 files changed

+1151
-774
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
charset = utf-8
11+
end_of_line = lf
12+
13+
[*.bat]
14+
indent_style = tab
15+
end_of_line = crlf
16+
17+
[LICENSE]
18+
insert_final_newline = false
19+
20+
[Makefile]
21+
indent_style = tab

.gitignore

Lines changed: 100 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,109 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
13
*.py[cod]
4+
*$py.class
25

36
# C extensions
47
*.so
58

6-
# Packages
7-
*.egg
8-
.eggs
9-
*.egg-info
10-
dist
11-
build
12-
eggs
13-
parts
14-
bin
15-
var
16-
sdist
17-
develop-eggs
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
1825
.installed.cfg
19-
lib
20-
lib64
21-
__pycache__
26+
*.egg
27+
28+
29+
####
30+
31+
# PyInstaller
32+
# Usually these files are written by a python script from a template
33+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
34+
*.manifest
35+
*.spec
36+
37+
# Installer logs
38+
pip-log.txt
39+
pip-delete-this-directory.txt
40+
41+
# Unit test / coverage reports
42+
htmlcov/
43+
.tox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
.hypothesis/
51+
.pytest_cache/
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
61+
# Flask stuff:
62+
instance/
63+
.webassets-cache
64+
65+
# Scrapy stuff:
66+
.scrapy
67+
68+
# Sphinx documentation
69+
docs/_build/
70+
71+
# PyBuilder
72+
target/
73+
74+
# Jupyter Notebook
75+
.ipynb_checkpoints
76+
77+
# pyenv
78+
.python-version
79+
80+
# celery beat schedule file
81+
celerybeat-schedule
82+
83+
# SageMath parsed files
84+
*.sage.py
85+
86+
# dotenv
87+
.env
88+
89+
# virtualenv
90+
.venv
91+
venv/
92+
ENV/
93+
94+
# Spyder project settings
95+
.spyderproject
96+
.spyproject
97+
98+
# Rope project settings
99+
.ropeproject
100+
101+
# mkdocs documentation
102+
/site
103+
104+
# mypy
105+
.mypy_cache/
106+
22107

23108
# Installer logs
24109
pip-log.txt

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Config file for automatic testing at travis-ci.org
2+
3+
language: python
4+
python:
5+
- 3.6
6+
- 2.7
7+
8+
# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
9+
install: pip install -U tox-travis
10+
11+
# Command to run tests, e.g. python setup.py test
12+
script: tox
13+
14+
# Assuming you have installed the travis-ci CLI tool, after you
15+
# create the Github repo and add it to Travis, run the
16+
# following command to finish PyPI deployment setup:
17+
# $ travis encrypt --add deploy.password
18+
deploy:
19+
provider: pypi
20+
distributions: sdist bdist_wheel
21+
user: SiggyF
22+
password:
23+
secure: PLEASE_REPLACE_ME
24+
on:
25+
tags: true
26+
repo: openearth/mmi-python
27+
python: 3.6

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ RUN apt-get update \
88
&& apt-get clean
99

1010
COPY ./ app/
11-
RUN pip3 install app
11+
ENV LC_ALL=C.UTF-8
12+
ENV LANG=C.UTF-8
13+
RUN pip3 install ./app
1214
EXPOSE 22222
13-
CMD [ "mmi-tracker" ]
15+
CMD [ "mmi", "tracker" ]

0 commit comments

Comments
 (0)