Gavin D'souza
d5682897bd
Merge branch 'staging' into v5.x
2022-07-30 01:04:42 +05:30
Gavin D'souza
e195f4ccbe
Merge branch 'develop' into staging
2022-07-30 01:04:07 +05:30
Gavin D'souza
a0a8133032
build: Include for wheel target
2022-07-30 01:03:20 +05:30
Gavin D'souza
8736a2f3cf
docs: Update PY37 shield
2022-07-29 19:44:02 +05:30
semantic-release-bot
f86bc0f308
chore(release): Bumped to Version 5.13.0
...
# [5.13.0](https://github.com/frappe/bench/compare/v5.12.1...v5.13.0 ) (2022-07-29)
### Bug Fixes
* Add support for options on bench main group ([8a0b784
](8a0b78451b
))
* **config:** Fix fail2ban filter ([#1308 ](https://github.com/frappe/bench/issues/1308 )) ([94a25d3
](94a25d3da7
))
* get-app on existing apps ([e03f597
](e03f597ac6
))
* **nginx:** set `proxy_http_version` to `1.1` ([7da62f9
](7da62f96f2
))
* use specified python for venv ([df84c27
](df84c2772d
))
### Features
* Add pre-commit checks ([b1b8d70
](b1b8d70055
))
2022-07-29 13:58:52 +00:00
Gavin D'souza
67aa20e95a
Merge branch 'staging' into v5.x
2022-07-29 19:27:20 +05:30
Gavin D'souza
fe045d1428
Merge branch 'develop' into staging
2022-07-29 19:25:41 +05:30
Gavin D'souza
060e6b7cea
ci: Use hatch to build package
2022-07-29 19:23:39 +05:30
gavin
af05b4945a
Merge pull request #1341 from frappe/gavindsouza-readme-dark
...
chore: Add logo for Dark mode
2022-07-29 00:18:21 +05:30
gavin
f68ff595bf
chore: Add logo for Dark mode
2022-07-29 00:11:34 +05:30
gavin
c71ba2b27c
Merge pull request #1339 from alyf-de/python-venv
...
fix: use specified python for venv
2022-07-28 21:54:20 +05:30
barredterra
df84c2772d
fix: use specified python for venv
2022-07-28 14:19:09 +02:00
gavin
60569ba897
Merge pull request #1337 from gavindsouza/ci-fixes-2022-001
...
build: pyproject.toml > setup.py + requirements.txt
2022-07-28 14:18:03 +05:30
Gavin D'souza
203f41e405
test: Skip deps resolution for non develop branches
2022-07-28 13:35:04 +05:30
Gavin D'souza
22294fce5b
ci: Add PY3.10 to runner matrix
...
Reduce existing runners based on lesser variance to breakages
2022-07-28 11:50:10 +05:30
Gavin D'souza
5515b0f4ca
ci: Update pip, wheel, setuptools explicitly in install
2022-07-28 11:37:16 +05:30
Gavin D'souza
38fa45607d
build: Bump python-crontab dependency
...
Package v2.4.2 leads to a build error on PY 3.7, 3.8
ref: https://app.travis-ci.com/github/frappe/bench/jobs/577932789
2022-07-28 11:24:29 +05:30
Gavin D'souza
86c3c90fd9
build: Retire setup.py + reqs.txt to use pyproject.toml
2022-07-27 18:40:17 +05:30
Gavin D'souza
1badfa8da4
ci: Update conditions for FRAPPE_BRANCH
2022-07-27 16:54:46 +05:30
gavin
e66fe9ca02
Merge pull request #1333 from lhjt/patch-1
...
fix(nginx): set `proxy_http_version` to `1.1`
2022-07-27 15:34:37 +05:30
Orsiris de Jong
94a25d3da7
fix(config): Fix fail2ban filter ( #1308 )
...
* Add missing nginx-proxy filter
* Add all nginx log files to fail2ban filter, regardless of frappe site
* Adds per site nginx logs in /var/log
2022-07-27 14:58:53 +05:30
gavin
1e0054bc14
Merge pull request #1335 from gavindsouza/pre-commit-files
...
feat!: Add auto-formatting & linting via pre-commit
2022-07-27 14:45:58 +05:30
Gavin D'souza
af46fedc28
refactor(minor): Use more readable alternatives
2022-07-27 14:39:32 +05:30
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
b1b8d70055
feat: Add pre-commit checks
...
* Base pre-commit checks for trailing whitespces, valid files, etc
* pyupgrade with PY37+ syntax
* Aditya's black fork for codebases with tabs
* Flake8 with Frappe's config
2022-07-27 14:38:17 +05:30
gavin
a481934d53
Merge pull request #1334 from gavindsouza/better-cli-resolution
...
refactor(cli): Commands Resolution
2022-07-27 14:37:16 +05:30
gavin
41b9deb66a
Merge pull request #1336 from gavindsouza/reinstall-app-fix
...
fix: get-app on existing apps
2022-07-27 14:34:45 +05:30
Gavin D'souza
e03f597ac6
fix: get-app on existing apps
...
get-app to replace existing folder would fail due to bad url generation.
Changes
* Archive old repo instead of overwritting
* Resetting flags in App instance
2022-07-27 14:24:10 +05:30
Gavin D'souza
8a0b78451b
fix: Add support for options on bench main group
...
Options like --use-feature, --version are tested and support maintained
by the changes defined in this commit
2022-07-27 14:23:16 +05:30
Gavin D'souza
a6f196440a
refactor(cli): Commands Resolution
...
The implementations so far were hacks that worked for the most used
commands but broken down when challenged or expected to maintain
documented usages [eg: custom app commands].
The current implementation consists of a two step approach:
1. figure out command name that user is trying to execute
2. pass the directive to the app (bench, frappe or other) that consists of the cmd
---
For tackling #1 , get_cmd_from_sysargv contains exhaustive rules that
cover all (that i know and ive come across) combinations of valid
frappe commands.
For problem #2 , a simple check in click's Group object does the trick.
Tested with possible known commands with combinations of context flags
and params, with bench, frappe & external app's commands
2022-07-27 11:08:19 +05:30
Jared L
7da62f96f2
fix(nginx): set proxy_http_version
to 1.1
...
This sets the `proxy_http_version` to `1.1`.
The reason this change should be implemented is that when this is deployed in a Kubernetes environment with Istio, the proxy request fails with HTTP error 426 as the HTTP version is too low for envoy to handle. Setting it to `1.1` will solve the issue.
2022-07-25 10:38:47 +10:00
semantic-release-bot
aae3ffc34e
chore(release): Bumped to Version 5.12.1
...
## [5.12.1](https://github.com/frappe/bench/compare/v5.12.0...v5.12.1 ) (2022-06-29)
### Bug Fixes
* Use == to define had pinned requirement ([beac865
](beac865153
))
2022-06-29 14:03:37 +00:00
Gavin D'souza
1ff8b05fd8
Merge branch 'staging' into v5.x
2022-06-29 19:32:23 +05:30
Gavin D'souza
db1dc6225f
Merge branch 'develop' into staging
2022-06-29 19:31:54 +05:30
Gavin D'souza
beac865153
fix: Use == to define had pinned requirement
...
This allows one to add a dependency like `PyPika = '5.1.0'` directly
instead of `PyPika = '==5.1.0'`
2022-06-29 19:29:31 +05:30
semantic-release-bot
b2a48f0dba
chore(release): Bumped to Version 5.12.0
...
# [5.12.0](https://github.com/frappe/bench/compare/v5.11.0...v5.12.0 ) (2022-06-29)
### Bug Fixes
* (re)Install every Frappe app even if not installed to env ([ffae670
](ffae670be7
))
* fixed update_app_states call ([#1326 ](https://github.com/frappe/bench/issues/1326 )) ([45267fc
](45267fc897
))
### Features
* Setup dev-dependencies defined via pyproject ([75957a5
](75957a56ee
))
2022-06-29 13:47:53 +00:00
Gavin D'souza
ffc434dfcc
Merge branch 'staging' into v5.x
2022-06-29 19:16:46 +05:30
Gavin D'souza
777ac114cd
Merge branch 'develop' into staging
2022-06-29 19:16:11 +05:30
Aradhya Tripathi
45267fc897
fix: fixed update_app_states call ( #1326 )
2022-06-23 00:10:41 +05:30
gavin
28549ff139
Merge pull request #1323 from gavindsouza/dev-deps-toml
...
feat: Dev Dependencies via pyproject.toml
2022-06-17 18:02:22 +05:30
Gavin D'souza
75957a56ee
feat: Setup dev-dependencies defined via pyproject
...
Since support for pyproject.toml exists, Frappe has gotten rid of
requirements.txt file. However, dev-requirements.txt file still existed
in Frappe & other apps. With this, we can get rid of the separate
dev-reqs file as well and replace it by defining the deps in pyproject
under [tool.bench.dev-dependencies]
Example:
For Frappe, this transition will look like moving the contents of
dev-requirements.txt as follows:
```
\# dev-requirements.txt
coverage==5.5
Faker~=13.12.1
pyngrok~=5.0.5
unittest-xml-reporting~=3.0.4
```
```
\# pyproject.toml
[tool.bench.dev-dependencies]
coverage = "==5.5"
Faker = "~=13.12.1"
pyngrok = "~=5.0.5"
unittest-xml-reporting = "~=3.0.4"
```
Note: If dev-dependencies are defined in pyproject.toml, and a
dev-dependencies.txt file exists - the txt file will be ignored.
2022-06-16 18:16:57 +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
semantic-release-bot
7ec320fa40
chore(release): Bumped to Version 5.11.0
...
# [5.11.0](https://github.com/frappe/bench/compare/v5.10.1...v5.11.0 ) (2022-06-14)
### Features
* Support Frappe app distributions with pyproject.toml ([800394c
](800394cdda
))
2022-06-14 12:21:06 +00:00
Gavin D'souza
c968c10cde
Merge branch 'staging' into v5.x
2022-06-14 17:50:08 +05:30
Gavin D'souza
3629262543
Merge branch 'develop' into staging
2022-06-14 17:49:01 +05:30
semantic-release-bot
85e3a363ee
chore(release): Bumped to Version 5.10.1
...
## [5.10.1](https://github.com/frappe/bench/compare/v5.10.0...v5.10.1 ) (2022-06-14)
### Bug Fixes
* Bump Nodejs v12 => v14 ([cd0fccf
](cd0fccfdb4
))
2022-06-14 12:17:33 +00:00
Gavin D'souza
2a3cd9dcd2
Merge branch 'staging' into v5.x
2022-06-14 17:46:34 +05:30
Gavin D'souza
d8e6fbe34b
Merge branch 'develop' into staging
2022-06-14 17:46:22 +05:30
gavin
39553b343b
Merge pull request #1322 from gavindsouza/pyproject-toml
...
feat: Support Frappe app distributions with pyproject.toml
2022-06-14 17:44:39 +05:30
Gavin D'souza
800394cdda
feat: Support Frappe app distributions with pyproject.toml
...
Patches get_app_name which reads app name from pyproject's project.name
attribute, setup.cfg's metadata.name or setup.py's name variable.
2022-06-14 16:01:42 +05:30