-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
67 lines (59 loc) · 2.2 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -*- coding: utf-8 -*-
"""
setup
~~~~
Flask-Pymodm is a simple plugin to integrate Pymodm.
:copyright: (c) 2019 by Petru Buzulan, Daniele Dapuzzo.
:license: MIT, see LICENSE for more details.
"""
from setuptools import setup
import re, io
__version__ = re.search(
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', # It excludes inline comment too
io.open('flask_pymodm/__version__.py'
'', encoding='utf_8_sig').read()
).group(1)
with open("README.md", "r", encoding='utf-8') as fh:
long_description = fh.read()
def parse_requirements(filename):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
setup(
name='Flask-Pymodm',
version=__version__,
url='https://github.com/pbuzulan/flask-pymodm',
project_urls={
"Documentation": "https://pbuzulan.github.io/flask-pymodm/",
"Code": "https://github.com/pbuzulan/flask-pymodm",
"Issue tracker": "https://github.com/pbuzulan/flask-pymodm/issues",
},
license='MIT',
author='Petru Buzulan, Daniele Dapuzzo',
author_email='[email protected], [email protected]',
description="Flask-Pymodm is a simple plugin for Pymodm",
long_description=long_description,
long_description_content_type='text/markdown',
packages=['flask_pymodm'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=parse_requirements('requirements.txt'),
tests_require=[
],
test_suite='tests',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)