-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial Version #1
Changes from 62 commits
e6097b8
ab71883
baa95ff
b6937de
a847edb
c679ceb
0b97bc6
960cd5a
a1adbb2
85b910b
9204472
273b82b
eb8365e
f5ad49e
64e62d7
6b833e7
12a7d30
80508f1
588e2af
5303edb
be9ee2d
9c629c3
3343cb5
b6dba5e
4322055
92a0c1d
ddbe26d
3aeb8dc
90a1695
6569b75
3502e16
baf25e3
ff2b99f
bb4768e
1c8ea77
227440f
abfd715
6497e2e
d9e0ef0
455c6b1
57b3463
2e33b27
781526f
c27cb4b
85e3c4b
12c18da
4640bb2
27d31f4
d1df32f
34cd74d
39c6b59
106e177
17f3a50
a5226db
7a86dc4
428ff4b
f3f1a6f
33839ac
f5d27c7
125cc3d
2b6492b
a4f97e8
00935da
153f4fc
11861a8
f4ff46e
d2adcbb
5d8bb3a
76b83a5
2a83ddb
a43948f
acafb3f
cce48e9
d3ce383
29e15dd
b6067a2
726e89b
210cb51
cd0b735
c4fd047
e8b0a4b
fb1dbed
fbd496d
2932c24
b602234
9015a1b
09c76cd
52f635f
93415b9
c9ab9cd
b58e94e
ef86022
cf0ea4f
3aa141d
6dfcdcc
1193ba7
51bdb68
2f801d7
4c1ad7e
b07ea54
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[bumpversion] | ||
current_version = 0.1.0-dev | ||
commit = True | ||
tag = True | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))? | ||
serialize = | ||
{major}.{minor}.{patch}-{release} | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:part:release] | ||
optional_value = gamma | ||
values = | ||
dev | ||
gamma | ||
|
||
[bumpversion:file:pytest_localstack/_version.py] | ||
search = __version__ = '{current_version}' | ||
replace = __version__ = '{new_version}' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[run] | ||
omit = | ||
pytest_localstack/_version.py | ||
pytest_localstack/hookspecs.py |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_size = 4 | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{py,md,rst}] | ||
indent_style = space | ||
|
||
[.coveragerc] | ||
indent_style = tab | ||
|
||
[*.{ini,cfg,bat}] | ||
indent_style = tab | ||
|
||
[{Makefile,.coveragerc}] | ||
indent_style = tab | ||
|
||
[.bumpversion.cfg] | ||
indent_style = tab | ||
# .bumpversion.cfg gets rewritten by Python ConfigParser. | ||
# Ignore any changes to whitespace. | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false | ||
|
||
[*.{yml,yaml}] | ||
indent_style = space | ||
indent_size = 2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ nosetests.xml | |
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
language: python | ||
services: | ||
- docker | ||
|
||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- 3.7-dev | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- python: 3.7-dev | ||
|
||
stages: | ||
- lint | ||
- test | ||
- docs | ||
|
||
before_install: | ||
- pip install --upgrade pip setuptools | ||
- pip install --upgrade codecov pytest-cov | ||
|
||
install: | ||
- pip install --upgrade -e '.[test]' | ||
|
||
script: pytest -ra --cov=pytest_localstack/ | ||
|
||
after_success: codecov | ||
|
||
jobs: | ||
include: | ||
- stage: lint | ||
python: 3.6 | ||
services: [] | ||
install: | ||
- pip install --upgrade pip setuptools | ||
- pip install --upgrade pipenv docutils flake8 flake8-debugger flake8-docstrings flake8-isort Pygments | ||
script: | ||
- pipenv check | ||
- flake8 | ||
- flake8 --config tests/.flake8 tests/ | ||
- python setup.py check --restructuredtext --strict | ||
after_success: skip | ||
- stage: docs | ||
python: 3.6 | ||
install: | ||
- pip install --upgrade pip setuptools | ||
- pip install --upgrade Sphinx recommonmark | ||
script: | ||
- cd docs && make html | ||
after_success: skip |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Change Log | ||
========== | ||
|
||
0.1.0-dev (unreleased) | ||
---------------------- | ||
|
||
- Initial release |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
CURRENT_VENV := $(shell python -c 'from __future__ import print_function; import sys; print(sys.prefix if hasattr(sys, "real_prefix") or (hasattr(sys, "base_prefix") and sys.base_prefix != sys.prefix) else "", end="")') | ||
|
||
ifeq ($(CURRENT_VENV),) | ||
VIRTUALENV := .venv | ||
else | ||
VIRTUALENV := $(CURRENT_VENV) | ||
endif | ||
|
||
PIPENV := PIPENV_VENV_IN_PROJECT=1 pipenv | ||
WITH_PIPENV := $(PIPENV) run | ||
|
||
help: ## print this help | ||
@# https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
env: $(VIRTUALENV) ## create development virtualenv | ||
.PHONY: env | ||
$(VIRTUALENV): $(VIRTUALENV)/bin/activate | ||
$(VIRTUALENV)/bin/activate: Pipfile.lock | ||
$(PIPENV) install --dev --deploy | ||
touch $(VIRTUALENV)/bin/activate | ||
Pipfile.lock: Pipfile setup.py | ||
$(PIPENV) lock | ||
|
||
test: $(VIRTUALENV) ## run tests | ||
$(WITH_PIPENV) pytest | ||
.PHONY: ftest | ||
|
||
lint: $(VIRTUALENV) ## check code style | ||
$(PIPENV) check | ||
$(WITH_PIPENV) flake8 | ||
$(WITH_PIPENV) flake8 --config tests/.flake8 tests/ | ||
@if $(WITH_PIPENV) python setup.py check --restructuredtext --strict; then\ | ||
echo ".rst files OK"; \ | ||
else \ | ||
echo ".rst files ERROR"; \ | ||
fi | ||
.PHONY: lint | ||
|
||
isort: $(VIRTUALENV) ## sort import statements | ||
$(WITH_PIPENV) isort | ||
.PHONY: isort | ||
|
||
docs: $(VIRTUALENV) | ||
$(WITH_PIPENV) $(MAKE) -C docs html | ||
.PHONY: docs | ||
|
||
lock: $(VIRTUALENV) ## regenerate Pipfile.lock file | ||
$(PIPENV) lock | ||
.PHONY: lock | ||
|
||
clean: clean-build clean-pyc clean-env clean-test ## remove all build, test, coverage and Python artifacts | ||
.PHONY: clean | ||
|
||
clean-build: ## remove build artifacts | ||
rm -fr build/ | ||
rm -fr dist/ | ||
rm -fr .eggs/ | ||
find . -name '*.egg-info' -exec rm -fr {} + | ||
find . -name '*.egg' -exec rm -f {} + | ||
.PHONY: clean-build | ||
|
||
clean-pyc: ## remove Python file artifacts | ||
find . -name '*.pyc' -exec rm -f {} + | ||
find . -name '*.pyo' -exec rm -f {} + | ||
find . -name '*~' -exec rm -f {} + | ||
find . -name '__pycache__' -exec rm -fr {} + | ||
.PHONY: clean-pyc | ||
|
||
clean-env: ## remove development virtualenv | ||
pipenv --rm || true | ||
.PHONY: clean-env | ||
|
||
clean-test: ## remove test and coverage artifacts | ||
rm -rf .tox/ \ | ||
.coverage \ | ||
htmlcov/ \ | ||
coverage.xml \ | ||
junit.xml \ | ||
junit-*.xml | ||
.PHONY: clean-test |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[[source]] | ||
|
||
url = "https://pypi.python.org/simple" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rather trivial, but this URL redirects to add a tailing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Depends on what pipenv's doing with it. I bet it's just |
||
verify_ssl = true | ||
name = "pypi" | ||
|
||
|
||
[packages] | ||
|
||
"ab7dc8" = {path = ".", editable = true, extras = ["test"]} | ||
|
||
|
||
[dev-packages] | ||
|
||
docutils = "*" | ||
bumpversion = "*" | ||
"flake8" = "*" | ||
"flake8-debugger" = "*" | ||
"flake8-docstrings" = "*" | ||
"flake8-isort" = "*" | ||
isort = "*" | ||
Pygments = "*" | ||
recommonmark = "*" | ||
Sphinx = "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know much about makefiles, but don't you also need to mark
help
as being.PHONY
? It is in the link below.