1
0
mirror of https://github.com/edgewall/genshi.git synced 2026-02-05 06:45:30 +01:00

1011 Commits

Author SHA1 Message Date
Simon Cross
62a112f525 Update workflow to use Ubuntu 22.04. (#96) 2025-11-30 21:20:42 +01:00
Simon Cross
614df866aa Update changelog. 2025-11-30 20:58:43 +01:00
Simon Cross
d785d04544 Remove dependency on six. (#94)
Remove the dependency on 'six' by adding the necessary functionality to 'genshi.compat'.
2025-07-07 23:37:38 +02:00
Alexandre Detiste
c4afb785f2 Update the benchmarks to support Python 3.13 (the "cgi" module was removed in 3.13) (#90) 2024-11-16 19:31:55 +01:00
Simon Cross
89a931c6f4 Update the badge link to Read The Docs. 2024-10-15 22:55:39 +02:00
Simon Cross
3b7bf4c23b Migrate documentation to Sphinx. (#89)
* Add basic Sphinx configuration.

* Translate documentation to Sphinx .rst

* Add doc/_build to gitignore.

* Rename requirements.rst back to .txt.

* Fix HTMLFormFiller reference.

* Caption the toctree sections.

* Switch to the RTD Sphinx theme.

* Add API documentation.

* Dowgrade Sphinx to 7.4 for sphinx-rtd-theme.

* Update Read the Docs badge to point to genshi-edgewall.readthedocs.org.
2024-08-27 23:01:49 +02:00
Simon Cross
dccac3692c Update GitHub Action versions. (#88)
* Update GitHub Action versions.

* Update pypy version names for setup-python@v5.

* Update Python version used to build sdist and wheels to the earliest version supported by the build package.
2024-08-25 13:30:47 +02:00
Simon Cross
43496ec3cd Fix HTMLParser error handling. (#87)
* Fix HTMLParser error handling which referenced Python's html.HTMLParseError which was never raised and removed in Python 3.5.

* Don't use assertRaisesRegex on Python 2.

* Fix typo in HTMLParser error handling comment.
2024-08-25 13:06:35 +02:00
Simon Cross
ca08e57c90 Switch tests to pytest. (#86)
* Move tests into modules prefixed with test_ so that pytest can locate them.

* Fix missing imports for doctests in genshi.filters.transforms.

* Add pytest configuration.

* Rename test_utils to utils so that it is not considered a test module by pytest.

* Rename test_util_x to test_util.

* Replace 'is' and 'is not' checks on ints with ones on bools to silence SyntaxWarning.

* Run tests with pytest.

* Set pytest options for CI.

* Add setuptools to tox (it supplies pkg_resources for tests.

* Install genshi before trying to run pytest.

* Add missing parenthesises to matrix pytest-extra-options value.

* Customize pytest options for Python 2.7.

* Ignore Expression deprecation warning on Python 3.13.

* Remove pypy2 and Python 3.13 from matrix so that they can be added via include.

* Add ALLOW_UNICODE flag to hopefully support Python 2.7 docstests.

* Expand astutil warning exclusion for Python 3.13.

* Expand warning exclusion for Python 3.13 further.
2024-08-25 01:08:58 +02:00
Simon Cross
af138557d1 Update changelog. 2024-06-16 01:47:28 +02:00
Simon Cross
afc3be0e59 Add badges to the README. (#82)
* Add ReadTheDocs badge.

* Use latest ReadTheDocs for badge and update links.

* Update links to ReadTheDocs and Edgewall.

* Add GitHub actions badge.

* Add a PyPI version badge and switch to for-the-badge style.

* Switch ReadTheDocs badge to the for-the-badge style.

* Add Python versions and implementation badges for fun.

* Add Python implementations supported to classifiers.
2024-06-16 01:33:11 +02:00
Simon Cross
bc672710fc Merge pull request #81 from edgewall/feature/add-python-313-to-ci-matrix
Add Python 3.13 beta to CI.
2024-06-15 23:38:09 +02:00
Simon Cross
fec33b975f Add Python 3.13 beta to CI. 2024-06-15 23:27:12 +02:00
Simon Cross
be5f69e873 Merge pull request #77 from edgewall/feature/add-python-312-to-ci-matrix
Add Python 3.12 to CI matrix and fix Python 3.12 support.
2024-06-15 22:52:28 +02:00
Simon Cross
1e5c1b99ea Also use the Ellipsis constant when checking the node value. 2024-06-15 22:47:45 +02:00
Simon Cross
5cbcf2c4f7 Use Ellipsis constant for ... -- it is available in Python 2 and 3. 2024-06-15 22:46:13 +02:00
Simon Cross
dfbd962721 Fix handling of Ellipsis in AST for Python 3.12. 2024-06-15 22:38:07 +02:00
Simon Cross
a190a6d0b3 Apply Fedora patch for using default test loader. 2024-06-15 20:43:03 +02:00
Simon Cross
86907b63fd Merge pull request #78 from edgewall/feature/update-changelog-for-0.7.8
Update changelog for 0.7.8
2024-06-14 06:35:25 +02:00
Simon Cross
433d139f51 Update changelog. 2024-06-14 06:33:47 +02:00
Simon Cross
c327384d60 Explicitly install setuptools. 2024-06-14 06:23:11 +02:00
Simon Cross
0cb928ebaf Explicitly add setuptools as a build requirement. 2024-06-14 06:20:05 +02:00
Simon Cross
3dd7eaa9c6 Add Python 3.12 to CI matrix. 2024-06-14 06:14:20 +02:00
Simon Cross
1130640e76 Merge pull request #76 from edgewall/feature/clarify-escaping-in-url-finder
Clarify the escaping in _URL_FINDER.
2024-06-14 06:10:57 +02:00
Simon Cross
9d1730bc42 Clarify the escaping in _URL_FINDER. 2024-06-14 06:09:26 +02:00
Simon Cross
3062b3992b Merge pull request #53 from cedk/translate-nested-directives
Do not merge sub directives if they have not been changed.
2024-06-13 23:42:30 +02:00
Simon Cross
df975e9dc8 Merge pull request #74 from edgewall/feature/updated-remove-old-setup-dependencies
Remove fallback to distutils, patching of bdist_egg and use of doctools.
2024-06-13 23:27:01 +02:00
Simon Cross
89e50d7662 Remove fallback to distutils, patching of bdist_egg and use of doctools. 2024-06-13 23:25:20 +02:00
Simon Cross
c6f4446f53 Merge pull request #73 from cedk/ast-warnings
Silence deprecation warnings from attempting to import Ellipsis and Str (which are needed to support older Pythons).
2024-06-12 00:27:08 +02:00
Cédric Krier
26b6797265 Remove tests for python 2.7 2024-06-08 21:28:41 +02:00
Cédric Krier
88a51e4f81 Use ubuntu 20.04 for Python 2.7 and 3.6 2024-06-08 21:28:29 +02:00
Cédric Krier
c70de542b5 Do not use deprecated Ellipsis and Str 2024-06-08 16:43:40 +02:00
Simon Cross
e1612568cb Merge pull request #68 from ginggs/patch-1
Fix installation with setuptools >= 60
2022-10-27 13:41:26 +02:00
Graham Inggs
0850374ad9 Fix installation with setuptools >= 60
Installation of genshi with recent versions of setuptools fails with:
`distutils.errors.DistutilsSetupError: each element of 'ext_modules' option must be an Extension instance or 2-tuple`
Setuptools monkeypatches distutils, so change the ordering of imports so that setuptools is imported before distutils.
2022-10-27 12:58:29 +02:00
Simon Cross
24d75612b4 Update changelog. 2022-04-21 14:19:57 +02:00
Simon Cross
9c686036af Merge pull request #65 from jaraco/bugfix/64-declare-build-backend
Declare setuptools as a build backend.
2022-02-23 10:50:00 +02:00
Jason R. Coombs
245ac522bf Declare setuptools as a build backend. Fixes #64. 2022-02-22 17:38:19 -05:00
Simon Cross
eb113c455b Merge pull request #63 from kreyoo/master
Fix deprecation warnings caused by escape sequences in regex pattern strings.
2022-02-10 01:26:12 +02:00
kreyoo
605de3bfdd remove deprecation warnings
escape sequences are suppressed by creating regex strings, flags have to be at the beginning of regex: https://github.com/gboeing/osmnx/issues/285
2022-02-09 22:51:09 +01:00
Simon Cross
d1b1d2c617 Update changelog. 2022-02-09 15:45:32 +01:00
Simon Cross
2e104e622b Merge pull request #61 from edgewall/feature/move-release-to-github-actions
Add release workflow.
2022-02-08 19:11:53 +02:00
Simon Cross
8c78260070 Give the test suite run a more descriptive name. 2022-02-08 18:07:37 +01:00
Simon Cross
785c1345da Remove Travis CI. 2022-02-08 18:04:27 +01:00
Simon Cross
6afb0777a7 Add release workflow. 2022-02-08 18:00:14 +01:00
Simon Cross
d5975012c4 Merge pull request #58 from edgewall/feature/add-python-3-11-to-ci
Add Python 3.11 to CI.
2022-01-06 13:19:50 +02:00
Simon Cross
6f15d03c7c Add assert that code objects survive being unpickled. 2022-01-06 12:18:51 +01:00
Simon Cross
e20fd070fe Try 3.11-dev. 2022-01-06 12:16:51 +01:00
Simon Cross
e337ede332 Add Python 3.11 to CI. 2022-01-06 12:10:52 +01:00
Simon Cross
144340e7c9 Merge pull request #56 from brandtbucher/code-params
Fix CPython 3.11 compatibility.
2022-01-06 11:51:59 +02:00
Brandt Bucher
7ba516efe5 Catch up with master 2022-01-05 18:12:59 -08:00