From f0f8011d241f08e5da52b0864f0328244c3afb63 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Mon, 16 Oct 2023 18:17:54 +0200 Subject: [PATCH] Modified build script to avoid warnings --- setup.cfg | 7 +++++-- setup.py | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index 11703785..4dd18210 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,7 +13,7 @@ author = @OzzieIsaacs author_email = Ozzie.Fernandez.Isaacs@googlemail.com maintainer = @OzzieIsaacs license = GPLv3+ -license_file = LICENSE +license_files = LICENSE classifiers = Development Status :: 5 - Production/Stable License :: OSI Approved :: GNU Affero General Public License v3 @@ -58,7 +58,10 @@ install_requires = chardet>=3.0.0,<4.1.0 advocate>=1.0.0,<1.1.0 Flask-Limiter>=2.3.0,<3.5.0 - + +[options.packages.find] +where = src +include = cps/services* [options.extras_require] gdrive = diff --git a/setup.py b/setup.py index 6bde2211..35db2e90 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,8 @@ def find_version(*file_paths): raise RuntimeError("Unable to find version string.") setup( - packages=find_packages("src"), - package_dir = {'': 'src'}, + #packages=find_packages("src"), + #package_dir = {'': 'src'}, + #package_data={"calibreweb": ["cps/translations/*/LC_MESSAGES/*.mo"], "templates": ["*.html"]}, version=find_version("src", "calibreweb", "cps", "constants.py") )