-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
47 lines (43 loc) · 1.49 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from setuptools import setup, find_packages
import re
# Read the contents of the README file
with open('README.md', 'r') as f:
long_description = f.read()
def find_version():
with open('sqlite2rest/__init__.py', 'r') as f:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='sqlite2rest',
version=find_version(),
description='A Python library for creating a RESTful API from an SQLite database using Flask.',
author='Denis Laprise',
author_email='[email protected]',
url='https://github.com/nside/sqlite2rest',
packages=find_packages(),
install_requires=[
'flask==2.3.2',
'openapi-spec-validator==0.6.0',
'pyyaml==6.0.1',
],
entry_points={
'console_scripts': [
'sqlite2rest=sqlite2rest.__main__:main',
],
},
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
python_requires='>=3.6',
)