Skip to content
This repository was archived by the owner on Oct 3, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ __pycache__
*.pyo
build/
dist/
.cache/
.pytest_cache/
.tox/
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
dist: xenial
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
install:
- pip install tox coveralls
- pip install pipenv
- pipenv install --dev
script:
- tox -e py${TRAVIS_PYTHON_VERSION//[.]/}
- make test package
after_success:
- coveralls
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY: test package upload

VERSION ?= $(shell git describe --tags --always --dirty)

default: package

clean:
rm -fr build dist *egg-info .tox/ .cache/ .pytest_cache/

test:
pipenv run flake8
pipenv run coverage run --source=pykube -m py.test
pipenv run coverage report

package: test
pipenv run python3 setup.py sdist bdist_wheel
pipenv run twine check dist/pykube*

upload: package
pipenv run twine upload dist/pykube*

version:
sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" pykube/__init__.py
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.org/simple"
verify_ssl = true
name = "pypi"

[packages]
"pykube-ng" = {path = ".", editable = true}

[dev-packages]
"flake8" = "*"
pytest-cov = "*"
coveralls = "*"
tox = "*"
coverage = "*"
twine = "*"
responses = "*"

[requires]
python_version = "3.7"
Loading