Skip to content

Commit

Permalink
Project import
Browse files Browse the repository at this point in the history
  • Loading branch information
fridex committed Jan 4, 2018
0 parents commit a23e679
Show file tree
Hide file tree
Showing 29 changed files with 1,625 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
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
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: python
python:
- '3.4'
- '3.5'
- '3.5-dev'
- '3.6'
- '3.6-dev'
#- 'pypy3'
#- '3.7-dev'
#- 'nightly'
before_install:
- sudo pip3 install pipenv
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
66 changes: 66 additions & 0 deletions Makefile
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
25 changes: 25 additions & 0 deletions Pipfile
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 = "*"

0 comments on commit a23e679

Please sign in to comment.