mirror of
https://github.com/nikdoof/businesshours.git
synced 2025-12-23 22:59:24 +00:00
Release 0.1'
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,4 +1,5 @@
|
||||
.idea
|
||||
.pyc
|
||||
*.pyc
|
||||
build/
|
||||
dist/
|
||||
dist/
|
||||
*.egg-info
|
||||
8
.travis.yml
Normal file
8
.travis.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.3"
|
||||
install:
|
||||
- "pip install coverage"
|
||||
script:
|
||||
- "coverage run --source=businesshours setup.py test"
|
||||
4
CHANGES.md
Normal file
4
CHANGES.md
Normal file
@@ -0,0 +1,4 @@
|
||||
v0.1 Release
|
||||
------------
|
||||
|
||||
* Initial release
|
||||
12
LICENSE
12
LICENSE
@@ -0,0 +1,12 @@
|
||||
Copyright (c) 2014, Andrew Williams <andy@tensixtyone.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
14
README.md
14
README.md
@@ -0,0 +1,14 @@
|
||||
|
||||
BusinessHours
|
||||
=============
|
||||
|
||||
[](https://travis-ci.org/nikdoof/businesshours)
|
||||
|
||||
```businesshours``` is a small Python module that contains tools to assist with calculating business/working hours. This project was made to solve a particular problem I was facing, and while it probably doesn't cover the edge cases it works "good enough".
|
||||
|
||||
Patches/issues/pulls are welcome.
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
This code is released under the BSD Three Clause license, for further information please consult the ```LICENSE``` file.
|
||||
@@ -1 +1,3 @@
|
||||
__version__ = '0.1'
|
||||
|
||||
from .core import calc_business_hours
|
||||
37
setup.py
37
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",
|
||||
)
|
||||
Reference in New Issue
Block a user