forked from rbarrois/mpdlcd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Single requirements file - Requirements in setup.py - Improved Makefile
- Loading branch information
Showing
10 changed files
with
68 additions
and
55 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[flake8] | ||
ignore = | ||
# Ignore "and" at start of line. | ||
W503 | ||
# Ignore "do not assign a lambda expression, use a def". | ||
E731 | ||
max-line-length = 120 |
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,8 +1,20 @@ | ||
include LICENSE | ||
include README.rst | ||
include ChangeLog | ||
include initd/* | ||
# Doc | ||
include ChangeLog LICENSE README.rst | ||
include man/* | ||
include mpdlcd.conf | ||
include requirements.txt | ||
recursive-include tests *.py | ||
|
||
# Packaging | ||
include initd/* mpdlcd.conf | ||
|
||
# Build/test | ||
include Makefile .flake8 | ||
include requirements_dev.txt | ||
|
||
# Package | ||
graft mpdlcd | ||
graft tests | ||
|
||
# Remove temporary files | ||
global-exclude *.py[cod] __pycache__ *.so .*.sw[op] | ||
|
||
# Remove files useless in a sdist | ||
exclude .travis.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,46 @@ | ||
all: default | ||
PACKAGE = mpdlcd | ||
TESTS_DIR = tests | ||
|
||
FLAKE8 = flake8 | ||
|
||
PACKAGE=mpdlcd | ||
|
||
# Default targets | ||
# =============== | ||
|
||
all: default | ||
default: | ||
|
||
.PHONY: all default | ||
|
||
|
||
# Packaging | ||
# ========= | ||
|
||
clean: | ||
find . -type f -name '*.pyc' -delete | ||
find . -type f -path '*/__pycache__/*' -delete | ||
find . -type d -empty -delete | ||
|
||
update: | ||
pip install --upgrade pip setuptools | ||
pip install --upgrade -r requirements_dev.txt | ||
pip freeze | ||
|
||
release: | ||
fullrelease | ||
|
||
.PHONY: clean update release | ||
|
||
|
||
# Tests and quality | ||
# ================= | ||
|
||
test: | ||
python -W default setup.py test | ||
|
||
coverage: | ||
coverage erase | ||
coverage run "--include=$(PACKAGE)/*.py,tests/*.py" --branch setup.py test | ||
coverage report "--include=$(PACKAGE)/*.py,tests/*.py" | ||
coverage html "--include=$(PACKAGE)/*.py,tests/*.py" | ||
lint: | ||
$(FLAKE8) --config .flake8 $(PACKAGE) | ||
check-manifest | ||
|
||
|
||
.PHONY: all default clean coverage doc test | ||
.PHONY: test lint |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
-e . | ||
|
||
check-manifest | ||
coverage | ||
flake8 | ||
zest.releaser[recommended] |
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