Skip to content

Commit 1a257ca

Browse files
author
Cody Lee
committed
initial commit, implemented Admin API
0 parents  commit 1a257ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+3931
-0
lines changed

.gitignore

+169
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Python template
3+
# Byte-compiled / optimized / DLL files
4+
__pycache__/
5+
*.py[cod]
6+
*$py.class
7+
8+
# C extensions
9+
*.so
10+
11+
# Distribution / packaging
12+
.Python
13+
env/
14+
build/
15+
develop-eggs/
16+
dist/
17+
downloads/
18+
eggs/
19+
.eggs/
20+
lib/
21+
lib64/
22+
parts/
23+
sdist/
24+
var/
25+
wheels/
26+
*.egg-info/
27+
.installed.cfg
28+
*.egg
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.coverage
44+
coverage/
45+
wellaware/tests/coverage
46+
.coverage.*
47+
.cache
48+
nosetests.xml
49+
coverage.xml
50+
*,cover
51+
.hypothesis/
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
61+
# Flask stuff:
62+
instance/
63+
.webassets-cache
64+
65+
# Scrapy stuff:
66+
.scrapy
67+
68+
# Sphinx documentation
69+
docs/_build/
70+
71+
# PyBuilder
72+
target/
73+
74+
# Jupyter Notebook
75+
.ipynb_checkpoints
76+
77+
# pyenv
78+
.python-version
79+
80+
# celery beat schedule file
81+
celerybeat-schedule
82+
83+
# SageMath parsed files
84+
*.sage.py
85+
86+
# dotenv
87+
.env
88+
89+
# virtualenv
90+
.venv
91+
venv/
92+
ENV/
93+
94+
# Spyder project settings
95+
.spyderproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
### JetBrains template
100+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
101+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
102+
103+
# User-specific stuff:
104+
.idea/
105+
106+
*.iml
107+
108+
## File-based project format:
109+
*.iws
110+
111+
## Plugin-specific files:
112+
113+
# IntelliJ
114+
/out/
115+
116+
# mpeltonen/sbt-idea plugin
117+
.idea_modules/
118+
119+
# JIRA plugin
120+
atlassian-ide-plugin.xml
121+
122+
# Crashlytics plugin (for Android Studio and IntelliJ)
123+
com_crashlytics_export_strings.xml
124+
crashlytics.properties
125+
crashlytics-build.properties
126+
fabric.properties
127+
### VirtualEnv template
128+
# Virtualenv
129+
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
130+
.Python
131+
[Bb]in
132+
[Ii]nclude
133+
[Ll]ib
134+
[Ll]ib64
135+
[Ll]ocal
136+
[Ss]cripts
137+
pyvenv.cfg
138+
.venv
139+
pip-selfcheck.json
140+
### macOS template
141+
*.DS_Store
142+
.AppleDouble
143+
.LSOverride
144+
145+
# Icon must end with two \r
146+
Icon
147+
148+
149+
# Thumbnails
150+
._*
151+
152+
# Files that might appear in the root of a volume
153+
.DocumentRevisions-V100
154+
.fseventsd
155+
.Spotlight-V100
156+
.TemporaryItems
157+
.Trashes
158+
.VolumeIcon.icns
159+
.com.apple.timemachine.donotpresent
160+
161+
# Directories potentially created on remote AFP share
162+
.AppleDB
163+
.AppleDesktop
164+
Network Trash Folder
165+
Temporary Items
166+
.apdisk
167+
168+
# Sphinx
169+
html/

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

LICENSE

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2017 Cody Lee.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

MANIFEST.in

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include AUTHORS
2+
include LICENSE
3+
include README.rst
4+
recursive-include wiremock *.py VERSION
5+
recursive-exclude wiremock/tests

Makefile

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.PHONY: clean-pyc ext-test test upload-docs docs coverage
2+
3+
all: clean test coverage
4+
5+
test:
6+
bash run_tests.sh
7+
8+
coverage:
9+
bash run_coverage.sh
10+
11+
release:
12+
bash deploy_to_pypi.sh
13+
14+
tox-test:
15+
PYTHONDONTWRITEBYTECODE= tox
16+
17+
clean:
18+
find . -name '*.pyc' -exec rm -f {} +
19+
find . -name '*.pyo' -exec rm -f {} +
20+
find . -name '*~' -exec rm -f {} +
21+
find . -name '#*' -exec rm -f {} +
22+
find . -name '.#*' -exec rm -f {} +
23+
find . -name '.bak' -exec rm -f {} +
24+
25+
docs:
26+
sphinx-build docs html

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Python WireMock Admin API Client
2+
================================
3+
4+
This is a python admin API client to a standalone WireMock server.
5+
6+
7+
Install as Dependency
8+
--------------------
9+
10+
To install:
11+
12+
pip install wiremock
13+
14+
15+
Documentation
16+
-------------
17+
18+
wiremock documentation can be found at http://wiremock.readthedocs.org/
19+
20+
21+
Pull Requests
22+
-------------
23+
24+
General Rules:
25+
- All Tests must pass
26+
- Coverage shouldn't decrease
27+
- All Pull Requests should be rebased against master **before** submitting the PR.

deploy_to_pypi.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
#
3+
# Deploy to PyPI for both source and wheel
4+
#
5+
rm -Rf build/ dist/ wiremock.egg-info/ || true
6+
python setup.py sdist upload -r local || true
7+
export WHEEL_TOOL=`which wheel` && python setup.py bdist_wheel --universal upload -r local || true
8+
rm -Rf build/ dist/ wiremock.egg-info/ || true

doc_builder.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
sphinx-build docs html
4+
watchmedo shell-command -R --command 'sphinx-build docs html' ./docs/

0 commit comments

Comments
 (0)