diff --git a/presets.py b/presets/__init__.py similarity index 99% rename from presets.py rename to presets/__init__.py index e07c117..59fb89e 100644 --- a/presets.py +++ b/presets/__init__.py @@ -27,8 +27,7 @@ import six import types -__version__ = '0.1.0' - +from .version import version as __version__ class Preset(object): '''The Preset class overrides the default parameters of functions within a module. diff --git a/presets/version.py b/presets/version.py new file mode 100644 index 0000000..bbfecb3 --- /dev/null +++ b/presets/version.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +"""Version info""" + +short_version = '0.1' +version = '0.1.1' diff --git a/setup.py b/setup.py index 9cabc64..13dc1fd 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,12 @@ from setuptools import setup, find_packages -import pkg_resources -version = pkg_resources.get_distribution('presets').version +import imp + +version = imp.load_source('presets.version', 'presets/version.py') setup( name='presets', - version=version, + version=version.version, description="A python module to manipulate default parameters of a module's functions", author='Brian McFee', url='http://github.com/bmcfee/presets', @@ -22,6 +23,7 @@ "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", ], keywords='default parameter', license='ISC',