debian-workalendar/setup.py

62 lines
1.6 KiB
Python
Raw Permalink Normal View History

2013-11-20 15:44:40 +01:00
#!/usr/bin/env python
2015-06-11 09:57:34 +02:00
# -*- coding: utf-8 -*-
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):
"""
Return the contents of the given file.
Its path is supposed relative to this module.
"""
path = join(dirname(abspath(__file__)), filename)
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
NAME = 'workalendar'
DESCRIPTION = 'Worldwide holidays and working days helper and toolkit.'
2013-12-17 09:19:54 +01:00
REQUIREMENTS = [
'skyfield',
'skyfield-data',
2013-12-17 09:19:54 +01:00
'python-dateutil',
'lunardate',
'pytz',
'pyCalverter',
'pyluach',
'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
params = dict(
name=NAME,
description=DESCRIPTION,
packages=find_packages(),
version=__VERSION__,
long_description=read_relative_file('README.rst'),
author='Bruno Bord',
author_email='bruno.bord@people-doc.com',
url='https://github.com/peopledoc/workalendar',
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',
'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',
'Programming Language :: Python :: 3.8',
],
)
2013-11-20 15:44:40 +01:00
if __name__ == '__main__':
setup(**params)