2013-11-20 15:44:40 +01:00
|
|
|
#!/usr/bin/env python
|
2015-06-11 09:57:34 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
2014-08-27 23:50:49 +02:00
|
|
|
import io
|
2013-11-20 15:44:40 +01:00
|
|
|
from os.path import join, dirname, abspath
|
2016-07-19 16:39:54 +02:00
|
|
|
from setuptools import setup, find_packages
|
2013-12-17 09:19:54 +01:00
|
|
|
|
2013-11-20 15:44:40 +01:00
|
|
|
|
|
|
|
def read_relative_file(filename):
|
2019-01-10 10:49:54 +01:00
|
|
|
"""
|
|
|
|
Return the contents of the given file.
|
|
|
|
|
|
|
|
Its path is supposed relative to this module.
|
|
|
|
"""
|
2014-08-27 23:46:27 +02:00
|
|
|
path = join(dirname(abspath(__file__)), filename)
|
2014-08-27 23:50:49 +02:00
|
|
|
with io.open(path, encoding='utf-8') as f:
|
2013-11-20 15:44:40 +01:00
|
|
|
return f.read()
|
|
|
|
|
2017-09-08 12:06:31 +02:00
|
|
|
|
2013-12-29 08:21:58 +01:00
|
|
|
NAME = 'workalendar'
|
|
|
|
DESCRIPTION = 'Worldwide holidays and working days helper and toolkit.'
|
2013-12-17 09:19:54 +01:00
|
|
|
REQUIREMENTS = [
|
2019-08-23 14:05:21 +02:00
|
|
|
'skyfield',
|
|
|
|
'skyfield-data',
|
2013-12-17 09:19:54 +01:00
|
|
|
'python-dateutil',
|
|
|
|
'lunardate',
|
|
|
|
'pytz',
|
|
|
|
'pyCalverter',
|
2018-09-10 14:43:33 +02:00
|
|
|
'pyluach',
|
2017-06-07 16:47:33 +02:00
|
|
|
'setuptools>=1.0',
|
2013-12-17 09:19:54 +01:00
|
|
|
]
|
2020-07-10 10:09:49 +02:00
|
|
|
version = '10.3.0'
|
2016-01-19 15:58:47 +01:00
|
|
|
__VERSION__ = version
|
2013-12-17 09:19:54 +01:00
|
|
|
|
2014-05-10 19:01:12 +02:00
|
|
|
params = dict(
|
|
|
|
name=NAME,
|
|
|
|
description=DESCRIPTION,
|
2016-06-29 12:19:10 +02:00
|
|
|
packages=find_packages(),
|
2014-05-10 19:01:12 +02:00
|
|
|
version=__VERSION__,
|
|
|
|
long_description=read_relative_file('README.rst'),
|
|
|
|
author='Bruno Bord',
|
2016-01-18 10:00:38 +01:00
|
|
|
author_email='bruno.bord@people-doc.com',
|
2017-11-20 17:12:17 +01:00
|
|
|
url='https://github.com/peopledoc/workalendar',
|
2014-05-10 19:01:12 +02:00
|
|
|
license='MIT License',
|
|
|
|
include_package_data=True,
|
|
|
|
install_requires=REQUIREMENTS,
|
|
|
|
zip_safe=False,
|
|
|
|
classifiers=[
|
2016-12-12 10:09:39 +01:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2014-05-10 19:01:12 +02:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Python :: 3',
|
2016-12-12 10:09:39 +01:00
|
|
|
'Programming Language :: Python :: 3.5',
|
2017-09-04 16:20:00 +02:00
|
|
|
'Programming Language :: Python :: 3.6',
|
2018-09-20 12:55:33 +02:00
|
|
|
'Programming Language :: Python :: 3.7',
|
2019-11-03 12:05:36 +01:00
|
|
|
'Programming Language :: Python :: 3.8',
|
2014-05-10 19:01:12 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2013-11-20 15:44:40 +01:00
|
|
|
if __name__ == '__main__':
|
2014-05-10 19:01:12 +02:00
|
|
|
setup(**params)
|