-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
41 lines (35 loc) · 1.08 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
from setuptools import setup
import zip
from os import path
def parse_requirements(filename, session):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
here = path.abspath(path.dirname(__file__))
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except:
with open(path.join(here, 'README.md')) as f:
long_description = f.read()
install_requires = [str(ir)
for ir in parse_requirements(
path.join(here, 'requirements.txt'),
session=False)]
setup(
name=zip.__title__,
version=zip.__version__,
description=zip.__summary__,
long_description=long_description,
license=zip.__license__,
url=zip.__uri__,
author=zip.__author__,
author_email=zip.__email__,
packages=["zip"],
entry_points={
"console_scripts": [
"iou = zip.run:main",
],
},
install_requires=install_requires,
)