-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·46 lines (41 loc) · 1.14 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
#!/usr/bin/env python
import re
from setuptools import setup, find_packages
pkgname = 'datastore.git'
# gather the package information
main_py = open('datastore/git/__init__.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py))
packages = filter(lambda p: p.startswith(pkgname), find_packages())
# convert the readme to pypi compatible rst
try:
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except ImportError:
readme = open('README.md').read()
except:
print 'something went wrong reading the README.md file.'
readme = ''
setup(
name=pkgname,
version=metadata['version'],
description='git datastore implementation',
long_description=readme,
author=metadata['author'],
author_email=metadata['email'],
url='http://github.com/datastore/datastore.git',
keywords=[
'datastore',
'git',
'dulwich',
],
packages=packages,
install_requires=['datastore>=0.3.0', 'dulwich>=0.8.7'],
test_suite='datastore.git.test',
license='MIT License',
classifiers=[
'Topic :: Database',
'Topic :: Database :: Front-Ends',
'Topic :: Datastore :: Implementation',
]
)