Skip to content

Commit

Permalink
Merge branch 'hotfix/fix-version-check'
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeyeongYang committed Nov 11, 2018
2 parents 6217992 + 6c5731c commit fdfecb4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions adopy/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.1
3 changes: 2 additions & 1 deletion adopy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from adopy import tasks

from adopy.base import Task, Model, Engine
from adopy.version import VERSION

__all__ = ['base', 'functions', 'tasks', 'Task', 'Model', 'Engine']
__version__ = '0.1.1'
__version__ = VERSION
8 changes: 8 additions & 0 deletions adopy/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import os

__all__ = ['VERSION']

VERSION_FILE = os.path.join(os.path.dirname(__file__), 'VERSION')

with open(VERSION_FILE, 'r') as f:
VERSION = f.read()
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
from __future__ import unicode_literals

import os
from codecs import open as codecs_open
from setuptools import setup

import adopy

# Get the long description from the relevant file
with codecs_open('README.rst', encoding='utf-8') as f:
long_description = f.read()

# Load the version
with open(os.path.join('adopy', 'VERSION'), 'r') as f:
version = f.read()

setup(
name='adopy',
version=adopy.__version__,
version=version,
description='',
long_description=long_description,
classifiers=[],
Expand Down

0 comments on commit fdfecb4

Please sign in to comment.