-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·40 lines (34 loc) · 1.04 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import io
import re
with open('README.md', 'r') as f:
readme = f.read()
with open('LICENSE', 'r') as f:
license = f.read()
with open('requirements.txt', 'r') as f:
requires = []
for line in f:
line = line.strip()
if not line.startswith('#'):
requires.append(line)
with io.open("src/cocozip/__init__.py", "rt", encoding="utf8") as f:
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)
setup(
name='cocozip',
version=version,
description='TODO',
long_description=readme,
author='user',
author_email='[email protected]',
url='https://github.com/duinodu/cocozip',
license=license,
platform='linux',
zip_safe=False,
packages=find_packages("src"),
package_dir={'': 'src'},
include_package_data=True,
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
install_requires=requires,
entry_points={"console_scripts": ["cocozip = cocozip.cli:main"]},
)