forked from mxr/random-object-id
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
31 lines (25 loc) · 799 Bytes
/
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
import re
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
init_path = 'random_object_id/__init__.py'
version = re.search('"([0-9\.]+)"', read(init_path)).group(1)
long_description = read('README.rst')
setup(
name='random-object-id',
packages=['random_object_id'],
entry_points={
'console_scripts': [
'random_object_id=random_object_id.random_object_id:main',
],
},
version=version,
description='Generate a random MongoDB ObjectId.',
long_description=long_description,
author='Max Rozentsveyg',
author_email='[email protected]',
license='MIT',
keywords='random test MongoDB mongo ObjectId',
url='https://github.com/mxr/random-object-id',
)