Skip to content

Commit f6283f3

Browse files
committed
fix 2.7 setup.py
1 parent da5fd41 commit f6283f3

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

setup.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
# local imports
2-
import jsonparse
3-
41
# python imports
5-
from setuptools import setup, find_namespace_packages
6-
import os
2+
from setuptools import setup, find_packages
73
from codecs import open
84

95
# read from the VERSION file
10-
with open(os.path.join(
11-
os.path.dirname(jsonparse.__file__), 'VERSION')) as version_file:
6+
with open('src/jsonparse/VERSION') as version_file:
127
version = version_file.read().strip()
138

149
# long description as readme
@@ -56,7 +51,7 @@
5651
'jp=jsonparse.cli:entrypoint',
5752
],
5853
},
59-
packages=find_namespace_packages(include=["jsonparse"]),
54+
packages=find_packages(include=["jsonparse"]),
6055
package_dir={"jsonparse": "jsonparse"},
6156
package_data={
6257
'jsonparse': ['VERSION'],

0 commit comments

Comments
 (0)