icalendar/setup.py

67 wiersze
2.1 KiB
Python
Czysty Zwykły widok Historia

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
shortdesc = 'iCalendar parser/generator'
longdesc = ''
2017-11-08 13:00:36 +00:00
for fname in ['README.rst', 'CONTRIBUTING.rst', 'CHANGES.rst', 'LICENSE.rst']:
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',
# 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"',
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,
description=shortdesc,
long_description=longdesc,
2011-08-17 19:36:01 +00:00
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
2011-08-17 19:36:01 +00:00
'Operating System :: OS Independent',
'Programming Language :: Python',
'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',
'Programming Language :: Python :: 3.11',
'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',
author='Plone Foundation',
author_email='plone-developers@lists.sourceforge.net',
url='https://github.com/collective/icalendar',
license='BSD',
packages=setuptools.find_namespace_packages('src'),
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,
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'
)