Skip to content

Commit

Permalink
[jarun#753] temporarily block flake-admin-v2 & actualize install inst…
Browse files Browse the repository at this point in the history
…ructions
  • Loading branch information
LeXofLeviafan committed Jul 20, 2024
1 parent 6394fb2 commit f28ccd5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
19 changes: 7 additions & 12 deletions bukuserver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,28 @@ So be sure to have `python3`, `python3-pip` , `python3-dev`, `libffi-dev` packag
#### Dependencies

```
$ python3 -m pip install --user --upgrade pip
$ python3 -m pip install --user virtualenv
$ python3 -m virtualenv env
$ source env/bin/activate
$ # venv activation (for development)
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install --upgrade pip
```

#### From PyPi

```sh
$ # basic server
$ # regular/venv install
$ pip3 install "buku[server]"
$ # server with reverse proxy
$ pip3 install "buku[server,reverse_proxy]"
$ # pipx install bukuserver with reverse proxy
$ # pipx install
$ pipx install "buku[server]"
$ pipx inject buku https://github.com/rachmadaniHaryono/flask-reverse-proxy-fix/archive/refs/tags/v0.2.2rc1.zip
```

#### From source

```sh
$ git clone https://github.com/jarun/buku
$ cd buku
$ # basic server
$ # regular/venv install
$ pip3 install ".[server]"
$ # server with reverse_proxy
$ pip3 install ".[server,reverse_proxy]"
```

#### Using Docker
Expand Down
2 changes: 1 addition & 1 deletion bukuserver/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
arrow>=1.2.2
Flask-Admin>=1.6.1
Flask-Admin>=1.6.1,<2
Flask-API>=3.0.post1
Flask-Bootstrap>=3.3.7.1
flask-paginate>=2022.1.8
Expand Down
4 changes: 2 additions & 2 deletions bukuserver/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def init_locale(app):
except ImportError:
from flask_babel import Babel
Babel().init_app(app, locale_selector=lambda: app.config['BUKUSERVER_LOCALE'])
except Exception:
app.logger.warning('failed to init locale')
except Exception as e:
app.logger.warning(f'failed to init locale ({e})')


def create_app(db_file=None):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

server_require = [
"arrow>=1.2.2",
"Flask-Admin>=1.6.1",
"Flask-Admin>=1.6.1,<2",
"Flask-API>=3.0.post1",
"Flask-Bootstrap>=3.3.7.1",
"flask-paginate>=2022.1.8",
Expand Down

0 comments on commit f28ccd5

Please sign in to comment.