2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00
Commit Graph

1399 Commits

Author SHA1 Message Date
gavin
b0649870ee
fix: random failings from subprocesses and command formatting (#935)
* fix: random failings from subprocesses

    async executions of muliple processes leads to various errors.
    eg: get-app operation runs a "git clone" at the same time "pip
    install" is run. This causes failures as the folder either doesnt
    exist or isnt complete.

    Proposed solution to this is to execute blocking subprocesseses

* style: command logging format via exec_cmd
2020-03-02 19:32:25 +05:30
gavin
ec1343c0fa
fix: dont abort script if not overwriting scripts (#919)
* fix: dont abort script if not overwriting scripts

why: currently, running of `bench ` or `bench setup
production` creates nginx conf files and asks for confirmation before
overwriting them. in case user doesnt want to overwrite files,
`setup production` and `lets-encrypt` is exitted abrubtly and nginx isnt started again after

* fix: use click.confirm instead of six.moves.input

* fix: use click.confirm instead of six.moves.input

* chore: remove unused imports
2020-02-28 15:33:00 +05:30
gavin
ddcd2c11a1
chore: update GitPython (#938)
* Revert "chore: pin gitdb2 only for python < 3.4"

* chore: update GitPython and remove second level dependencies
2020-02-28 14:42:14 +05:30
gavin
495a038c45
fix(easy-install): compatibility for easy install on PY2 (#937)
* fix: compatibility for easy install on PY2

* test: remove python-distutils from travis

* chore: handle specific CalledProcessError for setuptools

Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
2020-02-27 21:19:20 +05:30
gavin
d701fe86a7
Merge pull request #929 from Thunderbottom/fix-easy_install
chore: fix easy_install
2020-02-27 16:10:18 +05:30
gavin
aef35c6957
Merge pull request #876 from Thunderbottom/get-app-overwrite
fix(get-app): handle existing directory and other formatting changes
2020-02-27 11:10:52 +05:30
Chinmay D. Pai
3bd83da49b
chore: remove redundant print messages
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-26 20:00:52 +05:30
gavin
2d98d35f1b
Merge pull request #926 from gavindsouza/bench-docs-help
docs: added bench usage docs
2020-02-25 12:53:28 +05:30
gavin
f5d3a53cee
Merge pull request #933 from Thunderbottom/pin-req
chore: pin gitdb2 only for python < 3.4
2020-02-25 12:35:00 +05:30
Chinmay D. Pai
e5b84be566
chore: pin gitdb2 only for python < 3.4
pip allows pinning requirement using environment markers[0]

[0]: https://www.python.org/dev/peps/pep-0508/#environment-markers

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-25 12:11:24 +05:30
gavin
354d23e787
Merge pull request #932 from gavindsouza/pin-dependencies
fix: pin dependencies of requirements
2020-02-25 12:03:55 +05:30
Chinmay D. Pai
206d5ed3ae
chore: solve merge conflicts
* renme build_asset_files tp skip_asset
* add overwrite flag
* move building assets to postprocessing

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-25 11:58:49 +05:30
Gavin D'souza
c660593a9a fix: pin dependencies of requirements 2020-02-25 11:57:28 +05:30
Chinmay D. Pai
0c0ed767f7
chore: add overwrite flag, repo_name format, and exit gracefully
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-25 11:45:03 +05:30
Gavin D'souza
5af3716560 docs: updated and re-link docs 2020-02-24 12:51:53 +05:30
gavin
92d2fbdc13
fix: setup cron job for renewing ssl certificate (#918)
* fix: setup cronjob for renewing ssl certificate

cronjob set for 1st of every month

* fix: cannonical PYPI package name updates

    refs:
    - https://pypi.org/project/python-crontab/
    - https://github.com/frappe/bench/pull/918#issuecomment-589961301
2020-02-24 12:09:24 +05:30
Chinmay D. Pai
bf47661f3e
chore: setup distutils using apt instead of pip
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-20 20:34:43 +05:30
Chinmay D. Pai
0a9effdfb4
chore: setup distutils inside travis
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-20 20:12:28 +05:30
Chinmay D. Pai
986015c13c
chore: substitute shutil.which with find_executable on py2
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-20 20:02:35 +05:30
Chinmay D. Pai
0b3feb1f7b
chore: add check for CI
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-20 19:55:50 +05:30
Chinmay D. Pai
d47e1ac330
chore: fix easy_install
import print from __future__ for python2 to use print's file param

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-20 19:46:40 +05:30
Gavin D'souza
9107581a56 docs: added bench usage docs 2020-02-19 15:33:10 +05:30
gavin
d58fc11b3d
Merge pull request #923 from gavindsouza/lets-encrypt-non-interactive
fix(lets-encrypt): run command non interactively if flag passed
2020-02-17 00:46:50 +05:30
Gavin D'souza
7ccc275792 fix(lets-encrypt): run command non interactively if flag passed 2020-02-11 14:02:47 +05:30
gavin
c8fa035e4c Merge pull request #920 from frappe/revert-907-pip-pin
Revert "fix: pip pinned to 19.3.1 after v20 breaking"
2020-02-10 14:57:17 +05:30
gavin
66dd5af087 Revert "fix: pip pinned to 19.3.1 after v20 breaking" 2020-02-10 14:56:55 +05:30
gavin
857868eb5c Merge pull request #914 from gavindsouza/migrate-env-fix
refactor: bench migrate-env command
2020-02-10 14:07:07 +05:30
Gavin D'souza
1ae9bfb568 Merge branch 'master' of github.com:frappe/bench into migrate-env-fix 2020-02-09 13:17:00 +05:30
Gavin D'souza
1259b089c8 refactor: change "no_backup" variable and cleanup comments 2020-02-09 13:14:06 +05:30
Wing Yung Chan
e3bfe3a82d
docs: fixes in easy_install.md (#917)
Fixed two minor typos
2020-02-08 03:07:13 +05:30
gavin
5a7580fcca
Merge pull request #915 from gavindsouza/bench-pip
feat: bench pip instead of using ./env/bin/pip
2020-02-07 14:30:46 +05:30
Gavin D'souza
f0596c5928 feat: bench pip *
Directly install/update/remove packages from your env using bench pip
commands. Pretty much just like using pip

To check help don't add the --help flag, use the -h flag instead, use the pip help command. For example, checking help for pip install can be done by

    bench pip help install
    bench pip install -h
2020-02-06 15:24:26 +05:30
Gavin D'souza
0c29bba659 refactor: bench migrate-env command
* moved from __init__ to utils and updated sequence of installing
applications in env
* chanaged import namespaces
2020-02-06 01:32:50 +05:30
gavin
50ef73933c
Merge pull request #912 from gavindsouza/exec-anywhere
feat: execute bench commands in any sub directories of frappe-bench
2020-02-05 11:48:11 +05:30
Gavin D'souza
92cd942fcf refactor: change_working_directory optimizations 2020-02-02 00:19:58 +05:30
Gavin D'souza
2257f86fee feat: execute bench/frappe commands from anywhere inside a bench
directory
2020-02-01 18:58:37 +05:30
gavin
e06d9a2cf5
Merge pull request #909 from gavindsouza/venv-check
fix: virtualenv check for installing requirements
2020-01-23 13:49:33 +05:30
Bernhard Sirlinger
40f7e09c0f fix: issue when ignore_exist is set and the path already exists 🐛 (#910)
See 7fb1484b7f (diff-237d6b07e1835fbd8e51e251f66b2ec0) where the logic was changes to exclude handling this edge case
2020-01-23 12:33:14 +05:30
gavin
be2dd1b31a
Merge pull request #911 from gavindsouza/perms-fix
fix: chown frappe_user home directory
2020-01-23 12:29:06 +05:30
Gavin D'souza
4474f463dc fix: chown frappe_user home directory 2020-01-22 18:05:02 +05:30
Gavin D'souza
3ea19e9533 chore: bench.utils format, imports sort, spaces 2020-01-22 15:30:06 +05:30
Gavin D'souza
63128a21bf fix: check if virtual env (using pip refs) 2020-01-22 15:19:38 +05:30
Gavin D'souza
b9bb9440d9 fix: update packages even if pip not in path 2020-01-22 12:54:58 +05:30
Gavin D'souza
3b06683ebf fix: checks for bench requirements to be installed without the --user
flag via pip

references: https://stackoverflow.com/questions/1871549/determine-if-python-is-running-inside-virtualenv
2020-01-22 12:05:27 +05:30
Chinmay Pai
654f1e9c7b
chore: fix install-app in readme (#908)
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-01-22 00:31:37 +05:30
gavin
d499ae48f4
Merge pull request #907 from gavindsouza/pip-pin
fix: pip pinned to 19.3.1 after v20 breaking
2020-01-21 17:51:25 +05:30
Gavin D'souza
7498c8e497 fix: pip pinned to 19.3.1 after v20 breaking
reference: https://github.com/pypa/pip/issues/7217
2020-01-21 17:49:18 +05:30
Chinmay Pai
0daa5c45ed
docs: add db_host and db_port options for new-site (#871) (#906)
* Update installation docs to show new options

* docs: fix indentation and make the command optional

Co-authored-by: Oshosanya Michael <michaeloshosanya@gmail.com>
2020-01-21 15:29:17 +05:30
Gavin D'souza
03c4d9610a chore: fixed validate branch on update 2020-01-21 14:27:00 +05:30
gavin
8d792190b4
Merge pull request #904 from barredterra/patch-1
fix: bump MariaDB version
2020-01-20 10:46:52 +05:30