-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added: --kill to stop background radios sometimes radioactive exists without terminating the ffplay process. find and kill those unwanted processes. * Feat: new pypi project structure * license year updated * README using remote images instead of local * fix: project restructured * minor fix * fix: saving empty last station * fix: build warning * Added: project Makefile * twine added
- Loading branch information
Showing
15 changed files
with
178 additions
and
49 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 |
---|---|---|
|
@@ -130,7 +130,6 @@ dmypy.json | |
last_station.json | ||
build.sh | ||
deploy.sh | ||
Makefile | ||
|
||
pylint.txt | ||
.gitpod.yml |
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,5 @@ | ||
include *.py | ||
include README.md | ||
include LICENSE | ||
include requirements.txt | ||
include requirements-dev.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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
SHELL := /bin/bash | ||
PYTHON = python3 | ||
TEST_PATH = ./tests/ | ||
FLAKE8_EXCLUDE = venv,.venv,.eggs,.tox,.git,__pycache__,*.pyc | ||
SRC_DIR = "radioactive" | ||
TEST_DIR = "test" | ||
|
||
all: clean install-dev test | ||
|
||
check: | ||
${PYTHON} -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude ${FLAKE8_EXCLUDE} | ||
${PYTHON} -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=79 --statistics --exclude ${FLAKE8_EXCLUDE} | ||
|
||
clean: | ||
@find . -name '*.pyc' -exec rm --force {} + | ||
@find . -name '*.pyo' -exec rm --force {} + | ||
@find . -name '*~' -exec rm --force {} + | ||
rm -rf build | ||
rm -rf dist | ||
rm -rf *.egg-info | ||
rm -f *.sqlite | ||
rm -rf .cache | ||
|
||
dist: clean | ||
${PYTHON} setup.py sdist bdist_wheel | ||
|
||
deploy: | ||
twine upload --repository-url https://upload.pypi.org/legacy/ dist/* | ||
|
||
test-deploy: dist | ||
@echo "-------------------- sending to testpypi server ------------------------" | ||
@twine upload -r testpypi dist/* | ||
|
||
help: | ||
@echo "---------------------------- help --------------------------------------" | ||
@echo " clean" | ||
@echo " Remove python artifacts and build artifacts." | ||
@echo " isort" | ||
@echo " Sort import statements." | ||
@echo " check" | ||
@echo " Check style with flake8." | ||
@echo " test" | ||
@echo " Run pytest" | ||
|
||
isort: | ||
@echo "Sorting imports..." | ||
isort $(SRC_DIR) $(TEST_DIR) | ||
|
||
build: | ||
python3 setup.py build | ||
|
||
install: | ||
pip install -e . | ||
|
||
install-dev: install | ||
pip install --upgrade pip | ||
pip install -e .[dev] | ||
|
||
test: | ||
${PYTHON} -m pytest ${TEST_PATH} |
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
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.