-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (45 loc) · 2.27 KB
/
setup.py
File metadata and controls
52 lines (45 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from distutils.core import setup
setup(name='workdays',
version='1.5',
description="Workday date utility functions to extend python's datetime",
author='Odysseas Tsatalos',
py_modules=['workdays'],
url='http://github.com/ogt/workdays',
download_url = 'http://github.com/ogt/workdays/tarball/master',
author_email='odysseas@tsatalos.com',
keywords = ['python', 'datetime', 'workdays', 'excel' ],
classifiers = [
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Development Status :: 3 - Alpha',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
long_description = """
Extend python datetime with excel-like workday addition/subtraction
functionality:
NETWORKDAYS(start_date,end_date,holidays,weekends)
Returns the number of whole working days between start_date and
end_date (inclusive of both start_date and end_date). Working days
exclude weekends and any dates identified in holidays. Use NETWORKDAYS
to calculate employee benefits that accrue based on the number of
days worked during a specific term. Weekends default to Saturday
and Sunday, but can be overridden by passing in a tuple of integers
that correlate with the standard weekday numbering. For example, you
can pass in (4,5,6) if you want Friday to be counted as a weekend.
WORKDAY(start_date,days,[holidays],(weekends))
Returns a number that represents a date that is the indicated number
of working days before or after a date (the starting date). Working
days exclude weekends and any dates identified as holidays. Use
WORKDAY to exclude weekends or holidays when you calculate invoice
due dates, expected delivery times, or the number of days of work
performed. Like NETWORKDAYS, weekends default to Saturday and Sunday
but this can be overridden.
This module has similarities with the BusinessHours module - you may
want to check it out as well to see which one better fits your needs.
""",
)