forked from schapman1974/tinymongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (35 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
import io
import os
from setuptools import setup, find_packages
def read(*names, **kwargs):
"""Read a file."""
return io.open(
os.path.join(os.path.dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf8')
).read()
def parse_md_to_rst(file):
"""Read Markdown file and convert to ReStructured Text."""
try:
from m2r import parse_from_file
return parse_from_file(file).replace(
"artwork/", "http://198.27.119.65/"
)
except ImportError:
# m2r may not be installed in user environment
return read(file)
with open('requirements.txt') as f:
requirements = f.read().splitlines()
setup(
name='tinymongo',
packages=find_packages(),
version='0.1.8.dev0',
description='A flat file drop in replacement for mongodb. Requires Tinydb',
author='Stephen Chapman, Jason Jones',
author_email='[email protected]',
url='https://github.com/schapman1974/tinymongo',
download_url='https://github.com/schapman1974/tinymongo/archive/master.zip',
keywords=['mongodb', 'drop-in', 'database', 'tinydb'],
long_description=parse_md_to_rst("README.md"),
classifiers=[],
install_requires=requirements
)