Skip to content

Commit ce7daf8

Browse files
committed
fix packages and package data files in setup.py
1 parent cbd7aad commit ce7daf8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include uliweb_apijson *.ini *.txt *.html *.js *.css *.md

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import re
55
import os
66

7-
from setuptools import setup
7+
from setuptools import setup, find_packages
88

99
def fpath(name):
1010
return os.path.join(os.path.dirname(__file__), name)
@@ -29,7 +29,6 @@ def grep(attrname):
2929
pattern = r"{0}\s*=\s*'([^']*)'".format(attrname)
3030
strval, = re.findall(pattern, file_text)
3131
return strval
32-
3332
setup(
3433
name='uliweb-apijson',
3534
version=grep('__version__'),
@@ -39,7 +38,7 @@ def grep(attrname):
3938
author_email=grep('__email__'),
4039
description='uliweb-apijson',
4140
long_description=desc(),
42-
packages = ['uliweb_apijson'],
41+
packages = find_packages(),
4342
include_package_data=True,
4443
zip_safe=False,
4544
platforms='any',

0 commit comments

Comments
 (0)