Skip to content

Commit

Permalink
next wave of updates
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski committed Mar 3, 2018
1 parent 1dd5863 commit 55ccca3
Show file tree
Hide file tree
Showing 15 changed files with 355 additions and 78 deletions.
42 changes: 8 additions & 34 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,17 @@ python:

# install dependencies
install:
- pip install coveralls pytest-cov
- pip install coveralls pytest-cov flake8 pylint isort
- pip install -e .

# run tests
script:
- pytest --cov-report term --cov=pylint_quotes

cache: pip

# run tests and linting
script:
- py.test --cov-report term --cov=pylint_quotes
- pylint pylint_quotes
- flake8 --ignore E501 pylint_quotes
- isort pylint_quotes -rc -c --diff

after_success:
- coveralls

#
#matrix:
# include:
# - python: 3.4
# env: TOXENV=py34
# - python: 3.5
# env: TOXENV=py35
# - python: 3.6
# env: TOXENV=py36
#before_install:
# - python --version
# - uname -a
# - lsb_release -a
#install:
# - pip install tox pylint coveralls
# - virtualenv --version
# - easy_install --version
# - pip --version
# - tox --version
#script:
# - pip install .
# - pip install -U setuptools
# - tox $TOXENV
#after_success:
# - coveralls
#after_failure:
# - more .tox/log/* | cat
# - more .tox/*/log/* | cat
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Erick Daniszewski
Copyright (c) 2018 Erick Daniszewski

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
45 changes: 39 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,42 @@
release:
python setup.py sdist
python setup.py bdist_wheel
#
# Pylint Quotes
#

PKG_VER := $(shell cat pylint_quotes/__version__.py | grep __version__ | awk '{print $$3}' | tr -d "'")


.PHONY: init
init: ## Initialize the repo for development
pip install pipenv
pipenv install --dev --skip-lock

.PHONY: coverage
coverage: ## Run tests and report on coverage
pipenv run py.test --cov-report term --cov=pylint_quotes tests

.PHONY: lint
lint: ## Lint the source code (pylint, flake8, isort)
pipenv run pylint pylint_quotes
pipenv run flake8 --ignore E501 pylint_quotes
pipenv run isort pylint_quotes -rc -c --diff

.PHONY: publish
publish: ## Publish to PyPi
pip install 'twine>=1.5.0'
python setup.py sdist bdist_wheel
twine upload dist/*
rm -rf build/ dist/ pylint_quotes.egg-info/
rm -rf build dist .egg pylint_quotes.egg-info

.PHONY: test
test: ## Run unit tests
pipenv run py.test

.PHONY: version
version: ## Print the version of Synse Server
@echo "$(PKG_VER)"

.PHONY: help
help: ## Print Make usage information
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort

coverage:
pytest --verbose --cov-report term --cov-report xml --cov=pylint_quotes tests
.DEFAULT_GOAL := help
19 changes: 19 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"


[packages]

"e1839a8" = {path = ".", editable = true}


[dev-packages]

pytest = ">=3.4.0"
coverage = "*"
pytest-cov = "*"
"flake8" = "*"
isort = "*"
218 changes: 218 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 55ccca3

Please sign in to comment.