From f6b29f68a107ac083bd5df0d6e7bda8a05f4479f Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 25 Mar 2020 12:03:11 +0100 Subject: [fix] brands: add variables from build env to setup.py We have some variables in the build environment which are also needed in the setup.py process. Theses variables are relavant if one creates a fork with its own branding. We treat these variables under the term 'brands'. Signed-off-by: Markus Heiser --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index bd3dd5d1c..bd00211b2 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ import sys # required to load VERSION_STRING constant sys.path.insert(0, './searx') from version import VERSION_STRING +import brand with open('README.rst') as f: long_description = f.read() @@ -36,7 +37,7 @@ setup( keywords='metasearch searchengine search web http', author='Adam Tauber', author_email='asciimoo@gmail.com', - url='https://github.com/asciimoo/searx', + url=brand.GIT_URL, license='GNU Affero General Public License', packages=find_packages(exclude=["tests*"]), zip_safe=False, -- cgit v1.2.3 From 33814719333c2c5b7b13ab47f9c8d4f8a0cecb16 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 25 Mar 2020 17:48:34 +0100 Subject: brands: add ISSUE_URL Signed-off-by: Markus Heiser --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index bd00211b2..97a3270ef 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,11 @@ setup( version=VERSION_STRING, description="A privacy-respecting, hackable metasearch engine", long_description=long_description, + url=brand.DOCS_URL, + project_urls={ + "Code": brand.GIT_URL, + "Issue tracker": brand.ISSUE_URL + }, classifiers=[ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -37,7 +42,6 @@ setup( keywords='metasearch searchengine search web http', author='Adam Tauber', author_email='asciimoo@gmail.com', - url=brand.GIT_URL, license='GNU Affero General Public License', packages=find_packages(exclude=["tests*"]), zip_safe=False, -- cgit v1.2.3