Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 159853e

Browse files
authored
Merge pull request #4 from hypoport/dev
Version 0.2.1
2 parents eaae16c + a465f04 commit 159853e

Some content is hidden

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

44 files changed

+1227
-948
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,4 @@ venv.bak/
121121
.idea/
122122
/.pytest_cache/
123123
/coverage_html_report/
124+
report.xml

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
sudo: false
2+
language: python
3+
# command to install dependencies
4+
install:
5+
- make init
6+
# command to run tests
7+
script:
8+
- |
9+
if [[ "$TRAVIS_PYTHON_VERSION" != "2.6" ]] ; then make test-metadata; fi
10+
- make ci
11+
cache: pip
12+
jobs:
13+
include:
14+
- stage: test
15+
script:
16+
- make test-metadata
17+
- make ci
18+
python: '3.6'
19+
- stage: coverage
20+
python: 3.6
21+
script:
22+
- make coverage
23+
- codecov

CHANGES.rst

Lines changed: 0 additions & 33 deletions
This file was deleted.

HISTORY.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Release History
2+
===============
3+
4+
## 0.0.1 (2018-03-11)
5+
6+
* initial release
7+
* Apigateway Proxy Events, S3 Put Events
8+
9+
## 0.0.2 (2018-03-12)
10+
11+
* Sns Events
12+
* extends Tests
13+
14+
## 0.0.3 (2018-04-22)
15+
16+
* Alexa Skill Event
17+
* CloudFormation Event
18+
* updates README
19+
20+
## 0.0.4 (2018-04-22)
21+
22+
* some bugfixes
23+
24+
## 0.1.0 (2018-08-03)
25+
26+
* rename package to make it more relatable
27+
28+
## 0.2.0 (2018-08-06)
29+
30+
**Improvements**
31+
* reimplementation using dataclasses
32+
* refactor tests to using pytest

Makefile

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
.PHONY: docs test clean clean-build clean-pyc clean-test publish
2+
3+
init:
4+
pip install pipenv --upgrade
5+
pipenv install --dev --skip-lock
6+
7+
test:
8+
pipenv run pytest -v
9+
10+
test-all:
11+
# This runs all of the tests, on both Python 2 and Python 3.
12+
detox
13+
14+
ci:
15+
pipenv run pytest --junitxml=report.xml
16+
17+
test-metadata:
18+
@pipenv run python setup.py check -mr --strict && \
19+
([ $$? -eq 0 ] && echo "Metadata ok.") || echo "Metdata might be missing or incorrect."
20+
21+
flake8:
22+
pipenv run flake8 --ignore=E501,F401,E128,E402,E731,F821 requests
23+
24+
coverage:
25+
pipenv run pytest --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=aws_dataclasses tests
26+
27+
publish:
28+
pip install 'twine>=1.5.0'
29+
python setup.py sdist bdist_wheel
30+
twine upload dist/*
31+
rm -fr build dist .egg requests.egg-info
32+
33+
docs:
34+
cd docs && make html
35+
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"
36+
37+
clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
38+
39+
clean-build: ## remove build artifacts
40+
rm -fr build/
41+
rm -fr dist/
42+
rm -fr .eggs/
43+
find . \( -path ./env -o -path ./venv -o -path ./.env -o -path ./.venv \) -prune -o -name '*.egg-info' -exec rm -fr {} +
44+
find . \( -path ./env -o -path ./venv -o -path ./.env -o -path ./.venv \) -prune -o -name '*.egg' -exec rm -f {} +
45+
46+
clean-pyc: ## remove Python file artifacts
47+
find . -name '*.pyc' -exec rm -f {} +
48+
find . -name '*.pyo' -exec rm -f {} +
49+
find . -name '*~' -exec rm -f {} +
50+
find . -name '__pycache__' -exec rm -fr {} +
51+
52+
clean-test: ## remove test and coverage artifacts
53+
rm -fr .tox/
54+
rm -f .coverage
55+
rm -fr htmlcov/
56+
rm -fr .pytest_cache
57+
rm -fr .cache

Pipfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[[source]]
2+
url = "https://pypi.python.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
arrow = "*"
8+
dataclasses = "*"
9+
10+
[dev-packages]
11+
pytest = "*"
12+
pytest-runner = "*"
13+
detox = "*"
14+
bumpversion = "*"
15+
pytest-cov = "*"
16+
pytest-xdist = "*"
17+
codecov = "*"
18+
19+
[requires]
20+
python_version = "3.6"

0 commit comments

Comments
 (0)