Skip to content

Commit

Permalink
add source code
Browse files Browse the repository at this point in the history
  • Loading branch information
igorborgest committed Feb 27, 2019
1 parent ad7135c commit 7aef146
Show file tree
Hide file tree
Showing 33 changed files with 2,095 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
omit = awswrangler/__version__.py

[paths]
source =
awswrangler
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
ignore = E501,E203,W503
131 changes: 131 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv*/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject


# Pycharm project settings
.idea/

# Visual Studio Code project settings
.vscode/

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# MacOS
.DS_Store

# Files generated by AWS Cloudformation package
output/

# Development directory
dev/
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include README.md LICENSE requirements.txt
54 changes: 54 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.PHONY: test

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

test:
tox

coverage:
coverage report

coverage-html:
coverage html

format:
black awswrangler tests

lint:
flake8 awswrangler tests

artifacts: format test generate-glue-egg generate-layers-3.7 generate-layers-3.6 generate-layers-2.7

generate-glue-egg:
python2.7 setup.py bdist_egg

generate-layers-3.7:
mkdir -p dist
docker run -v $(PWD):/var/task -it lambci/lambda:build-python3.7 /bin/bash -c "pip install awswrangler -t ./python"
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
docker run -v $(PWD):/var/task -it lambci/lambda:build-python3.6 /bin/bash -c "pip install awswrangler -t ./python"
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 awswrangler -t ./python"
zip -r awswrangler_layer_2.7.zip ./python
mv awswrangler_layer_2.7.zip dist/
rm -rf python

build: format test
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
21 changes: 21 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
black = "*"
flake8 = "*"
tox = "*"
pytest = "*"
pytest-cov = "*"
twine = "*"

[packages]
boto3 = "*"
s3fs = "*"
pandas = "*"
pyarrow = "*"

[pipenv]
allow_prereleases = true
Loading

0 comments on commit 7aef146

Please sign in to comment.