2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-26 16:08:23 +00:00

2020 Commits

Author SHA1 Message Date
gavin
9b2b105b65
Merge pull request #1195 from fproldan/queues
feat: Added option to provide custom queues
2021-09-16 15:38:17 +05:30
Francisco Roldán
e0b9461d41
Merge branch 'develop' into queues 2021-09-14 08:43:31 -03:00
Francisco Roldan
75f84625ad fix: rename key 2021-09-14 08:42:06 -03:00
semantic-release-bot
ff2f01fb16 chore(release): Bumped to Version 5.6.0
# [5.6.0](https://github.com/frappe/bench/compare/v5.5.0...v5.6.0) (2021-09-13)

### Bug Fixes

* **command_cache:** Return iterable as fallback ([6fd3ad7](6fd3ad738b))
* Always set return code via cli ([552b935](552b935f6b))
* Hit command cache before fetching all commands ([a94ea19](a94ea19bf4))
* Return fallback list in cached_frappe_commands ([a015501](a015501699))
* set referrer-policy header in nginx config ([a4916d7](a4916d7b89))

### Features

* `bench setup requirements --dev` ([#1196](https://github.com/frappe/bench/issues/1196)) ([b51f0ed](b51f0ed2b2))
* Set default version for easy install to v13 ([#1189](https://github.com/frappe/bench/issues/1189)) ([6137086](6137086e03))
v5.6.0
2021-09-13 15:28:21 +00:00
gavin
1f43d9b7d9
Merge pull request #1199 from frappe/staging
chore: Merge staging into v5.x
2021-09-13 20:57:32 +05:30
Gavin D'souza
9584b1ea9f Merge branch 'develop' into staging 2021-09-13 20:56:27 +05:30
Ankush Menat
b51f0ed2b2
feat: bench setup requirements --dev (#1196)
* chore: typo

* chore: update project description

* feat: command to install dev-requirements.txt

Often applications have development or test specific requirements which
are not required in production.

- Add new command `bench setup dev-requirements`
- installs all `dev-requirements.txt` in app's root folder.

* refactor: remove duplicate function

* refactor: use `log` instead of print

* refactor: merge dev-requirement command

* feat: install dev-dependencies in get-app if dev

When developer mode is enabled install all dev dependencies too while
doing `get-app`

* fix: warn about --dev not supporting node
2021-09-13 20:55:21 +05:30
Gavin D'souza
9442511b83 Merge branch 'develop' into staging 2021-09-13 18:49:31 +05:30
Francisco Roldán
58ef0ac430
Merge branch 'develop' into queues 2021-09-09 08:56:34 -03:00
gavin
aefdc3bb47
Merge pull request #1197 from gavindsouza/misc-fixes
fix: Misc fixes
2021-09-09 16:40:56 +05:30
Gavin D'souza
6fd3ad738b fix(command_cache): Return iterable as fallback 2021-09-09 16:05:42 +05:30
Gavin D'souza
b35af193d3 chore: Remove unnecessary returns, re-order cli resolution
Changes suggested by LGTM https://lgtm.com/projects/g/frappe/bench/rev/pr-560978725461013796d605b409ffc5c85c774829
2021-09-09 14:56:32 +05:30
Gavin D'souza
a015501699 fix: Return fallback list in cached_frappe_commands 2021-09-09 13:54:35 +05:30
Gavin D'souza
6160ff48ab style: Black 2021-09-09 13:54:19 +05:30
Gavin D'souza
552b935f6b fix: Always set return code via cli 2021-09-09 13:20:26 +05:30
Gavin D'souza
a94ea19bf4 fix: Hit command cache before fetching all commands 2021-09-09 13:19:44 +05:30
Francisco Roldan
e12f53d1a5 feat: added option to provide custom queues 2021-08-30 12:35:53 -03:00
gavin
d467cf54c1
Merge pull request #1007 from Thunderbottom/referrer-policy
fix: set referrer-policy header in nginx config
2021-08-30 13:01:30 +05:30
gavin
beb14c8681
Merge branch 'develop' into referrer-policy 2021-08-30 12:38:59 +05:30
Abhishek Balam
6137086e03
feat: Set default version for easy install to v13 (#1189)
* feat: set default version for easy install to v13

* fix: python version based version picking fixed and reverted changes to node version in installation script

* fix: revert test version

Co-authored-by: gavin <gavin18d@gmail.com>
2021-08-30 12:29:09 +05:30
semantic-release-bot
6697727e68 chore(release): Bumped to Version 5.5.0
# [5.5.0](https://github.com/frappe/bench/compare/v5.4.1...v5.5.0) (2021-07-29)

### Bug Fixes

* ssl nginx directive deprecation ([a514a0e](a514a0e97b))

### Features

* Redis ACL config is added to conf templates ([46e6622](46e66226c2))
v5.5.0
2021-07-29 09:21:50 +00:00
gavin
90e7cd4909
Merge pull request #1191 from frappe/staging
chore: Merge staging into v5.x
2021-07-29 14:51:00 +05:30
Gavin D'souza
b59919e410 Merge branch 'develop' into staging 2021-07-29 14:01:21 +05:30
gavin
06cfd76a6b
Merge pull request #1190 from leela/redis-config
feat: Redis ACL config is added to conf templates
2021-07-20 12:59:44 +05:30
leela
46e66226c2 feat: Redis ACL config is added to conf templates 2021-07-20 06:22:15 +05:30
gavin
5eb71ed024
docs: Update README info about easy install script
Bench playbooks haven't been updated with Frappe Version 13 requirements. And they are untested at this point. The only up to date methods of install are [Frappe Docker](https://github.com/frappe/frappe_docker) and [the installation guide in Frappe Docs](https://frappeframework.com/docs/user/en/installation).
2021-07-08 13:55:31 +05:30
gavin
db4627bb92
Merge pull request #1186 from rovertzxd/fix-ssl-nginx-directive-deprecation
fix: ssl nginx directive deprecation
2021-07-07 11:24:36 +05:30
Roberto Murguia
a514a0e97b fix: ssl nginx directive deprecation 2021-06-15 09:35:04 -05:00
semantic-release-bot
410505f0e9 chore(release): Bumped to Version 5.4.1
## [5.4.1](https://github.com/frappe/bench/compare/v5.4.0...v5.4.1) (2021-05-17)

### Bug Fixes

* Added warning for unshallow without --reset ([01abc56](01abc561e0))
* Handle command execution failures ([dcdb15d](dcdb15d471))
* Remove PY2 compatibility code ([54d48f6](54d48f61a3))
* Revert print compatibility import ([753e36d](753e36d433))
* Show step titles while running operations ([096c2cf](096c2cfe6b))
* Unshallow clone if update without --reset ([4cadf2c](4cadf2c719))

### Performance Improvements

* Faster bench remove-app ([ebc3ceb](ebc3cebd19))
v5.4.1
2021-05-17 06:13:50 +00:00
gavin
7c42731715
Merge pull request #1175 from frappe/staging
chore: Merge staging into v5.x
2021-05-17 11:42:59 +05:30
Gavin D'souza
973b8010be chore: Bumped to Version 5.4.0
To match with current version on v5.x branch
2021-05-13 15:45:43 +05:30
Gavin D'souza
593ac8109d Merge branch 'develop' of github.com:frappe/bench into staging 2021-05-13 15:40:34 +05:30
gavin
a7fec5c4f5
Merge pull request #1156 from gavindsouza/perf-remove-app
perf: Faster bench remove-app
2021-05-13 14:56:25 +05:30
Gavin D'souza
5e0d46db24 Merge branch 'develop' into perf-remove-app 2021-05-13 14:18:15 +05:30
gavin
656eeca343
Merge pull request #1170 from gavindsouza/f-strings
chore: Drop support for < Py3.6
2021-05-13 14:00:50 +05:30
Gavin D'souza
753e36d433 fix: Revert print compatibility import 2021-05-11 19:57:24 +05:30
Gavin D'souza
72e6795f50 chore: Drop Circle CI config 2021-05-11 19:25:10 +05:30
Gavin D'souza
54d48f61a3 fix: Remove PY2 compatibility code
* Set Python requires Python 3.6+ but < Py4
* Remove six from dependencies
* Use click.confirm instead of self implemented confirm code
* Fix imports for 3.6+ compatibility

References for updated imports:
* https://docs.python.org/3/library/configparser.html
* https://docs.python.org/3/library/urllib.request.html#legacy-interface
* https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlparse
* https://docs.python.org/3/library/importlib.html#importlib.reload
2021-05-11 12:01:32 +05:30
Gavin D'souza
5d563f23ab style: Use f-strings instead of old string formatting methods
These changes are valid only for Py3.6+ and will remove bench CLI
support for Python 3.5 and lesser.

* Converted to f-strings using flynt
* Manual conversion of failed cases
* Simplification of logic
2021-05-11 11:30:27 +05:30
Gavin D'souza
dcdb15d471 fix: Handle command execution failures 2021-05-10 19:10:06 +05:30
gavin
0c21718f7a
Merge branch 'develop' into perf-remove-app 2021-05-10 18:51:57 +05:30
gavin
ac4c0efa3b
Merge pull request #1169 from gavindsouza/bench-update-no-reset
fix: Bench update no reset
2021-05-10 18:51:39 +05:30
Gavin D'souza
01abc561e0 fix: Added warning for unshallow without --reset 2021-05-10 17:35:31 +05:30
Gavin D'souza
f46126ce2b chore: Remove deprecated option from config template 2021-05-10 14:51:52 +05:30
Gavin D'souza
096c2cfe6b fix: Show step titles while running operations 2021-05-10 14:51:14 +05:30
Gavin D'souza
4cadf2c719 fix: Unshallow clone if update without --reset
If an unshallow clone has to be updated, the only way to update it
without a reset will require an unshallow. This is because there may be
uncommitted or committed changes in any of the apps, although unfavoured
should be handled safely. The only way to update such repos is via the
user configured settings..or a ff only merge.
2021-05-10 14:45:46 +05:30
Gavin D'souza
ebc3cebd19 perf: Faster bench remove-app
Biggest bottleneck is in the validation stage which checks if the app is
installed on any existing sites on the bench. instead of triggering
multiple list-apps for each sites, do one for all.
2021-05-05 16:34:10 +05:30
gavin
70c9c17f63
docs(README): Update broken ref link 2021-04-27 16:52:49 +05:30
Gavin D'souza
7035366663 ci: Trigger branch checks 2021-04-27 15:48:28 +05:30
semantic-release-bot
059a88cd07 chore(release): Bumped to Version 5.4.0
# [5.4.0](https://github.com/frappe/bench/compare/v5.3.0...v5.4.0) (2021-04-27)

### Bug Fixes

* add declarative config support for bench ([186ba28](186ba280f1))
* change TEST_PYPI to PYPI ([4211f5d](4211f5d750))
* create bench folder in user directory ([5c5d2b5](5c5d2b57df))
* Don't break update if no sites exist on patching sites stage ([778fe6c](778fe6cb0b))
* fail2ban help message ([fec8921](fec8921214))
* Invoke pip via python ([b0ccb6e](b0ccb6efbe))
* nginx proxy buffer ([7f9bed4](7f9bed4c8e))
* only fetch current branch ([895c403](895c403278))
* only fetch what is necessary, simplify & improve grepability ([82173c1](82173c1d42))
* only get the specific branch for version check ([0ff8ddd](0ff8dddef9))
* Remove set-default-site from CLI ([ed3f2d2](ed3f2d28fb))
* Return repo_name if app_name doesn't exist ([aa1a1b9](aa1a1b9a71))
* serious bug capable of deleting apps path ([a1db48b](a1db48b57e))
* Update documentation for user directory ([294b399](294b399942))
* Upgrade pip first ([#1120](https://github.com/frappe/bench/issues/1120)) ([17ef5da](17ef5da5ce))
* use correct path for compiling py files ([b3a0757](b3a0757e38))

### Features

* Keep repos shallow if --reset is specified and shallow_clone is set ([66240e1](66240e1f8d))
* skip redis config during supervisor setup ([5cf1363](5cf1363481))

### Performance Improvements

* Remove ast from the import tree ([104efd3](104efd349b))
* Remove bench.config.common_site_config from the import tree ([c5d2fb9](c5d2fb9255))
* Remove bench.config.letsencrypt from the import tree ([cab2d44](cab2d44df5))
* Remove bench.config.nginx from the import tree ([36e48c7](36e48c7dd7))
* Remove crontab from the import tree ([e12717d](e12717d63a))
* Remove crontab from the import tree ([2a4377a](2a4377ac6f))
* Remove git from the import tree ([df773d4](df773d4f9f))
* Remove Jinja and PackageLoader from the import tree ([ad90d94](ad90d9485f))
* Remove multiprocessing from the import tree ([8527b10](8527b106c3))
* Remove multiprocessing from the import tree ([ad37665](ad37665e8b))
* Remove requests from the import tree ([cc92584](cc92584927))
* Remove semantic_version from the import tree ([2df0bf7](2df0bf726d))
* Remove shutil from the import tree ([07ecaa1](07ecaa1f77))
* Remove six.moves.reload_module from the import tree ([5d90346](5d90346660))
* Remove six.moves.urllib from the import tree ([6706b23](6706b230da))
* Remove six.moves.urllib from the import tree ([5525548](5525548ced))
* Remove siz.moves.configparser from the import tree ([6c0e1a3](6c0e1a359e))
v5.4.0
2021-04-27 10:03:43 +00:00