icalendar/setup.py.bak

68 wiersze
2.2 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',
# install requirements depending on python version
# see https://www.python.org/dev/peps/pep-0508/#environment-markers
'backports.zoneinfo; python_version < "3.9"',
'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,
description=shortdesc,
long_description=longdesc,
2024-07-03 14:50:47 +00:00
long_description_content_type="text/x-rst",
2024-07-03 13:59:40 +00:00
classifiers=[ # https://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 3 - Alpha',
2011-08-17 19:36:01 +00:00
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
2011-08-17 19:36:01 +00:00
'Operating System :: OS Independent',
'Programming Language :: Python',
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 :: 3.12',
'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-2-Clause',
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,
python_requires=">=3.8",
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'
)