2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-29 07:19:05 +00:00
Commit Graph

1128 Commits

Author SHA1 Message Date
Aradhya
1cd914933f refactor: changed resolve to resolve-deps 2022-02-28 15:29:58 +05:30
Aradhya
4feb07684a refactor: using hooks.py instead of toml files to read dependencies 2022-02-28 15:29:58 +05:30
Aradhya
30a4ec3b42 fix: fixed app states and checking/updating frappe version on install
fix: fixed valid branch check in init
2022-02-28 15:29:58 +05:30
Aradhya
88c23673d6 fix: fixed init in get-app and frappe versions 2022-02-28 15:29:58 +05:30
Aradhya
210146d222 refactor: moved resolve and install to get-app 2022-02-28 15:29:58 +05:30
Aradhya
fdab757f9b feat: Added app states 2022-02-28 15:29:58 +05:30
Aradhya
cdaeea1d4a feat: Added bench command for resolve and install 2022-02-28 15:29:58 +05:30
saxenabhishek
bfd69c37eb feat: introduced simple resolver 2022-02-28 15:29:58 +05:30
gavin
5bc2706175
Merge branch 'develop' into tests 2022-02-25 00:35:47 +05:30
Aradhya
df76415e6b refactor: running utils tests before bench tests 2022-02-24 12:40:00 +05:30
Aradhya Tripathi
60084fd6b3
Merge branch 'develop' into uri-path 2022-02-24 00:42:58 +05:30
Aradhya
3dcd28f569 test: updated tests to check for correct parsing of file uris 2022-02-23 21:53:08 +05:30
Aradhya
8fb6796250 test: Added tests for app utils 2022-02-23 21:44:55 +05:30
Aradhya
2fed369066 fix: file-uri while app initialisation 2022-02-23 14:56:15 +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
saxenabhishek
c66283dd08 test: test_switch_to_branch() which is lower 2022-02-05 01:49:11 +05:30
saxenabhishek
5b1b84bc5f fix: use frappe13 in py 3.7 2022-01-31 19:14:16 +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
2fa25d8791 fix: Command picking & execution
Parse sys.argv appropriately and use them to match commands "better".
Using hacks to match with flags and options appear to be faulty, so
dropped that. Only matching with command names remains.

Fixes https://github.com/frappe/bench/issues/1223
2021-12-28 13:39:23 +05:30
Gavin D'souza
2caf7e7d15 fix: Set verbosity if --verbose is passed anywhere period
Fixes https://github.com/frappe/bench/issues/1224
2021-12-28 12:42:53 +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
Dany Robert
fd82585d5f
chore: remove unnecessary shutil import 2021-12-17 19:39:51 +05:30
Dany Robert
a648590be4
fix: replace shutil.move with Path.rename
Co-authored-by: gavin <gavin18d@gmail.com>
2021-12-17 19:38:41 +05:30
Dany Robert
aaf48566b7
fix: PosixPath object has no attribute 'rstrip' 2021-12-09 13:03:01 +05:30
Rohan Bansal
660287a1a7 fix: process SSH git URLs 2021-12-07 15:16:49 +05:30
Gavin D'souza
ec369a16a1 fix: Clear Bench instance cache on every chdir 2021-12-02 14:22:34 +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
b11f5b0f96 fix: Check if archived_sites directory exists before running 2021-11-30 17:46:56 +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
8480eb5df7 feat(minor): --install-app option in init 2021-11-29 18:55:21 +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
877e812fbb fix: Patch to move archived_sites to archived/sites
This patch runs only if Frappe >= v14. Doesn't do anything else

Frappe PR: https://github.com/frappe/frappe/pull/15060
2021-11-26 18:53:13 +05:30
Gavin D'souza
b7994e21b1 fix: Show warning while using experimental features
This shows a "WARNING:..." whenever any --use-feature flag is used
2021-11-26 16:28:18 +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
27128c7c18 fix: Import bench.cli
For whatever reason, Travis complained saying "AttributeError: module 'bench' has no attribute 'cli'" but works fine locally :')
2021-11-18 19:02:22 +05:30
Gavin D'souza
a8564f3991 chore: Mark methods under job/step 2021-11-18 18:26:48 +05:30
Gavin D'souza
7c653db703 refactor: CLI entry point
* Optimized condiitonal checks
* Removed warnings for src, --version
* Handled positional shifts due to usages of --use-feature (by
  set.intersection)
* Raise Exception always instead of hiding the traceback
2021-11-18 18:26:39 +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
f230778972 refactor: CLI Rendering Engine
* Hanlde job-step renders
* Use context manager for managing renders and state
* Job and Step remain process agnostic - neither are dependant on the
  other
2021-11-18 18:10:01 +05:30
Gavin D'souza
6d10d75bb1 fix: Show pip's help menu when --help is passed in pip command 2021-11-18 18:07:32 +05:30