Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
[run]
omit = awswrangler/__version__.py

[paths]
source =
awswrangler
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ dmypy.json
# Files generated by AWS Cloudformation package
output/

# Development directory
# Development
dev/
metrics/
notes.txt
9 changes: 8 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
include README.md LICENSE requirements.txt
include README.md LICENSE requirements.txt
exclude .*
exclude *.egg-info
exclude data_samples*
exclude dist*
exclude docs*
exclude htmlcov*
exclude tests*
48 changes: 25 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,60 +1,62 @@
.PHONY: test
.PHONY: init format lint
.DEFAULT_GOAL := build

init:
pip install --upgrade pip
pip install pipenv --upgrade
pipenv install --dev

test:
tox

coverage:
coverage report

coverage-html:
coverage html
pipenv update

format:
black awswrangler tests benchmarks

lint:
flake8 awswrangler tests benchmarks

doc:
sphinx-apidoc -f -H "API Reference" -o docs/source/api awswrangler/
make -C docs/ html
test:
tox

coverage:
pytest tests --cov awswrangler --cov-report=term-missing

artifacts: format generate-glue-eggs generate-layers-3.7 generate-layers-3.6 generate-layers-2.7
coverage-report:
coverage report --show-missing

coverage-report-html:
coverage html

artifacts: format lint generate-glue-eggs generate-layers-3.7 generate-layers-3.6

generate-glue-eggs:
python2.7 setup.py bdist_egg
python3.6 setup.py bdist_egg
python3.7 setup.py bdist_egg

generate-layers-3.7:
mkdir -p dist
rm -rf python
docker run -v $(PWD):/var/task -it lambci/lambda:build-python3.7 /bin/bash -c "pip install . -t ./python"
rm -f awswrangler_layer_3.7.zip
zip -r awswrangler_layer_3.7.zip ./python
mv awswrangler_layer_3.7.zip dist/
rm -rf python

generate-layers-3.6:
mkdir -p dist
rm -rf python
docker run -v $(PWD):/var/task -it lambci/lambda:build-python3.6 /bin/bash -c "pip install . -t ./python"
rm -f awswrangler_layer_3.6.zip
zip -r awswrangler_layer_3.6.zip ./python
mv awswrangler_layer_3.6.zip dist/
rm -rf python

generate-layers-2.7:
mkdir -p dist
docker run -v $(PWD):/var/task -it lambci/lambda:build-python2.7 /bin/bash -c "pip install . -t ./python"
zip -r awswrangler_layer_2.7.zip ./python
mv awswrangler_layer_2.7.zip dist/
rm -rf python

build: format test doc
rm -fr build dist .egg requests.egg-info
python setup.py sdist bdist_wheel

publish: build
twine upload dist/*
rm -fr build dist .egg requests.egg-info
rm -fr build dist .egg requests.egg-info

doc:
sphinx-apidoc -f -H "API Reference" -o docs/source/api awswrangler/
make -C docs/ html
32 changes: 18 additions & 14 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,26 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
black = "*"
flake8 = "*"
tox = "*"
pytest = "*"
pytest-cov = "*"
twine = "*"
sphinx = "*"
seaborn = "*"
matplotlib = "*"
pyqt5 = "*"
black = "==19.3b0"
flake8 = "==3.7.7"
tox = "==3.8.0"
pytest = "==4.3.1"
pytest-cov = "==2.6.1"
twine = "==1.13.0"
sphinx = "==2.0.0b2"
seaborn = "==0.9.0"
matplotlib = "==3.0.3"
pyqt5 = "==5.12.1"

[packages]
boto3 = "*"
s3fs = "*"
pandas = "*"
pyarrow = "*"
boto3 = "==1.9.164"
s3fs = "==0.2.1"
pandas = "==0.24.2"
pyarrow = "==0.13.0"
PyGreSQL = "==5.1"

[requires]
python_version = "3.7"

[pipenv]
allow_prereleases = true
Loading