-
Notifications
You must be signed in to change notification settings - Fork 11
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
Showing
10 changed files
with
159 additions
and
81 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
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,10 +1,10 @@ | ||
include LICENSE | ||
include Makefile | ||
include *.rst | ||
include docs/*.rst | ||
include docs/conf.py | ||
include docs/make.bat | ||
include docs/Makefile | ||
include docs/_static/* | ||
include docs/_templates/* | ||
include *.sh | ||
include *.txt | ||
include Makefile | ||
recursive-include docs *.bat | ||
recursive-include docs *.py | ||
recursive-include docs *.rst | ||
recursive-include docs Makefile | ||
recursive-include rinse *.xsd |
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,41 +1,42 @@ | ||
SOURCES := \ | ||
rinse/__init__.py \ | ||
rinse/client.py \ | ||
rinse/message.py \ | ||
rinse/response.py \ | ||
rinse/util.py \ | ||
rinse/wsa.py \ | ||
rinse/wsdl.py \ | ||
rinse/wsse.py \ | ||
rinse/xsd.py | ||
|
||
DOCS := \ | ||
README.rst \ | ||
docs/index.rst \ | ||
docs/rinse.rst \ | ||
docs/rinse.client.rst \ | ||
docs/rinse.message.rst \ | ||
docs/rinse.response.rst \ | ||
docs/rinse.util.rst \ | ||
docs/rinse.wsa.rst \ | ||
docs/rinse.wsdl.rst \ | ||
docs/rinse.wsse.rst \ | ||
docs/rinse.xsd.rst | ||
|
||
.PHONY: all test clean clean-docs | ||
|
||
all: docs | ||
NAME := $(shell python setup.py --name) | ||
VERSION := $(shell python setup.py --version) | ||
|
||
SDIST := dist/${NAME}-${VERSION}.tar.gz | ||
WHEEL := dist/${NAME}-${VERSION}-py2.py3-none-any.whl | ||
|
||
.PHONY: all test clean clean-docs upload-docs upload-pypi dist docs | ||
|
||
all: docs dist | ||
|
||
test: | ||
python setup.py test | ||
tox | ||
|
||
clean: clean-docs | ||
clean: clean-docs clean-sdist clean-wheel | ||
|
||
clean-docs: | ||
rm -rf docs/_build/ | ||
$(MAKE) -C docs/ clean | ||
|
||
clean-sdist: | ||
rm -f "${SDIST}" | ||
|
||
clean-wheel: | ||
rm -f "${WHEEL}" | ||
|
||
docs: | ||
$(MAKE) -C docs/ clean html | ||
|
||
${SDIST}: | ||
python setup.py sdist | ||
|
||
${WHEEL}: | ||
python setup.py bdist_wheel | ||
|
||
dist: test ${SDIST} ${WHEEL} | ||
|
||
upload: upload-pypi upload-docs | ||
|
||
docs: docs/_build/ | ||
upload-pypi: ${SDIST} ${WHEEL} | ||
twine upload "${WHEEL}" "${SDIST}" | ||
|
||
docs/_build/: ${DOCS} ${SOURCES} docs/conf.py setup.py | ||
rm -rf docs/_build/ | ||
cd docs && $(MAKE) html doctest | ||
upload-docs: docs/_build/ | ||
python setup.py upload_sphinx --upload-dir="$<html" |
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
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
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
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,2 @@ | ||
[bdist_wheel] | ||
universal=1 |
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
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,2 @@ | ||
-r requirements.txt | ||
mock |
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,42 @@ | ||
# Tox (http://tox.testrun.org/) is a tool for running tests | ||
# in multiple virtualenvs. This configuration file will run the | ||
# test suite on all supported python versions. To use it, "pip install tox" | ||
# and then run "tox" from this directory. | ||
|
||
[tox] | ||
# require tox>=2.1.1 or refuse to run the tests. | ||
minversion=2.1.1 | ||
|
||
# return success even if some of the specified environments are missing | ||
skip_missing_interpreters=True | ||
|
||
# "envlist" is a comma separated list of environments, each environment name | ||
# contains factors separated by hyphens. For example, "py27-unittest" has 2 | ||
# factors: "py27" and "unittest". Other settings such as "setenv" accept the | ||
# factor names as a prefixes (eg: "unittest: ...") so that prefixed settings | ||
# only apply if the environment being run contains that factor. | ||
|
||
envlist = | ||
py27-test, | ||
py33-test, | ||
py34-test, | ||
py35-test, | ||
|
||
[testenv] | ||
recreate=True | ||
usedevelop=False | ||
passenv= | ||
BUILD_NUMBER | ||
BUILD_URL | ||
XDG_CACHE_HOME | ||
|
||
# continue running commands even if previous commands have failed | ||
ignore_errors = True | ||
|
||
commands = | ||
coverage run --source={toxinidir}/rinse {toxinidir}/setup.py test | ||
coverage report | ||
|
||
deps = | ||
-r{toxinidir}/test-requirements.txt | ||
coverage |