Skip to content

Commit

Permalink
version 0.2.0: Added S3Stream, S3Resource.save, and deprecated a few …
Browse files Browse the repository at this point in the history
…other methods.
  • Loading branch information
eterna2 committed Dec 12, 2019
1 parent 69fda66 commit f5aeb64
Show file tree
Hide file tree
Showing 24 changed files with 1,614 additions and 990 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ before_deploy:
deploy:
provider: pypi
user: __token__
skip_existing: true
on:
tags: true
branch: master
Expand Down
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# `e2fyi.utils`

## v0.2.0

- New features:

- `S3Stream` is a wrapper class for any io streams, with static methods to convert any python objects to a stream.
- Added `S3Resource.save` to upload resource to S3 bucket.

- Changes:

- `S3Bucket.list` now return a generator which yields `S3Resource` in the S3 bucket, instead of a list of string.
- Renamed `Result` into `Maybe`.

- Deprecations
- Deprecated `S3ResourceHelper` (use `S3Stream.from_any` instead).
- Deprecated `S3Bucket.upload` (use `S3Resource.save` instead).
- Removed `e2fyi.utils.io` (empty module).

## v0.1.0

- Patches:
- Catch exception if `python-magic` is not installed properly.

## v0.1.0a4

- New features:
- Added methods: `create_resource_key`, `create_resource_uri`, and `create_resource` to S3Bucket.

## v0.1.0a3

- Bug fixes
- incuded `e2fyi.utils.aws`, `e2fyi.utils.core` and `e2fyi.utils.io` into setup.py

## v0.1.0a2

- Bug fixes
- included requirements.txt into setup.py

## v0.1.0a1.post1

- Added README.md to pypi.

## v0.1.0a1

- Initial release.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ dev:

dists: requirements sdist bdist wheels

docs:
.FORCE:

docs: .FORCE
sphinx-build rst docs -b dirhtml -E -P

requirements:
Expand Down
8 changes: 6 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ url = "https://pypi.org/simple"
verify_ssl = true

[packages]
boto3 = "==1.9.*"
pydantic = ">=0.32"
boto3 = ">=1.9"
python-dateutil = "<2.8.1,>=2.1"
pydantic = ">=0.30"
typing-extensions = "*"
python-magic = {version = "==0.4.*",markers = "sys_platform == 'linux'"}
python-magic-bin = {version = "==0.4.*",markers = "sys_platform == 'darwin' or sys_platform == 'windows'"}
pandas = "*"
joblib = "*"

[dev-packages]
"flake8" = "==3.7.*"
Expand All @@ -30,6 +32,8 @@ wheel = "*"
coverage = "==4.5.*"
pipenv-to-requirements = "==0.8.*"
coveralls = "==1.8.*"
m2r = "==0.2.*"
mistune = "==0.8.*"

[pipenv]
allow_prereleases = true
313 changes: 171 additions & 142 deletions Pipfile.lock

Large diffs are not rendered by default.

0 comments on commit f5aeb64

Please sign in to comment.