Add README & LICENSE to data_files

master
pictuga 2020-04-14 19:34:12 +02:00
parent bffb23f884
commit b0ad7c259d
2 changed files with 4 additions and 3 deletions

View File

@ -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:

View File

@ -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']