Skip to content

Commit

Permalink
Merge pull request #4 from ianepperson/bump_version
Browse files Browse the repository at this point in the history
bump version to 0.0.2
  • Loading branch information
ianepperson authored Jan 14, 2021
2 parents f3012ad + a1ba5e5 commit 0437dfa
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions filestorage/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.2
14 changes: 14 additions & 0 deletions filestorage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
import codecs
import os
from .file_item import FileItem
from .storage_container import StorageContainer
from .handler_base import StorageHandlerBase, AsyncStorageHandlerBase
from .filter_base import FilterBase, AsyncFilterBase

# with open('VERSION', 'r', encoding='utf-8') as version_file:
# __version__ = version_file.read().strip()


def _read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()


__version__ = _read('VERSION').strip()

# Instantiate the store singleton
store = StorageContainer()

Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
with open('README.md', 'r', encoding='utf-8') as readme:
long_description = readme.read()

with open('filestorage/VERSION', 'r', encoding='utf-8') as version_file:
version = version_file.read().strip()

setup(
name='filestorage',
version='0.0.1',
version=version,
author='Ian Epperson',
author_email='[email protected]',
description='foo',
description='Save uploaded files in configurable stores',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/ianepperson/filestorage',
Expand All @@ -22,7 +24,7 @@
python_requires='>=3.5',
platforms='any',
package_data={
'filestorage': ['*.pyi', 'py.typed'],
'filestorage': ['*.pyi', 'py.typed', 'VERSION'],
'filestorage.filters': ['*.pyi', 'py.typed'],
'filestorage.handlers': ['*.pyi', 'py.typed'],
},
Expand Down

0 comments on commit 0437dfa

Please sign in to comment.