Skip to content

Commit 81bbdaf

Browse files
authored
Merge pull request #47 from cloudblue/LITE-29500-bump_deps
LITE-29500: Bump dependencies
2 parents 1e97498 + 7c7753a commit 81bbdaf

File tree

7 files changed

+1089
-1022
lines changed

7 files changed

+1089
-1022
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.8", "3.9", "3.10", "3.11"]
16+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1717
steps:
1818
- uses: actions/checkout@v3
1919
with:

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Connect Reports Core
22

3-
![pyversions](https://img.shields.io/pypi/pyversions/connect-reports-core.svg) [![PyPi Status](https://img.shields.io/pypi/v/connect-reports-core.svg)](https://pypi.org/project/connect-reports-core/) [![Build Connect Reports Core](https://github.com/cloudblue/connect-reports-core/actions/workflows/build.yml/badge.svg)](https://github.com/cloudblue/connect-reports-core/actions/workflows/build.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=connect-reports-core&metric=alert_status)](https://sonarcloud.io/dashboard?id=connect-reports-core) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=connect-reports-core&metric=coverage)](https://sonarcloud.io/dashboard?id=connect-reports-core) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=connect-reports-core&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=connect-reports-core)
3+
![pyversions](https://img.shields.io/pypi/pyversions/connect-reports-core.svg) [![PyPi Status](https://img.shields.io/pypi/v/connect-reports-core.svg)](https://pypi.org/project/connect-reports-core/) [![Build Connect Reports Core](https://github.com/cloudblue/connect-reports-core/actions/workflows/build.yml/badge.svg)](https://github.com/cloudblue/connect-reports-core/actions/workflows/build.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cloudblue_connect-reports-core&metric=alert_status)](https://sonarcloud.io/dashboard?id=cloudblue_connect-reports-core) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=cloudblue_connect-reports-core&metric=coverage)](https://sonarcloud.io/dashboard?id=cloudblue_connect-reports-core) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=cloudblue_connect-reports-core&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=cloudblue_connect-reports-core)
44

55
## Introduction
66

@@ -10,15 +10,17 @@ This library is reponsible for validation of reports definition, choosing of ren
1010

1111
## Install
1212

13-
`Connect Reports Core` requires python 3.8 or later and has the following dependencies:
14-
15-
* openpyxl>=2.5.14
16-
* WeasyPrint>=53.4
17-
* Jinja2>=2.11.3
18-
* jsonschema<=3.2.0
19-
* pytz>=2021.1
20-
* lxml>=4.7.1
21-
13+
`Connect Reports Core` requires python 3.9 or later and has the following dependencies:
14+
15+
* openpyxl >=2.5.14
16+
* WeasyPrint >=59,<64
17+
* Jinja2 >=2,<4
18+
* jsonschema >=3,<5
19+
* pytz *
20+
* lxml >=4.9
21+
* orjson >=3.5.2,<4
22+
* plotly >=5.9.0,<6
23+
* kaleido >=0.4,<1
2224
`Connect Reports Core` can be installed from [pypi.org](https://pypi.org/project/connect-reports-core/) using pip:
2325

2426
```

connect/reports/renderers/pdf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ def generate_report(self, data, output_file):
4848
template_dir=os.path.dirname(self.template),
4949
cwd=self.current_working_directory,
5050
)
51-
kwargs = {}
51+
options = {'uncompressed_pdf': True}
5252
css_file = self.args.get('css_file')
5353
if css_file:
5454
css = CSS(filename=os.path.join(self.root_dir, css_file), url_fetcher=fetcher)
55-
kwargs['stylesheets'] = [css]
55+
options.update({'stylesheets': [css]})
5656
html = HTML(filename=rendered_file, url_fetcher=fetcher)
57-
html.write_pdf(output_file, **kwargs)
57+
html.write_pdf(output_file, **options)
5858
return output_file
5959

6060
async def generate_report_async(self, data, output_file):
@@ -71,13 +71,13 @@ async def generate_report_async(self, data, output_file):
7171
)
7272

7373
def _generate():
74-
kwargs = {}
74+
options = {'uncompressed_pdf': True}
7575
css_file = self.args.get('css_file')
7676
if css_file:
7777
css = CSS(filename=os.path.join(self.root_dir, css_file), url_fetcher=fetcher)
78-
kwargs['stylesheets'] = [css]
78+
options.update({'stylesheets': [css]})
7979
html = HTML(filename=rendered_file, url_fetcher=fetcher)
80-
html.write_pdf(output_file, **kwargs)
80+
html.write_pdf(output_file, **options)
8181
await self._to_thread(_generate)
8282
return output_file
8383

0 commit comments

Comments
 (0)