Created basic setup.py

This commit is contained in:
2014-02-19 23:05:45 +00:00
parent 0a41fa3e4d
commit 75234e4934
4 changed files with 42 additions and 2 deletions

5
.gitignore vendored
View File

@@ -1,4 +1,5 @@
.idea .idea
.pyc *.pyc
build/ build/
dist/ dist/
*.egg-info

0
CHANGES.md Normal file
View File

View File

@@ -1 +1,3 @@
__version__ = '0.1'
from .core import calc_business_hours from .core import calc_business_hours

View File

@@ -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",
)