-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This updates the version to 20.1 after running black on the source code and removed the need to use tox.
- Loading branch information
Joshua Powers
committed
Jun 21, 2020
1 parent
4383849
commit 5add8a1
Showing
24 changed files
with
233 additions
and
287 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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
language: python | ||
dist: xenial | ||
dist: bionic | ||
python: | ||
- 3.5 | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
install: | ||
- pip install -r requirements.txt -r requirements-test.txt | ||
script: | ||
- tox | ||
- make test | ||
- python setup.py install | ||
- whatsthis version | ||
- whatsthis features |
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 +1 @@ | ||
include LICENSE MANIFEST.in requirements.txt requirements-test.txt tox.ini | ||
include LICENSE requirements.txt requirements-test.txt |
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,37 +1,32 @@ | ||
# This file is part of whatsthis. See LICENSE file for license information. | ||
|
||
PYTHON = python3 | ||
SETUP := $(PYTHON) setup.py | ||
|
||
.PHONY: build clean install publish source test venv | ||
|
||
build: | ||
$(SETUP) build | ||
build: clean | ||
python3 setup.py build | ||
|
||
clean: | ||
$(SETUP) clean | ||
rm -rf .coverage .tox .mypy_cache .eggs *.egg-info build dist | ||
python3 setup.py clean | ||
rm -rf .pytest_cache build dist *.egg-info .coverage | ||
@find . -regex '.*\(__pycache__\|\.py[co]\)' -delete | ||
|
||
install: | ||
$(SETUP) install | ||
install: clean | ||
pip install -r requirements.txt | ||
python3 setup.py install | ||
|
||
publish: | ||
publish: clean | ||
rm -rf dist/ | ||
$(SETUP) sdist | ||
python3 setup.py sdist | ||
pip install twine | ||
twine upload dist/* | ||
|
||
source: | ||
$(SETUP) sdist | ||
|
||
test: | ||
$(SETUP) check -r -s | ||
tox | ||
black --check . | ||
flake8 --max-line-length=88 whatsthis setup.py | ||
py.test --cov=whatsthis whatsthis | ||
|
||
venv: | ||
$(PYTHON) -m virtualenv -p /usr/bin/$(PYTHON) venv | ||
venv/bin/pip install -Ur requirements.txt | ||
venv/bin/pip install -Ur requirements-test.txt | ||
python3 -m virtualenv venv | ||
venv/bin/pip install -Ur requirements.txt -Ur requirements-test.txt | ||
@echo "Now run the following to activate the virtual env:" | ||
@echo ". venv/bin/activate" | ||
|
||
.PHONY: build clean install publish test venv |
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,5 @@ | ||
flake8==3.7.7 | ||
flake8-docstrings==1.3.0 | ||
mypy==0.720 | ||
# https://gitlab.com/pycqa/flake8-docstrings/issues/36 | ||
pydocstyle<4.0.0 | ||
pylint==2.3.1 | ||
pytest==4.3.1 | ||
pytest-cov==2.6.1 | ||
tox==3.3.0 | ||
black==19.10b0 | ||
flake8==3.8.3 | ||
flake8-docstrings==1.5.0 | ||
pytest==5.4.3 | ||
pytest-cov==2.10.0 |
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 |
---|---|---|
@@ -1,20 +1,11 @@ | ||
# This file is part of whatsthis. See LICENSE file for license information. | ||
"""__init__ module.""" | ||
|
||
__title__ = 'whatsthis' | ||
__version__ = '19.1' | ||
__author__ = 'Joshua Powers' | ||
__title__ = "whatsthis" | ||
__version__ = "20.1" | ||
__author__ = "Joshua Powers" | ||
|
||
__features__ = { | ||
'probes': { | ||
'processor': [ | ||
'core', | ||
'memory', | ||
] | ||
}, | ||
'subcommands': [ | ||
'collect', | ||
'features', | ||
'version' | ||
] | ||
"probes": {"processor": ["core", "memory"]}, | ||
"subcommands": ["collect", "features", "version"], | ||
} |
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
Oops, something went wrong.