2
0
mirror of https://github.com/frappe/bench.git synced 2025-02-03 11:28:24 +00:00

67 Commits

Author SHA1 Message Date
David
0bb5ffeb69
fix: apps init; apps might be an empty folder still 2024-11-27 15:58:03 +01:00
Akhil Narang
1ab3763fd6
fix: don't allow uninstall frappe...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-08-30 18:08:51 +05:30
Ankush Menat
f29e25a5d2 feat: flag to setup bench with developer mode enabled
Dev dependencies are not installed if developer_mode is not enabled.
When creating a new bench it's not possible to modify this config
upfront, so offer a flag to do it instead.

Note:
- Disabled by default.
- Very few people need this, those who write and run tests locally primarily.
- You mostly should not do this in CI, do `bench setup requirements --dev` explicitly instead.
2023-11-02 14:28:21 +05:30
Gavin D'souza
d9c8335fbf
fix: Remove except-pass ValueError 2023-06-02 12:41:56 +05:30
Gavin D'souza
4f423923b4
fix: Use App.app_name over repo attr 2023-05-31 14:00:24 +05:30
Gavin D'souza
3af6058d1b
fix: Archive app for different repo/app names 2023-05-31 14:00:24 +05:30
Ankush Menat
7a63f4f461
fix: ignore supervisor restart failures where possible (#1400)
* fix: ignore supervisor restart failures where possible

Ignores proc manager restart failure during:
- App install
- App uninstall

Reason:
- You might not have setup prod yet
- This is useful during docker image building where proc manager wont be
  running **yet**.

* ci: dont fail-fast

matrix has no dependency.
2022-12-12 14:08:04 +05:30
Ankush Menat
4996afb012 fix: install wheel in venv
closes https://github.com/frappe/frappe/issues/18718
2022-12-12 13:12:37 +05:30
Ankush Menat
c59d1edee5
fix: restart proc manager if set in config (#1391) 2022-11-28 13:05:00 +05:30
Aradhya Tripathi
fcbc2eaa47
fix: no-git support for dependency resolver (#1368)
* feat: introducing support for no-git

refactor: lint

* feat: added support for validating git repos

* refactor: removed formatting changes
2022-09-08 11:27:34 +05:30
Sagar Vora
dc047a5e7d fix: dont use glob pattern for python exec 2022-08-07 01:36:16 +05:30
Gavin D'souza
78742b9546 refactor: Use specific lru_cache imports over entire module's 2022-08-02 12:00:08 +05:30
Gavin D'souza
f60c2d0def fix: Use venv module instead of virtualenv
Only migrate-env requires virtualenv wrapper. However, it can be
installed and run manually too. Virtualenv wrapper is patched in debian
to change the path of bins - which venv is free from.
2022-08-02 11:54:00 +05:30
Gavin D'souza
01b77598ff fix: Pass cwd for cmd subprocess execution
Also, use python instead of python3 hardcoded in env
2022-08-01 17:48:51 +05:30
Gavin D'souza
c9c6bf4512 fix: Use hardcoded python3 env cmd for Bench.python 2022-08-01 15:16:03 +05:30
Gavin D'souza
e5fa4df5f9 fix: Fetch env python if exists before returning fallback 2022-08-01 11:49:15 +05:30
barredterra
df84c2772d fix: use specified python for venv 2022-07-28 14:19:09 +02:00
Gavin D'souza
a84239d6ab refactor: Bench
* Drop patches of v3 & v4
* Re-write buggy / broken code wrt hints by pre-commit checks
* Auto-format and transform code
* Remove re-written & mutable function defaults
2022-07-27 14:39:22 +05:30
Gavin D'souza
ffae670be7 fix: (re)Install every Frappe app even if not installed to env 2022-06-16 17:54:21 +05:30
Gavin D'souza
e0f6b1735d fix: Remove virtualenv dependency
Use virtualenv cli only if found in PATH. Else use
venv package of the invoker's Python installation.
venv was added in the std lib since PY33.

ref: https://docs.python.org/3/library/venv.html
2022-05-30 14:32:55 +05:30
gavin
f7f7459c51 fix: Delete folder if --no-backup is passed 2022-05-19 13:09:18 +05:30
gavin
69e14e512f feat(remove-app): Options for no backup of app & force removal 2022-05-19 13:00:09 +05:30
Aradhya
7980709a20 fix: updated apps.sync to support new app_name parameter 2022-05-10 02:58:30 +05:30
Aradhya
c667be9023 fix: fixed args to sync-states 2022-05-09 23:07:11 +05:30
Aradhya
7f374887f4 fix: fixed states sync 2022-05-09 19:46:54 +05:30
Aradhya
35504f81b3 feat: Added app_name attribute to App class 2022-05-07 02:47:38 +05:30
Aradhya
b36c0723be feat: Made dynamic mount path if bench attr is passed to App class 2022-05-05 19:57:37 +05:30
Aradhya
49900ce74b fix: removed unnecessary requests while removing apps 2022-05-04 18:08:13 +05:30
Aradhya Tripathi
c8ef8224d4
fix: fixed org, branch for apps mounted on disk (#1293)
* fix: fixed org, branch for apps mounted on disk

* fix: DRY-er code

* fix: fixed loading apps when use_ssh is true

* fix: removed flaky tests to test dependencies

* fix: removed exception if app not found in frappe or erpnext org

* fix: remote server

* test: Updated tests

fix: tests

* fix: raise when org is not found

* fix: setup requirements

* fix: falling back to original method of mounted app initialization if git repo isn't found
2022-04-19 22:31:51 +05:30
Aradhya
281d96ac16 fix: Fixed order of install 2022-04-04 23:42:52 +05:30
Aradhya
a1a35eed0e feat: Added support for backward compatibility in states 2022-04-02 15:41:21 +05:30
Aradhya
3ac19ca4c6 refactor: not sorting apps to maintain order of install 2022-04-01 11:34:10 +05:30
Aradhya
d514f84d5f merge: merged develop into dependency-resolution 2022-03-21 21:50:24 +05:30
Aradhya Tripathi
dd97c430a2
Merge branch 'develop' into dependency-resolution 2022-03-21 14:54:23 +05:30
Aradhya
67638b19b7 refactor: added ignore resolution to ignore messages in install app 2022-03-21 14:52:04 +05:30
Gavin D'souza
af14bafe21 fix(restart): Setup restarts vars with fallback 2022-03-21 13:37:16 +05:30
Gavin D'souza
25f49c2dbb fix: Respect bench config during restart
Fixes https://github.com/frappe/bench/issues/1261
2022-03-17 10:23:34 +05:30
saxenabhishek
9ac091b4d9 feat: add required and order of install 2022-03-11 14:12:31 +05:30
saxenabhishek
56f7016e69 docs: rename states.json file 2022-03-10 23:07:44 +05:30
saxenabhishek
9004e1dd6a feat: add commit hash and branch in states.json 2022-03-10 23:06:47 +05:30
Aradhya
d178b08abb feat: verbose env setup & checking for compatible versions 2022-03-10 18:33:49 +05:30
Aradhya
6d05fe2f53 Merge branch 'develop' of github.com:Aradhya-Tripathi/bench into dependency-resolution 2022-02-25 16:27:41 +05:30
Aradhya
6e4f121fc6 Merge branch 'develop' of github.com:Aradhya-Tripathi/bench into dependency-resolution 2022-02-22 13:31:00 +05:30
Sagar Vora
3c5944623a fix: clearer docstrings 2022-02-19 09:50:20 +05:30
DaizyModi
28e681689f
feat: Setup Requirements for specific apps (#1265)
* feat:  flag for Setup Requirements

* chore: Moved __get_installed_app method in Bench

* fix: improve help message

* fix: allow muliple apps to be specified

Co-authored-by: Sagar Vora <sagar@resilient.tech>
Co-authored-by: gavin <gavin18d@gmail.com>
2022-02-18 17:34:39 +05:30
Aradhya
7e28a3dd9e fix: added code removed via erroneous commit 2022-02-07 12:24:50 +05:30
Aradhya
42f4d74beb fix: fixed app states and checking/updating frappe version on install
fix: fixed valid branch check in init
2022-02-07 10:16:50 +05:30
Aradhya
549e8e2a1d feat: Added app states 2022-02-07 09:34:35 +05:30
Gavin D'souza
814bcc6320 refactor: Bench restart
* Commonify reloading processes' logic
* Add functionality to restart web workers in development
* Use Bench.reload instead
2021-12-02 14:21:52 +05:30
Gavin D'souza
a2ccc30bc3 fix: Initialize bench in get-app with --init-bench 2021-11-29 18:34:58 +05:30