Skip to content

Commit a768102

Browse files
committed
chore: Python release 0.2.0
1 parent f8845d9 commit a768102

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

python/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [Unreleased]
44

5+
## [0.2.0] - 2020-06-25
6+
57
### Added
68

79
- Loading external stylesheets. [#8](https://github.com/Stranger6667/css-inline/issues/8)
@@ -20,4 +22,5 @@
2022

2123
- Initial public release
2224

23-
[Unreleased]: https://github.com/Stranger6667/css-inline/compare/python-v0.1.0...HEAD
25+
[Unreleased]: https://github.com/Stranger6667/css-inline/compare/python-v0.2.0...HEAD
26+
[0.2.0]: https://github.com/Stranger6667/css-inline/compare/python-v0.1.0...python-v0.2.0

python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "css-inline-python"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
authors = ["Dmitry Dygalo <[email protected]>"]
55
edition = "2018"
66

python/README.rst

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,10 @@ To inline CSS in a HTML document:
3434
HTML = """<html>
3535
<head>
3636
<title>Test</title>
37-
<style>
38-
h1, h2 { color:blue; }
39-
strong { text-decoration:none }
40-
p { font-size:2px }
41-
p.footer { font-size: 1px}
42-
</style>
37+
<style>h1 { color:blue; }</style>
4338
</head>
4439
<body>
4540
<h1>Big Text</h1>
46-
<p>
47-
<strong>Solid</strong>
48-
</p>
49-
<p class="footer">Foot notes</p>
5041
</body>
5142
</html>"""
5243
@@ -77,18 +68,18 @@ library has good performance characteristics. In comparison with other Python pr
7768

7869
For inlining CSS in the html document from the ``Usage`` section above we have the following breakdown in our benchmarks:
7970

80-
- ``css_inline 0.1.0`` - 24.82 us
81-
- ``premailer 3.7.0`` - 356.59 us (**x14.37**)
82-
- ``inlinestyler 0.2.4`` - 2.62 ms (**x105.82**)
83-
- ``pynliner 0.8.0`` - 3.03 ms (**x122.44**)
71+
- ``css_inline 0.2.0`` - 24.47 us
72+
- ``premailer 3.7.0`` - 345.47 us (**x14.11**)
73+
- ``inlinestyler 0.2.4`` - 2.47 ms (**x101.03**)
74+
- ``pynliner 0.8.0`` - 2.82 ms (**x115.53**)
8475

8576
You can take a look at the benchmarks' code at ``benches/bench.py`` file.
8677
The results above were measured with ``rustc 1.46``, ``Python 3.8`` on i8700K, and 32GB RAM.
8778

8879
Limitations
8980
-----------
9081

91-
Currently (as of ``0.1.0``) there are the following notable limitations:
82+
Currently (as of ``0.2.0``) there are the following notable limitations:
9283

9384
- Inlined CSS is not minimized (`#12 <https://github.com/Stranger6667/css-inline/issues/12>`_)
9485
- `class` and `id` attributes are not removed (`#13 <https://github.com/Stranger6667/css-inline/issues/13>`_)

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
def call_setup():
2121
setup(
2222
name="css_inline",
23-
version="0.1.0",
23+
version="0.2.0",
2424
description="Fast CSS inlining written in Rust",
2525
long_description=open("README.rst", encoding="utf-8").read(),
2626
long_description_content_type="text/x-rst",

0 commit comments

Comments
 (0)