Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d140958

Browse files
fix packages and package data files
1 parent cbd7aad commit d140958

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎setup.py‎

Lines changed: 5 additions & 4 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,8 +38,10 @@ def grep(attrname):
3938
author_email=grep('__email__'),
4039
description='uliweb-apijson',
4140
long_description=desc(),
42-
packages = ['uliweb_apijson'],
43-
include_package_data=True,
41+
packages = find_packages(),
42+
package_data={
43+
'':["*.md","*.ini","static/*","templates/*","templates/*/*"]
44+
},
4445
zip_safe=False,
4546
platforms='any',
4647
install_requires=[

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /