- Update to version 4.0.3

* Update supported Python versions to 3.8 - 3.12
    ("#83":https://github.com/textile/python-textile/issues/83)
  * Replace html5lib with nh3 for html sanitization
  * General code cleanup
  * Bugfixes:
    ** Wrong HTML output when "bc.." is the very last in the document
       ("#81":https://github.com/textile/python-textile/issues/81)
  * Other:
    ** Use github actions instead of travis for automated testing
- Limit Python files matched in %files section
- Switch package to modern Python Stack on SLE-15
  * Use Python 3.11 on SLE-15 by default
  * Drop support for older Python versions

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textile?expand=0&rev=31
This commit is contained in:
2024-10-11 12:10:14 +00:00
committed by Git OBS Bridge
commit fee999299c
6 changed files with 286 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

179
python-textile.changes Normal file
View File

@@ -0,0 +1,179 @@
-------------------------------------------------------------------
Fri Oct 11 11:31:47 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 4.0.3
* Update supported Python versions to 3.8 - 3.12
("#83":https://github.com/textile/python-textile/issues/83)
* Replace html5lib with nh3 for html sanitization
* General code cleanup
* Bugfixes:
** Wrong HTML output when "bc.." is the very last in the document
("#81":https://github.com/textile/python-textile/issues/81)
* Other:
** Use github actions instead of travis for automated testing
- Limit Python files matched in %files section
- Switch package to modern Python Stack on SLE-15
* Use Python 3.11 on SLE-15 by default
* Drop support for older Python versions
-------------------------------------------------------------------
Sat Nov 27 10:13:30 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- - update to version 4.0.2:
- Bugfixes:
- Support non-http schemas in url refs ("#75":https://github.com/textile/python-textile/pull/75)
- pytest-runner is deprecated ("#77":https://github.com/textile/python-textile/issues/77)
*** other changes related to CI infrastructure
-------------------------------------------------------------------
Mon May 18 13:23:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Do not pull pytest-cov and pytest-runner nedlessly
- Fix the %fdupes call
-------------------------------------------------------------------
Mon May 18 09:12:28 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
- install license
-------------------------------------------------------------------
Sat Feb 1 15:14:57 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 4.0.1:
- Bugfixes:
- SyntaxWarnings with Python 3.8 i("#71":https://github.com/textile/python-textile/issues/71)
- testsuite: internal error with coverage 5.0.X ("#72":https://github.com/textile/python-textile/issues/72)
- DeprecationWarnings about invalid escape sequences ("#73":https://github.com/textile/python-textile/issues/73)
-------------------------------------------------------------------
Sat Jan 18 10:49:22 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- drop python 2, not supported anymore upstream
- update to version 4.0.0:
- Drop support for Python 2, hence the version bump. Update list of PY3K versions to currently-supported versions. If you need to use textile on Python 2.7 or Python 3.3 or 3.4, please use textile Version 3.0.4.
- For use in PyPy environments, textile used to work well with the regex package. Lately, it's running into trouble. Please uninstall regex if this is the case for you.
-------------------------------------------------------------------
Sun Jun 9 06:45:28 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 3.0.4:
- BUGFIX: Restricted mode strips out CSS attributes again.
- Update travis to more current versions and test against current Pillow version.
-------------------------------------------------------------------
Mon Apr 23 07:29:51 UTC 2018 - sebix+novell.com@sebix.at
- update to version 3.0.3:
* BUGFIX: Improve handling code block following extended p block (#63)
-------------------------------------------------------------------
Thu Apr 12 19:09:52 UTC 2018 - sebix+novell.com@sebix.at
- update to version 3.0.2:
* Fix for multiple multi-line paragraphs. (#62)
- update to version 3.0.1:
* Fix improper handling of extended code blocks. (#61)
-------------------------------------------------------------------
Sat Nov 18 21:08:44 UTC 2017 - sebix+novell.com@sebix.at
- change source url back to fixed pypi url
-------------------------------------------------------------------
Thu Nov 16 21:55:29 UTC 2017 - sebix+novell.com@sebix.at
- update to version 3.0.0:
* Update to the current version of html5lib
* Bugfixes:
* Fix handling of HTML entities in extended pre blocks. (#55)
* Empty definitions in definition lists raised an exception (#56)
* Fix handling of unicode in img attributes (#58)
-------------------------------------------------------------------
Sun Sep 17 14:05:59 UTC 2017 - sebix+novell.com@sebix.at
- fix dependencies
-------------------------------------------------------------------
Wed Aug 16 19:35:04 UTC 2017 - sebix+novell.com@sebix.at
- upgrade to 2.3.16
* Bugfixes:
* Fix processing of extended code blocks ("#50":https://github.com/textile/python-textile/issues/50)
* Don't break when links fail to include "http:" ("#51":https://github.com/textile/python-textile/issues/51)
* Better handling of poorly-formatted tables ("#52":https://github.com/textile/python-textile/issues/52)
-------------------------------------------------------------------
Fri Jul 21 08:20:36 UTC 2017 - sebix+novell.com@sebix.at
- upgrade to version 2.3.15
* Bugfix: Don't break on unicode characters in the fragment of a url. (#49)
- upgrade to version 2.3.14
* Bugfix: Fix textile on Python 2.6 (#48)
-------------------------------------------------------------------
Thu Jul 20 09:54:44 UTC 2017 - sebix+novell.com@sebix.at
- upgrade to version 2.3.13
* Remove extraneous arguments from textile method. These were originally added long ago to work with django, but markup languages are long gone from django.
* Bugfix: Don't mangle percent-encoded URLs so much. ("#45":https://github.com/textile/python-textile/issues/45)
* Bugfix: More fixes for poorly-formatted lists. ("#46":https://github.com/textile/python-textile/issues/46)
* Bugfix: Improve handling of whitespace in pre-formatted blocks. This now matches php-textile's handling of pre blocks much more closely. ("#47":https://github.com/textile/python-textile/issues/47)
-------------------------------------------------------------------
Tue Jun 6 18:30:32 UTC 2017 - sebix+novell.com@sebix.at
- upgrade to cersion 2.3.12
upstream changelog for 2.3.12
* Bugfix: Don't die on pre blocks with unicode characters. ("#43":https://github.com/textile/python-textile/issues/43)
* Bugfix: Fix regressions introduced into the code between 2.2.2 and 2.3.11. (Special thanks to "@adam-iris":https://github.com/adam-iris for providing pull request "#44":https://github.com/textile/python-textile/pull/44)
* Bugfix: Don't just die when processing poorly-formatted textile lists. ("#37":https://github.com/textile/python-textile/issues/37)
* Add Python 3.6 to testing.
* Add a "print the version string and exit" argument to the cli tool: @pytextile -v@
upstream changelog for 2.3.11:
* Bugfix: Don't strip leading dot from image URIs ("#42":https://github.com/textile/python-textile/issues/42)
upstream changelog for 2.3.10:
* Packaging: cleanup in MANIFEST.IN leads to better linux packaging, and smaller wheel size.
-------------------------------------------------------------------
Sun Apr 9 08:00:33 UTC 2017 - sebix+novell.com@sebix.at
- upgrade to 2.3.9
- convert specfile to singlespec
- upstream changes:
- Version 2.3.9
* Packaging: remove extraneous files from the source distribution upload.
* Remove a lingering file from a feature branch for overhauling list handling. This brings coverage back up to 100%.
- Version 2.3.8
* Bugfix: Fix process of string containing only whitespaces ("#40":https://github.com/textile/python-textile/issues/40)
* Bugfix: Fix process of formatted text after lists ("#37":https://github.com/textile/python-textile/issues/37)
* Test: Use sys.executable instead of 'python' to test the CLI ("#38":https://github.com/textile/python-textile/issues/38)
- Version 2.3.7
* Bugfix: Don't assume pytest is available to be imported in setup.py ("#39":https://github.com/textile/python-textile/issues/39)
- Version 2.3.6
* Packaging: @tests@ directory is correctly included in source-tarball. ("#33":https://github.com/textile/python-textile/issues/33)
- Version 2.3.5
* Bugfix: Correctly handle unicode text in url query-strings. ("#36":https://github.com/textile/python-textile/issues/36)
- Version 2.3.4
* Bugfix: fix an issue with extended block code
* Remove misplaced shebang on non-callable files.
* Packaging: Add test-command to setup.py directly.
* Packaging: Included the tests/ directory for source-tarballs, useful for packaging checks. ("#33":https://github.com/textile/python-textile/issues/33)
* Add a cli tool @pytextile@ which takes textile input and prints html output. See @pytextile -h@ for details.
-------------------------------------------------------------------
Fri Aug 19 22:00:31 UTC 2016 - sebix+novell.com@sebix.at
- update to upstream version 2.3.3
-------------------------------------------------------------------
Thu Oct 24 11:15:52 UTC 2013 - speilicke@suse.com
- Require python-setuptools instead of distribute (upstreams merged)
-------------------------------------------------------------------
Fri Sep 23 10:33:59 UTC 2011 - saschpe@suse.de
- Initial version

77
python-textile.spec Normal file
View File

@@ -0,0 +1,77 @@
#
# spec file for package python-textile
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-textile
Version: 4.0.3
Release: 0
Summary: Textile processing for python
License: BSD-3-Clause
URL: https://github.com/textile/python-textile
Source: https://files.pythonhosted.org/packages/source/t/textile/textile-%{version}.tar.gz
BuildRequires: %{python_module html5lib >= 1.0.1}
BuildRequires: %{python_module nh3}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module regex >= 1.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-nh3
Requires: python-regex
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
This is a Python implementation of the Textile
(http://textism.com/tools/textile) markup language.
Textile is a XHTML generator using a simple markup developed by Dean
Allen. This is a Python port with support for code validation, itex to
MathML translation, Python code coloring and much more.
%prep
%setup -q -n textile-%{version}
%build
%pyproject_wheel
%check
rm pytest.ini
%pytest
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pytextile
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative pytextile
%postun
%python_uninstall_alternative pytextile
%files %{python_files}
%license LICENSE.txt
%{python_sitelib}/textile
%{python_sitelib}/textile-%{version}.dist-info
%python_alternative %{_bindir}/pytextile
%changelog

3
textile-4.0.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5894d78a321656a8f72414844c04b10477edd1e2e14f5b05aa1307f02cee9777
size 51157

3
textile-4.0.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f2b0fa67769051a406020d2fa4d247d16967080aae407139f888c196eb23de6b
size 56908