mirror of
https://github.com/searxng/searxng.git
synced 2024-11-25 20:31:00 +00:00
[fix] setup.py - needed bugfixes to build a valid package
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
c7309a0869
commit
d72fa99bd0
1 changed files with 25 additions and 27 deletions
52
setup.py
52
setup.py
|
@ -1,8 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""Installer for SearXNG package."""
|
"""Installer for SearXNG package."""
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup, find_packages
|
||||||
from setuptools import find_packages
|
|
||||||
|
|
||||||
from searx.version import VERSION_TAG, GIT_URL
|
from searx.version import VERSION_TAG, GIT_URL
|
||||||
from searx import get_setting
|
from searx import get_setting
|
||||||
|
@ -18,7 +17,7 @@ with open('requirements-dev.txt') as f:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='searxng',
|
name='searxng',
|
||||||
python_requires=">=3.7",
|
python_requires=">=3.8",
|
||||||
version=VERSION_TAG,
|
version=VERSION_TAG,
|
||||||
description="A privacy-respecting, hackable metasearch engine",
|
description="A privacy-respecting, hackable metasearch engine",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
|
@ -28,7 +27,6 @@ setup(
|
||||||
"Issue tracker": get_setting('brand.issue_url')
|
"Issue tracker": get_setting('brand.issue_url')
|
||||||
},
|
},
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Development Status :: 4 - Beta",
|
|
||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
"Topic :: Internet",
|
"Topic :: Internet",
|
||||||
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
||||||
|
@ -39,40 +37,40 @@ setup(
|
||||||
author='SearXNG dev team',
|
author='SearXNG dev team',
|
||||||
author_email='contact@searxng.org',
|
author_email='contact@searxng.org',
|
||||||
license='GNU Affero General Public License',
|
license='GNU Affero General Public License',
|
||||||
packages=find_packages(exclude=["tests*", "searxng_extra"]),
|
packages=find_packages(
|
||||||
zip_safe=False,
|
include=[
|
||||||
|
'searx', 'searx.*', 'searx.*.*', 'searx.*.*.*',
|
||||||
|
]
|
||||||
|
),
|
||||||
install_requires=requirements,
|
install_requires=requirements,
|
||||||
extras_require={
|
extras_require={
|
||||||
'test': dev_requirements
|
'test': dev_requirements
|
||||||
},
|
},
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'searx-run = searx.webapp:run',
|
'searxng-run = searx.webapp:run',
|
||||||
'searx-checker = searx.search.checker.__main__:main'
|
'searxng-checker = searx.search.checker.__main__:main'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
package_data={
|
package_data={
|
||||||
'searx': [
|
'searx': [
|
||||||
'settings.yml',
|
'settings.yml',
|
||||||
'../README.rst',
|
'*.toml',
|
||||||
'../requirements.txt',
|
'*.msg',
|
||||||
'../requirements-dev.txt',
|
'search/checker/scheduler.lua',
|
||||||
'data/*',
|
'data/*.json',
|
||||||
'info/*',
|
'data/*.txt',
|
||||||
'info/*/*',
|
'data/*.ftz',
|
||||||
'plugins/*/*',
|
'infopage/*/*',
|
||||||
'static/*.*',
|
'static/themes/simple/css/*',
|
||||||
'static/*/*.*',
|
'static/themes/simple/css/*/*',
|
||||||
'static/*/*/*.*',
|
'static/themes/simple/img/*',
|
||||||
'static/*/*/*/*.*',
|
'static/themes/simple/js/*',
|
||||||
'static/*/*/*/*/*.*',
|
'templates/*/*',
|
||||||
'templates/*/*.*',
|
'templates/*/*/*',
|
||||||
'templates/*/*/*.*',
|
'translations/*',
|
||||||
'tests/*',
|
'translations/*/*',
|
||||||
'tests/*/*',
|
'translations/*/*/*',
|
||||||
'tests/*/*/*',
|
|
||||||
'translations/*/*/*'
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue