forked from matthijsb/sqlalchemy-pagination
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
30 lines (25 loc) · 938 Bytes
/
setup.py
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
import re
from setuptools import setup, find_packages
def get_version():
with open('sqlalchemy_pagination/__init__.py', 'r') as f:
version_regex = r'^__version__\s*=\s*[\'"](.+)[\'"]'
return re.search(version_regex, f.read(), re.MULTILINE).group(1)
setup(
name='sqlalchemy-pagination',
version=get_version(),
url='https://github.com/wizeline/sqlalchemy-pagination',
author='Wizeline',
author_email='[email protected]',
description='A small utility to paginate SqlAlchemy queries.',
packages=find_packages(exclude=['tests']),
include_package_data=True,
zip_safe=False,
keywords=['sqlalchemy', 'pagination', 'paginate'],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3'
],
)