Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (49 loc) · 1.59 KB
/
Copy pathsetup.py
File metadata and controls
54 lines (49 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import re
from pathlib import Path
from setuptools import setup, find_packages
here = Path(__file__).parent
# Single source of truth: Products/ZSQLiteDA/__init__.py.__version__
# (read as text -- importing the package would pull in Zope).
version = re.search(
r"^__version__ = '([^']+)'",
here.joinpath('Products', 'ZSQLiteDA', '__init__.py').read_text(
encoding='utf-8'),
re.M,
).group(1)
long_description = (
here.joinpath('README.rst').read_text(encoding='utf-8')
+ '\n\n'
+ here.joinpath('CHANGES.rst').read_text(encoding='utf-8')
)
setup(name='Products.ZSQLiteDA',
version=version,
description="SQLite database adapter for Zope4",
long_description=long_description,
long_description_content_type='text/x-rst',
# Get more strings from
# http://pypi.python.org/pypi?:action=list_classifiers
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Framework :: Zope :: 4",
"Framework :: Zope :: 5",
"License :: OSI Approved :: Zope Public License",
],
keywords='SQLite',
author='Hajime Nakagami',
author_email='nakagami@gmail.com',
url='https://github.com/nakagami/Products.ZSQLiteDA',
license='ZPL',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['Products'],
include_package_data=True,
zip_safe=False,
python_requires='>=3.7',
install_requires=[
'Zope >= 4',
'Products.ZSQLMethods',
],
entry_points="""
# -*- Entry points: -*-
""",
)