-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
35 lines (32 loc) · 993 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
32
33
34
35
import os
import sys
from pip.req import parse_requirements
from pip.download import PipSession
from setuptools import find_packages
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# reading requirements
install_reqs = parse_requirements('requirements.txt', session=PipSession())
reqs = [str(ir.req) for ir in install_reqs]
sys.path.insert(0, os.path.dirname(__file__))
version = '1.0.1'
setup(
name='pymdtoc',
author='cyriac',
author_email='[email protected]',
version=version,
packages=find_packages(),
install_requires=reqs,
include_package_data=True,
license='MIT',
description='Add table of contents to markdown files',
keywords = ['markdown', 'toc', 'md'],
url='https://github.com/cyriac/pymdtoc',
download_url = 'https://github.com/cyriac/pymdtoc/archive/v{version}.tar.gz'.format(version=version),
entry_points='''
[console_scripts]
mdtoc=pymdtoc.cli:cli
'''
)