From 9de1250e88cc93a5070510c07e0915738dce663f Mon Sep 17 00:00:00 2001 From: Alejandro Mendez Date: Wed, 15 May 2024 17:42:34 +0200 Subject: [PATCH] Few tweaks --- CHANGELOG.rst | 3 ++- Makefile | 13 +++++++++++++ setup.py | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ce69a44..0c02a3e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,7 +1,7 @@ History ======= -0.5.0 (Unreleased) +0.5.0 (15-05-2024) ------------------ * Added styles support @@ -9,6 +9,7 @@ History * Added from_string * Added iterate over a slice of captions * Refactor of the library +* Parser is no longer strict and ignores malformed blocks * Improved BOM support allowing to keep the BOM or remove it * Deprecated read_buffer in favor of from_buffer * Removed support for old versions of Python: 3.4, 3.5 and 3.6 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..569d732 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +build: + rm -rf dist + mkdir dist + python setup.py sdist bdist_wheel + twine check dist/* + +release_test: build + twine -r testpypi upload dist/* + +release: build + twine upload dist/* + +.PHONY: build release_test release \ No newline at end of file diff --git a/setup.py b/setup.py index 851f8a4..b6579ef 100644 --- a/setup.py +++ b/setup.py @@ -18,6 +18,7 @@ version=version, description='WebVTT reader, writer and segmenter', long_description=pathlib.Path('README.rst').read_text(), + long_description_content_type='text/x-rst', author=author, author_email=author_email, url='https://github.com/glut23/webvtt-py',