File tree Expand file tree Collapse file tree 5 files changed +13
-4
lines changed Expand file tree Collapse file tree 5 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ graft app/static
2
2
graft app/templates
3
3
graft app/misc
4
4
include requirements.txt
5
+ recursive-include test
5
6
global-exclude *.pyc
Original file line number Diff line number Diff line change 16
16
from werkzeug .middleware .proxy_fix import ProxyFix
17
17
18
18
from app .utils .misc import read_config_bool
19
+ from app .version import __version__
19
20
20
21
app = Flask (__name__ , static_folder = os .path .dirname (
21
22
os .path .abspath (__file__ )) + '/static' )
36
37
app .config ['SESSION_COOKIE_NAME' ] = '__Secure-session'
37
38
app .config ['SESSION_COOKIE_SECURE' ] = True
38
39
39
- app .config ['VERSION_NUMBER' ] = '0.8.0'
40
+ app .config ['VERSION_NUMBER' ] = __version__
40
41
app .config ['APP_ROOT' ] = os .getenv (
41
42
'APP_ROOT' ,
42
43
os .path .dirname (os .path .abspath (__file__ )))
Original file line number Diff line number Diff line change 1
1
import os
2
- import setuptools
3
2
4
3
optional_dev_tag = ''
5
4
if os .getenv ('DEV_BUILD' ):
6
5
optional_dev_tag = '.dev' + os .getenv ('DEV_BUILD' )
7
6
8
- setuptools . setup ( version = '0.8.0' + optional_dev_tag )
7
+ __version__ = '0.8.0' + optional_dev_tag
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" setuptools" , " wheel" ]
3
+ build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = whoogle-search
3
+ version = attr: app.version.__version__
3
4
url = https://github.com/benbusby/whoogle-search
4
5
description = Self-hosted, ad-free, privacy-respecting metasearch engine
5
6
long_description = file: README.md
@@ -18,11 +19,11 @@ packages = find:
18
19
include_package_data = True
19
20
install_requires =
20
21
beautifulsoup4
22
+ brotli
21
23
cssutils
22
24
cryptography
23
25
defusedxml
24
26
Flask
25
- Flask-Session
26
27
python-dotenv
27
28
requests
28
29
stem
@@ -34,6 +35,10 @@ test =
34
35
python-dateutil
35
36
dev = pycodestyle
36
37
38
+ [options.packages.find]
39
+ exclude =
40
+ test*
41
+
37
42
[options.entry_points]
38
43
console_scripts =
39
44
whoogle-search = app.routes:run_app
You can’t perform that action at this time.
0 commit comments