-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
44 lines (40 loc) · 1.32 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
import os
import re
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
# Read version from init
regex = re.compile(r"__version__\s*=\s*(\S+)", re.M)
data = open(os.path.join("mongonator", "__init__.py")).read()
setuptools.setup(
name="PyMongonnator",
version=eval(regex.search(data).group(1)),
author="nitxiodev",
author_email="[email protected]",
description="Simple pymongo paginator using bucket pattern",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/nitxiodev/py-mongonnator",
packages=setuptools.find_packages(),
install_requires=[
"pymongo[srv]>=3.10.1",
],
test_requires=[
"pytest",
"pytest-cov",
"coverage==4.5.4",
"tox",
],
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
],
)