Commit graph

24 commits

Author SHA1 Message Date
Ankush Menat
032df946be
test: bg jobs test cleanup (#18767)
* test: fix flaky RQ job tests

Sometimes stop_job doesn't succeed and causes tests to timeout. Reduced
sleep time to avoid this in tests. We are still testing all the
important features - monitoring.

* build(deps): Bump RQ to latest version

Minor bugfixes that affect us

ref: https://github.com/rq/rq/releases

* test: sanity tests for scheduled job types

* test(test_runner): dont set bench_id globally

* refactor: stop_job shouldn't throw error

The intention of use here is to stop stuck jobs or long running jobs, if
for some reason they were stopped by the time command gets executed,
there's no need to throw error.
2022-11-05 14:08:35 +05:30
Ankush Menat
0ed7600604
build: py3.11 support (#18550)
* chore: bump RestrictedPython

* ci: use py3.11 on development version

* fix: py311 compat changes

* chore: bump to final versions
2022-11-03 20:49:05 +05:30
Sagar Vora
5e679bf539
chore: bump cryptography to 38.0.3 (#18730) 2022-11-03 01:24:55 +05:30
Sagar Vora
623633f35e
chore: bump Pillow to 9.3.0 (#18683) 2022-10-31 13:24:59 +05:30
Ankush Menat
8222a60546
chore: bump pillow (#18496)
security fixes: https://pillow.readthedocs.io/en/stable/releasenotes/9.2.0.html
2022-10-23 15:56:23 +05:30
Ankush Menat
38686d44fb
build(deps): bump restricted python (#18435)
has better support for 3.10

https://github.com/zopefoundation/RestrictedPython/pull/215/files
2022-10-17 20:16:07 +05:30
Ankush Menat
4863ba154e
build(deps): bump oauthlib (#18373)
CVE-2022-36087 - https://github.com/advisories/GHSA-3pgj-pg6c-r5p7
2022-10-11 18:08:12 +05:30
Ankush Menat
c3b547f897
refactor!: scheduler without external libraries (#18331) 2022-10-10 13:09:34 +05:30
Ankush Menat
7f1655fe46
build(deps): drop pyOpenSSL dependency (#18162)
- Not used anymore
- Official documentation suggests stopping use of
pyopenssl: https://github.com/pyca/pyopenssl
2022-09-17 12:15:26 +05:30
Ankush Menat
168fcf0975 build(deps): bump redis to latest version 2022-08-31 17:04:31 +05:30
Ankush Menat
7e34da6bec build(deps): bump werkzeug
Werkzeug has faster router now
2022-08-26 10:23:09 +05:30
Ankush Menat
17d327719e build(deps): drop unused dependencies
- googlemaps
- google-auth-httplib2
- urllib3
- pypng
- pyasn1
- gitdb
2022-08-26 10:23:09 +05:30
Ankush Menat
b30a78aa40
perf: install hiredis for faster response parsing (#17893) 2022-08-22 11:39:18 +05:30
Ankush Menat
821a4df192 chore(deps): bump boto dependency 2022-08-17 20:18:14 +05:30
phot0n
a02bd94d16 chore: remove payment gateway libraries 2022-07-26 23:17:04 +05:30
gavin
7eb7ec2663
Merge branch 'develop' into cleanup 2022-07-22 15:10:34 +05:30
chillaranand
d7bb903212 refactor: Removed parse package 2022-07-18 09:43:03 +05:30
Ankush Menat
55fb8acafa
perf(DX): add watchdog as developer dependency
Werkzeug reloader is right now using an inefficient `stat` based reloader which is horrible on large codebases with low-powered devices. 

Difference: 

- `stat` based reloader basically checks each and every file if they have changed or not. 
- watchdog subscribes to platform specific change events on kernel (like kqueue, fsevents or inotify )
2022-07-17 20:07:05 +05:30
Suraj Shetty
d4166dbe20 refactor: Replace html2text with markdownify 2022-07-06 08:23:14 +05:30
Gavin D'souza
404d5a3cd7 build!: Bump minimum Python version to 3.10
Given how widespread PY310's usage has become, and how we're just a
few months away from PY311 major release. This is a slightly late
bumping but necessary to ensure smoother updates & maintenance for
Frappe, ERPNext & other apps in the coming years. Almost all people
who participated in the pool from the community as well as Frappe team
voted (via active telegram groups) PY310 as their preferred minimum
requirement for v14.
2022-06-30 13:11:26 +05:30
gavin
abfbe3daa4
build: Use toml defined dev dependencies over txt file (#17356)
* build: Use toml defined dev dependencies over txt file

* chore: Remove redundant ==

* ref: https://github.com/frappe/bench/releases/tag/v5.12.1
* Linter's style updates

* chore(deps): Bump coverage from 5.5 to ~=6.4.1
2022-06-30 12:21:28 +05:30
Gavin D'souza
71531bd290 chore(deps): Bump PyJWT from 2.0.1 to 2.4.0
Consists of security & bug fixes, and seemingly no breaking changes

Ref: https://pyjwt.readthedocs.io/en/stable/changelog.html
2022-06-22 15:02:18 +05:30
Gavin D'souza
9f941e9312 build: Declarative builds via pyproject.toml
There was an attempt to switch to declarative setup, which was to use
setup.cfg. However, we've made more progress in the "world of packaging"
since. Also, given we're using a pyproject file already to govern
certain aspects of our project maintenance, it's probably a good time to
bring these things together. bye-bye to clutter and confusion in
maintaining multiple files and formats.

We've used setuptools to package frappe for the longest time. Maybe
since the first editable installation. Howver setuptools doesn't support
PEP 660 yet which supports editable installs via pyproject file.

So why now? Primarily because I wanted to start tracking system
dependencies for Frappe. Doing so through pyproject file made the most
sense. This change seemed to be the obvious pre-requisite for the
upcoming changes to our packaging systems.

Sys deps tracking: https://github.com/frappe/frappe/issues/13811
Flit docs: https://flit.pypa.io/en/latest/pyproject_toml.html
Previous attempt: https://github.com/frappe/frappe/pull/10773
Which build tool: https://stackoverflow.com/a/69711730/10309266
PEP 660: https://peps.python.org/pep-0660/
2022-06-14 13:29:36 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30