2014-01-07 16:04:15 +00:00
|
|
|
import codecs
|
2011-08-24 21:18:36 +00:00
|
|
|
import setuptools
|
2015-11-29 21:00:58 +00:00
|
|
|
import re
|
|
|
|
import ast
|
|
|
|
|
|
|
|
_version_re = re.compile(r'__version__\s+=\s+(.*)')
|
|
|
|
|
|
|
|
with open('src/icalendar/__init__.py', 'rb') as f:
|
|
|
|
version = str(ast.literal_eval(_version_re.search(
|
|
|
|
f.read().decode('utf-8')).group(1)))
|
2005-04-04 16:47:58 +00:00
|
|
|
|
2014-01-06 15:22:38 +00:00
|
|
|
|
2012-08-23 12:30:02 +00:00
|
|
|
shortdesc = 'iCalendar parser/generator'
|
2017-10-24 00:04:19 +00:00
|
|
|
longdesc = ''
|
2017-11-08 13:00:36 +00:00
|
|
|
for fname in ['README.rst', 'CONTRIBUTING.rst', 'CHANGES.rst', 'LICENSE.rst']:
|
2017-10-24 00:04:19 +00:00
|
|
|
with codecs.open(fname, encoding='utf-8') as f:
|
|
|
|
longdesc += f.read()
|
|
|
|
longdesc += '\n'
|
2014-01-06 15:22:38 +00:00
|
|
|
|
2015-03-24 11:51:03 +00:00
|
|
|
tests_require = []
|
2014-05-20 14:49:36 +00:00
|
|
|
install_requires = [
|
2014-12-07 17:36:52 +00:00
|
|
|
'python-dateutil',
|
|
|
|
'pytz',
|
2022-08-21 19:58:21 +00:00
|
|
|
# install requirements depending on python version
|
|
|
|
# see https://www.python.org/dev/peps/pep-0508/#environment-markers
|
|
|
|
'backports.zoneinfo; python_version == "3.7" or python_version == "3.8"',
|
2024-06-05 10:59:40 +00:00
|
|
|
'tzdata'
|
2014-05-20 14:49:36 +00:00
|
|
|
]
|
|
|
|
|
2014-01-06 15:22:38 +00:00
|
|
|
|
2011-08-24 21:18:36 +00:00
|
|
|
setuptools.setup(
|
2011-08-17 19:36:01 +00:00
|
|
|
name='icalendar',
|
|
|
|
version=version,
|
2012-08-23 12:30:02 +00:00
|
|
|
description=shortdesc,
|
|
|
|
long_description=longdesc,
|
2011-08-17 19:36:01 +00:00
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
'Intended Audience :: Developers',
|
2012-02-27 09:22:43 +00:00
|
|
|
'License :: OSI Approved :: BSD License',
|
2011-08-17 19:36:01 +00:00
|
|
|
'Operating System :: OS Independent',
|
2017-10-22 21:07:19 +00:00
|
|
|
'Programming Language :: Python',
|
2022-08-19 16:47:02 +00:00
|
|
|
'Programming Language :: Python :: 3.7',
|
2020-04-22 20:58:20 +00:00
|
|
|
'Programming Language :: Python :: 3.8',
|
2021-10-05 13:43:56 +00:00
|
|
|
'Programming Language :: Python :: 3.9',
|
|
|
|
'Programming Language :: Python :: 3.10',
|
2022-10-12 03:14:46 +00:00
|
|
|
'Programming Language :: Python :: 3.11',
|
2017-10-22 21:07:19 +00:00
|
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
|
|
'Programming Language :: Python :: Implementation :: PyPy',
|
2014-07-14 09:58:38 +00:00
|
|
|
],
|
2012-01-08 14:47:04 +00:00
|
|
|
keywords='calendar calendaring ical icalendar event todo journal '
|
|
|
|
'recurring',
|
2012-11-23 12:49:07 +00:00
|
|
|
author='Plone Foundation',
|
2013-12-24 12:06:03 +00:00
|
|
|
author_email='plone-developers@lists.sourceforge.net',
|
2011-08-30 07:40:55 +00:00
|
|
|
url='https://github.com/collective/icalendar',
|
2024-01-24 15:41:11 +00:00
|
|
|
license='BSD-2-Clause',
|
2023-10-25 11:17:51 +00:00
|
|
|
packages=setuptools.find_namespace_packages('src', exclude=["icalendar.fuzzing"]),
|
2011-08-17 19:36:01 +00:00
|
|
|
package_dir={'': 'src'},
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
2022-08-19 16:50:42 +00:00
|
|
|
python_requires=">=3.7",
|
2014-05-20 14:49:36 +00:00
|
|
|
install_requires=install_requires,
|
2018-02-09 00:37:52 +00:00
|
|
|
entry_points = {'console_scripts': ['icalendar = icalendar.cli:main']},
|
2015-03-24 11:51:03 +00:00
|
|
|
extras_require={
|
|
|
|
'test': tests_require
|
2015-12-02 12:55:42 +00:00
|
|
|
},
|
|
|
|
test_suite='icalendar.tests'
|
2013-12-24 12:25:46 +00:00
|
|
|
)
|