Skip to content

Commit b256e92

Browse files
committed
separate requirements from setup.py https://caremad.io/2013/07/setup-vs-requirement/
1 parent 14b85cd commit b256e92

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
include requirements.txt
21
include VERSION

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.10
1+
0.0.11

pyexcel_ods3/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
load_data as read_data,
2222
store_data as write_data
2323
)
24-
import sys
2524
PY2 = sys.version_info[0] == 2
2625

2726

setup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
with open("README.rst", 'r') as readme:
99
README_txt = readme.read()
1010

11-
with open("requirements.txt", 'r') as dependencies:
12-
lines = dependencies.readlines()
13-
lines = map(lambda x: x.rstrip(), lines)
14-
requirements_txt = lines
11+
dependencies = [
12+
'pyexcel-io>=0.0.9',
13+
'lxml',
14+
'ezodf>=0.3.2'
15+
]
1516

1617
with open("VERSION", "r") as version:
1718
version_txt = version.read().rstrip()
@@ -23,7 +24,7 @@
2324
author_email="[email protected]",
2425
url="https://github.com/chfw/pyexcel-ods3",
2526
description='A wrapper library to read, manipulate and write data in ods format',
26-
install_requires=requirements_txt,
27+
install_requires=dependencies,
2728
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
2829
include_package_data=True,
2930
long_description=README_txt,

0 commit comments

Comments
 (0)