diff --git a/.gitignore b/.gitignore index 71eb871..23d2d7e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .idea -.pyc +*.pyc build/ -dist/ \ No newline at end of file +dist/ +*.egg-info \ No newline at end of file diff --git a/CHANGES.md b/CHANGES.md new file mode 100644 index 0000000..e69de29 diff --git a/businesshours/__init__.py b/businesshours/__init__.py index ff6de8c..69e9744 100644 --- a/businesshours/__init__.py +++ b/businesshours/__init__.py @@ -1 +1,3 @@ +__version__ = '0.1' + from .core import calc_business_hours \ No newline at end of file diff --git a/setup.py b/setup.py index e69de29..702922a 100644 --- a/setup.py +++ b/setup.py @@ -0,0 +1,37 @@ +from setuptools import setup +import io +import businesshours + + +def read(*filenames, **kwargs): + encoding = kwargs.get('encoding', 'utf-8') + sep = kwargs.get('sep', '\n') + buf = [] + for filename in filenames: + with io.open(filename, encoding=encoding) as f: + buf.append(f.read()) + return sep.join(buf) + +long_description = read('README.md', 'CHANGES.md') + +setup( + name='businesshours', + version=businesshours.__version__, + url='http://github.com/nikdoof/businesshours/', + license='Apache Software License', + author='Andrew Williams', + author_email='andy@tensixtyone.com', + description='Support functions to help calculate working time.', + long_description=long_description, + packages=['businesshours'], + platforms='any', + classifiers = [ + 'Programming Language :: Python', + 'Development Status :: 4 - Beta', + 'Natural Language :: English', + 'Intended Audience :: Developers', + 'Operating System :: OS Independent', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], + test_suite="businesshours.tests", +) \ No newline at end of file