Skip to content

Commit

Permalink
Travis pypi deployment (#2)
Browse files Browse the repository at this point in the history
Implemented deploy step for releasing 0.2.0
  • Loading branch information
birnbaum authored Nov 12, 2018
1 parent 3dc75a4 commit 4a592bd
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 8 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
sudo: false
language: python

python:
- "3.5"
- "3.6"

install:
- pip install pipenv
Expand All @@ -12,5 +12,13 @@ script:
- flake8
# - pytest --cov=fs_gcsfs --cov-branch --cov-report=xml TODO: Find a way to run the tests without accessing an actual bucket

deploy:
provider: pypi
user: othoz
password:
secure: cjuKT6NBmpvaMUQBHNASnP/J4YQoHtBU3OoW8rmvPbWz/fsllaXYv0IZSv+A2Y3pTa7um/jGDezn7s37hPpmvBKCF5UDqEjkEd+rTEdXgZMB0KY2JU2xSfVeyTH0CxQWQWpL6BXs1+lCtJv50ckNGm9WjhkhQSub+UpvAg3CkFlb8t+aZWXKqF7+PSW+pCtQbzcXJqBfNOYa0gB/F4IKj7O52zWlAiO609fvF0vvC+eyY1wB2IKejvKedRes9pxq04r9YatsXP3ynFesfrLEbccz7NEb6Ek0fNx0Cfjnci8vsnRV2SST/gzacp4n6J8e/3l07ZG4LwFbIq1U3D/29ZCZeNA/ahD/wzu3hIqAmYcND8hGyh5kYbWGDRqguFzBGWvsJDxXc6dHFb4dQu7j3Iol4NYy2TZSPvnGnMYX9yqM9sAS3QU12aJBuzl0ItY1s978orI9edLJJmEHVx2hypOtGNZmuTFxfTb1yVY0ivzEOFDOaFMo9ntn+wbf+nCbdjfbP0IlYsTxdt6Fx/6oDdA5kgEczh06k9KxSGutXQMNOT9sjH98Rrkg8Teyhn9Ky7Rn4SXtEjp1KFmDSB/luXyKdG4oAhLa+yeEdTa3mpwqtL+W49BT453WZ3nGsuqqhFCtChIRg98IWLztX+dPzRa7PxxN2ms3BscablB7JjM=
on:
tags: true

after_success:
- python-codacy-coverage -r coverage.xml
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@ Possible types of changes are:
Unreleased
----------


0.2.0 - 09.11.2018
------------------

Changed
'''''''
- Open-sourced GCSFS by moving it to GitHub
- Removed ``project`` and ``credentials`` properties from ``GCSFS``.
Instead, one can now optionally pass a ``client`` of type
`google.cloud.storage.Client <https://googleapis.github.io/google-cloud-python/latest/storage/client.html#module-google.cloud.storage.client>`_.
- ``GCSFS.getinfo()`` does not magically fix missing directory markers anymore.
Instead, there is a new method ``GCSFS.fix_storage()`` which can be explicitly called to check and fix the entire filesystem.


0.1.6 - 30.10.2018
Expand Down
8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GCSFS
=====

A Python filesystem abstraction of Google Clod Storage (GCS) implemented as a `PyFilesystem2 <https://github.com/PyFilesystem/pyfilesystem2>`_ extension.
A Python filesystem abstraction of Google Cloud Storage (GCS) implemented as a `PyFilesystem2 <https://github.com/PyFilesystem/pyfilesystem2>`_ extension.


.. image:: https://img.shields.io/pypi/v/fs-gcsfs.svg
Expand All @@ -13,6 +13,12 @@ A Python filesystem abstraction of Google Clod Storage (GCS) implemented as a `P
.. image:: https://travis-ci.org/Othoz/gcsfs.svg?branch=master
:target: https://travis-ci.org/Othoz/gcsfs

.. image:: https://api.codacy.com/project/badge/Coverage/6377a6e321cd4ccf94dfd6f09456d9ce
:target: https://www.codacy.com/app/Othoz/gcsfs?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Othoz/gcsfs&amp;utm_campaign=Badge_Coverage

.. image:: https://api.codacy.com/project/badge/Grade/6377a6e321cd4ccf94dfd6f09456d9ce
:target: https://www.codacy.com/app/Othoz/gcsfs?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Othoz/gcsfs&amp;utm_campaign=Badge_Grade

.. image:: https://img.shields.io/github/license/Othoz/gcsfs.svg
:target: https://github.com/PyFilesystem/pyfilesystem2/blob/master/LICENSE

Expand Down
5 changes: 3 additions & 2 deletions fs_gcsfs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from ._gcsfs import GCSFS
# flake8: noqa

__all__ = ["GCSFS"]
from ._gcsfs import GCSFS
from ._version import __version__
1 change: 1 addition & 0 deletions fs_gcsfs/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.2.0"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[flake8]
show_source = True
max-line-length = 160
exclude = .git,__pycache__
exclude = .git,__pycache__,docs
ignore = E402

[coverage:run]
Expand Down
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import os
from setuptools import setup

version_namespace = {}
with open("fs_gcsfs/_version.py") as f:
exec(f.read(), version_namespace) # nosec # pylint: disable=exec-used

here = os.path.abspath(os.path.dirname(__file__))

Expand All @@ -11,8 +14,9 @@
if __name__ == "__main__":
setup(
name="fs-gcsfs",
version="0.1.6",
version=version_namespace["__version__"],
author="Othoz GmbH",
author_email="wiesner@othoz.com",
description="A PyFilesystem interface to Google Cloud Storage",
long_description=long_description,
long_description_content_type="text/x-rst",
Expand All @@ -30,7 +34,7 @@
"gs = fs_gcsfs.opener:GCSFSOpener",
]
},
classifiers=(
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
Expand All @@ -42,5 +46,5 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation",
"Topic :: System :: Filesystems",
),
],
)

0 comments on commit 4a592bd

Please sign in to comment.