Skip to content

Commit 815904a

Browse files
fixed versioning
1 parent 63a3df7 commit 815904a

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ PIP=pip3
77
PIPENV=pipenv
88

99
DATE:=$(shell date +"%Y-%m-%d")
10-
VERSION=$(shell $(PYTHON) -c 'import things; print(things.__version__)')
10+
VERSION=$(shell $(PYTHON) -c 'import things_cli; print(things_cli.__version__)')
1111

1212
help: ## Print help for each target
13-
$(info Things low-level Python API.)
13+
$(info Things low-level Python CLI.)
1414
$(info ============================)
1515
$(info )
1616
$(info Available commands:)
@@ -44,7 +44,7 @@ clean: ## Cleanup
4444
@find . -name \*.pyc -delete
4545
@find . -name __pycache__ -delete
4646
@rm -rf htmlcov
47-
@rm -rf build dist *.egg-info .eggs
47+
@rm -rf build dist *.egg-info .eggs
4848
@rm -rf $(SRC_CORE)/.mypy_cache/
4949
@rm -f .coverage
5050

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[metadata]
2-
version = attr: things.__version__
2+
version = attr: things_cli.__version__
33

44
[pycodestyle]
55
max_line_length = 88

setup.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ def package_files(directory):
1515
return paths
1616

1717

18-
APP = ['things-cli']
18+
APP = ["things-cli"]
1919
APP_NAME = "Things CLI"
2020
AUTHOR = "Alexander Willner"
2121
AUTHOR_MAIL = "[email protected]"
2222
DESCRIPTON = "A simple Python 3 CLI to read your Things app data."
2323
URL = "https://github.com/thingsapi/things-cli"
2424
VERSION = "0.0.6"
25-
DATA_FILES = package_files('')
25+
DATA_FILES = package_files("")
2626
OPTIONS = {
27-
'argv_emulation': False,
27+
"argv_emulation": False,
2828
}
2929

3030

@@ -46,17 +46,17 @@ def package_files(directory):
4646
"Programming Language :: Python :: 3",
4747
"License :: OSI Approved :: Apache Software License",
4848
"Operating System :: MacOS :: MacOS X",
49-
"Natural Language :: English"
49+
"Natural Language :: English",
5050
],
51-
python_requires='>=3.6',
51+
python_requires=">=3.6",
5252
version=VERSION,
5353
data_files=DATA_FILES,
54-
options={'py2app': OPTIONS},
55-
setup_requires=['py2app'],
54+
options={"py2app": OPTIONS},
55+
setup_requires=["py2app"],
5656
entry_points={
57-
'console_scripts': [
58-
'things-cli = things_cli.cli:main',
57+
"console_scripts": [
58+
"things-cli = things_cli.cli:main",
5959
]
6060
},
61-
install_requires=['things.py', 'argcomplete']
61+
install_requires=["things.py", "argcomplete"],
6262
)

things_cli/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import argcomplete # type: ignore
1919
import things as api
2020

21+
from things_cli import __version__
22+
2123

2224
class ThingsCLI:
2325
"""A simple Python 3 CLI to read your Things app data."""

0 commit comments

Comments
 (0)