2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 17:24:41 +00:00
Commit Graph

279 Commits

Author SHA1 Message Date
Aradhya
67638b19b7 refactor: added ignore resolution to ignore messages in install app 2022-03-21 14:52:04 +05:30
Aradhya
bbca3e9fab feat: mimicking get-app behaviour when app is already installed 2022-03-20 22:15:41 +05:30
Gavin D'souza
ad000f1be7 fix: Don't handle BaseExceptions 2022-03-17 11:41:57 +05:30
Gavin D'souza
d33d987b2c fix: User messages on get-app actions 2022-03-17 11:41:34 +05:30
saxenabhishek
9ac091b4d9 feat: add required and order of install 2022-03-11 14:12:31 +05:30
saxenabhishek
af3c871632 fix: missing installed branch 2022-03-11 13:34:54 +05:30
saxenabhishek
67df07b732 fix: empty states json condition 2022-03-11 13:22:49 +05:30
saxenabhishek
7de1fa7c4d style: black-ish 2022-03-11 13:13:53 +05:30
saxenabhishek
2287f3f7ec fix: check current branch 2022-03-11 13:13:53 +05:30
saxenabhishek
5bb3b52f23 fix: print required by in output 2022-03-10 23:07:15 +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
saxenabhishek
79765e6b25 fix: check for valid branch in resolve 2022-03-10 12:59:14 +05:30
Aradhya
b0ae3ae359 perf: Using github API 2022-03-02 22:44:12 +05:30
Aradhya
de315f27ad fix: logging when in init-bench 2022-02-28 14:29:05 +05:30
Aradhya
bb911b5e5a refactor: ignoring app deps when install app without --resolve-deps 2022-02-25 16:51:06 +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
2fed369066 fix: file-uri while app initialisation 2022-02-23 14:56:15 +05:30
Aradhya
6e4f121fc6 Merge branch 'develop' of github.com:Aradhya-Tripathi/bench into dependency-resolution 2022-02-22 13:31:00 +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
e629ca6f86 fix: minor fixes 2022-02-17 21:48:40 +05:30
Aradhya
bba4019579 feat: printing resolved dependencies when using resolve-deps flag wih get-app 2022-02-17 21:38:01 +05:30
Aradhya
7e28a3dd9e fix: added code removed via erroneous commit 2022-02-07 12:24:50 +05:30
Aradhya
c8dfe39c05 refactor: using hooks.py instead of toml files to read dependencies 2022-02-07 10:21: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
e3bd34c12c fix: fixed init in get-app and frappe versions 2022-02-07 10:00:38 +05:30
Aradhya
2363fe38d5 refactor: moved resolve and install to get-app 2022-02-07 09:53:55 +05:30
Aradhya
549e8e2a1d feat: Added app states 2022-02-07 09:34:35 +05:30
saxenabhishek
d41e05e24f feat: introduced simple resolver 2022-02-07 09:29:14 +05:30
Gavin D'souza
23b37a3606 style: Re-order import statement 2022-01-04 17:08:17 +05:30
Gavin D'souza
e3b9c2a239 fix: Set remote_server attr "better"
So better here is relative. The point was to not have the parsing break
everything. So, idk whats org and repo now right off the bat...and since
we're not using this info, we dont need to care about it rn
2022-01-04 17:04:45 +05:30
Gavin D'souza
0898e2d2a2 fix: Don't recompute URLs when name passed in App 2022-01-04 16:23:16 +05:30
Gavin D'souza
9802feaa9c fix: Set correct remote_server for cloning
Fixes https://github.com/frappe/bench/issues/1228
2021-12-28 12:35:59 +05:30
Gavin D'souza
217f27f511 fix: Set proper branch to clone
Fixes https://github.com/frappe/bench/issues/1242
2021-12-28 12:35:06 +05:30
gavin
b0ad6426a8
Merge pull request #1222 from gavindsouza/reload-bench
refactor: bench restart
2021-12-21 15:29:58 +05:30
Rohan Bansal
660287a1a7 fix: process SSH git URLs 2021-12-07 15:16:49 +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
phot0n
2a25a6d2d9 feat: add no-git option to new-app command 2021-12-01 00:00:18 +05:30
Gavin D'souza
357fcc0bbd fix: Trailing slash not setting app name properly
Re-do of https://github.com/frappe/bench/pull/1021, somewhat
2021-11-30 11:33:02 +05:30
Gavin D'souza
a17af670df style: Black-ish make & app 2021-11-29 18:57:40 +05:30
Gavin D'souza
8275d678f4 fix: Pass skip_assets while resolving dependant apps 2021-11-29 18:55:47 +05:30
Gavin D'souza
a2ccc30bc3 fix: Initialize bench in get-app with --init-bench 2021-11-29 18:34:58 +05:30
Gavin D'souza
1b2bb87ab7 refactor: Bench verbosity
It's off by default. If you want it enabled, pass --verbose or -v
following `bench`. The verbosity only changes how pip installs work.
Other stuff is immaterial at this point.

Eg: bench -v setup requirements
2021-11-26 16:24:56 +05:30
Gavin D'souza
6081690d7b refactor(minor): python packages setup 2021-11-26 12:47:29 +05:30
Gavin D'souza
d63a9883e0 feat(minor): Bench.python property that points to env python 2021-11-26 11:54:32 +05:30
Gavin D'souza
225fce5be6 fix: Show bench init job via bench get-app (conditional)
This happens when dynamic-feed is enabled
2021-11-18 18:13:14 +05:30
Gavin D'souza
f117959801 feat: Dynamic Output rendering
Each operation can be broken down to multiple jobs. For instance, the
update operation can be broken down into: setting up bench dirs, env,
backups, requirements, etc.

Each step has a lot of output since Frappe requires a lot of complex
stuff to be done as a pre-requisite. Bench tries to simplify a lot in a
single command. Once, a step is completed, it's output is not really
required. So, we can ignore it to reduce the noise.

Here's where the `bench.cli.fancy` variable kicks in. Along with the
refactored log and new step wrapper, it makes the above thing possible.

At this point, there's no way to set this var from the end user...given
I'm still developing this. In the later commits, the idea is to pass a
flag similar to pip's --use-feature flag.
2021-11-18 01:00:04 +05:30
Gavin D'souza
cd1f526d09 perf: Cache Bench and App instantiation 2021-11-18 00:39:48 +05:30
Gavin D'souza
cd252d3476 refactor: setup dev requirements
* Remove unwanted log message 🤢. It was inconsistent...this had to be
  done...rip
* Fix missing import - install_python_dev_dependencies
* Don't setup node + python requirements when --dev flag is passed
2021-11-17 23:56:55 +05:30
Gavin D'souza
30e3e725a8 fix: Show traceback on bench init failure
Other changes:
* Invoke internal init function instead of invoking click
command. This was done to avoid handling random Exceptions that are done
in the command definition
* os.chdir after initializing new bench in get_app
2021-11-17 23:55:15 +05:30