-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
45 lines (37 loc) · 1.21 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
# -*- coding: utf-8 -*-
"""
:copyright: (c) 2021 by Michael Krukov
:license: MIT, see LICENSE for more details.
"""
import os
import setuptools
if os.environ.get('GITHUB_REF_TYPE') == 'tag':
assert os.environ.get('GITHUB_REF_NAME')
VERSION = os.environ['GITHUB_REF_NAME'].lstrip('v')
else:
VERSION = '0+unknown'
with open('README.md', 'r') as fh:
long_description = fh.read()
setuptools.setup(
name='mongomock_motor',
version=VERSION,
author='Michael Krukov',
author_email='[email protected]',
keywords=['library', 'mongodb'],
description='Library for mocking AsyncIOMotorClient built on top of mongomock.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/michaelkryukov/mongomock_motor',
packages=setuptools.find_packages(include=('mongomock_motor',)),
install_requires=[
'mongomock>=3.23.0,<5.0.0',
],
python_requires='>=3.6',
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
],
)