Add README & LICENSE to data_files
parent
bffb23f884
commit
b0ad7c259d
|
@ -620,7 +620,7 @@ def cgi_file_handler(environ, start_response, app):
|
|||
if url == '':
|
||||
url = 'index.html'
|
||||
|
||||
paths = [os.path.join(sys.prefix, 'share/morss', url),
|
||||
paths = [os.path.join(sys.prefix, 'share/morss/www', url),
|
||||
os.path.join(os.path.dirname(__file__), '../www', url)]
|
||||
|
||||
for path in paths:
|
||||
|
|
5
setup.py
5
setup.py
|
@ -15,8 +15,9 @@ setup(
|
|||
install_requires = ['lxml', 'bs4', 'python-dateutil', 'chardet', 'pymysql'],
|
||||
package_data = {package_name: ['feedify.ini', 'reader.html.template']},
|
||||
data_files = [
|
||||
('share/' + package_name, glob('www/*.*')),
|
||||
('share/' + package_name + '/cgi', [])
|
||||
('share/' + package_name, ['README.md', 'LICENSE']),
|
||||
('share/' + package_name + '/www', glob('www/*.*')),
|
||||
('share/' + package_name + '/www/cgi', [])
|
||||
],
|
||||
entry_points = {
|
||||
'console_scripts': [package_name + '=' + package_name + ':main']
|
||||
|
|
Loading…
Reference in New Issue