-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0930881
Showing
29 changed files
with
1,623 additions
and
0 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,18 @@ | ||
*.pyc | ||
githubcap.egg-info | ||
build/ | ||
dist/ | ||
*.pyc | ||
docs/ | ||
venv/ | ||
venv-coala/ | ||
__pycache__ | ||
TODO | ||
docs.source/api | ||
.cache | ||
.codecov | ||
coverage.xml | ||
.coverage | ||
.tox | ||
*.rej | ||
*.orig |
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,24 @@ | ||
language: python | ||
python: | ||
- '3.4' | ||
- '3.5' | ||
- '3.5-dev' | ||
- '3.6' | ||
- '3.6-dev' | ||
#- 'pypy3' | ||
#- '3.7-dev' | ||
#- 'nightly' | ||
install: | ||
- make devenv | ||
script: make check | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
deploy: | ||
provider: pypi | ||
user: fridex | ||
password: | ||
secure: HlhCEQbc/8QTGTKyMXq9OujWK1h75dIoecqPRQRPUb3WVvNo9gpxaaThHOy7DAJHrk0dfn5DPaLw6euZeZQV7WC1hZoEp8TIIqLkmbgdSjwPNLANmkC/upyYjvYpyZmzCyGe4gWfLvqYOCNpG9oZxLf669ZLT3U3Apy8ZswE9JM9exZg0aSakde2eVoSN6kI5byYTbrykByiaYpoV8MaeMjYUztG0yhljaR1iMZ+5VPtjx2+6jMMEe3N4nKlF7AKuOgRMCYhbmTUJf9wn2nUSJVICZ2soKzdNRuhoPPVTkK5lJpH3ELim0Tze5b+AN7oQP3EHC3lCeEQd2wFu6hci4Foi6PzKaDpKrUc2KzXyTwCrKvOqvUyJ2IIavpzR32f8/lAua3eOWruM909umvUGBm6o4zSj6tqKQ4sY6lmlIkNEwnnSHb/BPbuEgpZI4faBbRuwGYyFv+gZYCoWpt4bLXap9+xqETvs/Onp0aOPdpc77m56GeIfwUECCD71B7TkeiKE6y5J0ubLZkTMueDjbPwrMs/hZ4EfRvUfDmVB7b2KtUlsa5mrsGXB6MQxccTu1E/e4/RUzIUCS6DN7L4IhR2eGYW4QuuiSbChdMbHxGTEkWhWgNPX0GaA5+IYMknuk9COMWUMAR4QLJfkNE60EkhUtmyYyOzNsMBg8vNuNI= | ||
on: | ||
tags: true | ||
branch: master | ||
distributions: sdist bdist_wheel |
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,66 @@ | ||
TEMPFILE := $(shell mktemp -u) | ||
|
||
|
||
.PHONY: install | ||
install: | ||
python3 setup.py install | ||
|
||
.PHONY: uninstall | ||
uninstall: | ||
python3 setup.py install --record ${TEMPFILE} && \ | ||
cat ${TEMPFILE} | xargs rm -rf && \ | ||
rm -f ${TEMPFILE} | ||
|
||
.PHONY: devenv | ||
devenv: | ||
@echo "Installing latest development requirements" | ||
pipenv install --dev | ||
|
||
coala-venv: | ||
@echo ">>> Preparing virtual environment for coala" | ||
@# We need to run coala in a virtual env due to dependency issues | ||
virtualenv -p python3 venv-coala | ||
. venv-coala/bin/activate && pip3 install -r coala_requirements.txt | ||
|
||
.PHONY: clean | ||
clean: | ||
find . -name '*.pyc' -or -name '__pycache__' -or -name '*.py.orig' | xargs rm -rf | ||
rm -rf venv venv-coala coverage.xml | ||
rm -rf dist githubcap.egg-info build docs/ | ||
|
||
.PHONY: pytest | ||
pytest: | ||
@echo ">>> Executing testsuite" | ||
python3 -m pytest -s --cov=./githubcap -vvl --timeout=2 test/ | ||
|
||
.PHONY: pylint | ||
pylint: | ||
@echo ">>> Running pylint" | ||
pylint githubcap | ||
|
||
.PHONY: coala | ||
coala: coala-venv | ||
@echo ">>> Running coala" | ||
. venv-coala/bin/activate && coala --non-interactive | ||
|
||
.PHONY: pydocstyle | ||
pydocstyle: | ||
@echo ">>> Running pydocstyle" | ||
pydocstyle githubcap | ||
|
||
.PHONY: check | ||
check: pytest pylint pydocstyle coala | ||
|
||
.PHONY: api | ||
api: | ||
@sphinx-apidoc -e -o docs.source/githubcap/doc/ githubcap -f | ||
|
||
.PHONY: doc | ||
doc: api | ||
@make -f Makefile.docs html | ||
@echo "Documentation available at 'docs/index.html'" | ||
|
||
.PHONY: docs html test | ||
docs: doc | ||
html: doc | ||
test: check |
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,25 @@ | ||
[[source]] | ||
|
||
url = "https://pypi.python.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
|
||
[packages] | ||
|
||
attrs = "*" | ||
requests = "*" | ||
click = "*" | ||
daiquiri = "*" | ||
voluptuous = "*" | ||
pyyaml = "*" | ||
|
||
|
||
[dev-packages] | ||
|
||
pytest = ">=3" | ||
pytest-timeout = "*" | ||
pytest-cov = "*" | ||
pydocstyle = "*" | ||
pylint = "*" | ||
flexmock = "*" |
Oops, something went wrong.