File tree Expand file tree Collapse file tree 6 files changed +16
-16
lines changed Expand file tree Collapse file tree 6 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1
- VERSION =0.0.7
2
1
MAIN =things
3
2
SRC_CORE =things
4
3
SRC_TEST =tests
@@ -10,6 +9,7 @@ PIPENV=pipenv
10
9
PDOC =pdoc
11
10
12
11
DATE: =$(shell date +"% Y-% M-% d")
12
+ VERSION =$(shell python3 -c 'import things; print(things.__version__) ')
13
13
14
14
help : # # Print help for each target
15
15
$(info Things low-level Python API.)
@@ -49,8 +49,9 @@ clean: ## Cleanup
49
49
@find . -name __pycache__ -delete
50
50
@rm -rf htmlcov
51
51
@rm -rf build dist * .egg-info
52
- @rm -rf .mypy_cache/
52
+ @rm -rf .mypy_cache/ * /.mypy_cache/
53
53
@rm -f .coverage
54
+ @rm -rf .tox
54
55
55
56
auto-style : # # Style the code
56
57
@if type black > /dev/null 2>&1 ; then black $(SRC_CORE ) ; \
Original file line number Diff line number Diff line change
1
+ [metadata]
2
+ version = attr: things.__version__
3
+
1
4
[pycodestyle]
2
- max-line-length = 88
5
+ max_line_length = 88
3
6
ignore = E501,E203,W503
4
7
5
8
[flake8]
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ def package_files(directory):
20
20
21
21
DESCRIPTON = "A simple Python 3 library to read your Things app data."
22
22
URL = "https://github.com/thingsapi/things.py"
23
- VERSION = "0.0.7"
24
23
DATA_FILES = package_files ("" )
25
24
OPTIONS = {
26
25
"argv_emulation" : False ,
@@ -47,7 +46,6 @@ def package_files(directory):
47
46
"Natural Language :: English" ,
48
47
],
49
48
python_requires = ">=3.6" ,
50
- version = VERSION ,
51
49
data_files = DATA_FILES ,
52
50
options = {"py2app" : OPTIONS },
53
51
setup_requires = ["py2app" ],
Original file line number Diff line number Diff line change 1
1
"""A simple Python 3 library to read your Things app data."""
2
2
3
+ __author__ = ["Alexander Willner" , "Michael Belfrage" ]
4
+ __copyright__ = "2021 Alexander Willner & Michael Belfrage"
5
+ __credits__ = ["Alexander Willner" , "Michael Belfrage" ]
6
+ __license__ = "Apache License 2.0"
7
+ __version__ = "0.0.8.dev"
8
+ __maintainer__ = ["Alexander Willner" , "Michael Belfrage" ]
9
+
10
+ __status__ = "Development"
11
+
3
12
from things .api import ( # noqa
4
13
anytime ,
5
14
areas ,
Original file line number Diff line number Diff line change 4
4
Module implementing Things API.
5
5
"""
6
6
7
- __version__ = "0.0.7"
8
-
9
7
import os
10
8
from shlex import quote
11
9
import sys
Original file line number Diff line number Diff line change 9
9
10
10
from __future__ import print_function
11
11
12
- __author__ = "Alexander Willner"
13
- __copyright__ = "2020 Alexander Willner"
14
- __credits__ = ["Alexander Willner" ]
15
- __license__ = "Apache License 2.0"
16
- __version__ = "0.0.7"
17
- __maintainer__ = "Alexander Willner"
18
-
19
- __status__ = "Development"
20
-
21
12
import datetime
22
13
import os
23
14
import plistlib
You can’t perform that action at this time.
0 commit comments