annotate pyproject.toml @ 218:5114d49a8eab

A new interface for my-doc-fonts.sty and a new implementation of option processing. Use more stuff from xkeyval to check for given option values.
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 15 May 2026 16:35:34 +0200
parents b27557f6d393
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
1 [build-system]
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
2 requires = ["setuptools>=56.0"]
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
3 build-backend = "setuptools.build_meta"
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
4
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
5 [project]
8
5812e7f3bc13 Rename the project the implementing class to "pygments-lexer-pseudocode2".
Franz Glasner <fzglas.hg@dom66.de>
parents: 6
diff changeset
6 name = "pygments-lexer-pseudocode2"
120
ef68b3769be5 Convert/rename README.md to README.rst and enhance it considerably
Franz Glasner <fzglas.hg@dom66.de>
parents: 110
diff changeset
7 description = "Pygments Lexer for Pseudocode"
4
d4f778187170 Add a license file for the MIT license
Franz Glasner <fzglas.hg@dom66.de>
parents: 3
diff changeset
8 license = { file = "LICENSES/MIT.txt" }
3
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
9 authors = [
120
ef68b3769be5 Convert/rename README.md to README.rst and enhance it considerably
Franz Glasner <fzglas.hg@dom66.de>
parents: 110
diff changeset
10 {name = "Franz Glasner", email = "fzglas.hg@dom66.de"},
3
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
11 {name = "Simon Wachter", email = "simon@wachter.me"},
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
12 ]
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
13 classifiers = [
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
14 "Development Status :: 4 - Beta",
10
f4d6cf8e6ea3 Refine the Trove Classifiers
Franz Glasner <fzglas.hg@dom66.de>
parents: 9
diff changeset
15 "Intended Audience :: Developers",
f4d6cf8e6ea3 Refine the Trove Classifiers
Franz Glasner <fzglas.hg@dom66.de>
parents: 9
diff changeset
16 "Intended Audience :: Education",
f4d6cf8e6ea3 Refine the Trove Classifiers
Franz Glasner <fzglas.hg@dom66.de>
parents: 9
diff changeset
17 "Intended Audience :: End Users/Desktop",
f4d6cf8e6ea3 Refine the Trove Classifiers
Franz Glasner <fzglas.hg@dom66.de>
parents: 9
diff changeset
18 "Intended Audience :: Information Technology",
3
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
19 "License :: OSI Approved :: MIT License",
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
20 "Natural Language :: French",
10
f4d6cf8e6ea3 Refine the Trove Classifiers
Franz Glasner <fzglas.hg@dom66.de>
parents: 9
diff changeset
21 "Operating System :: OS Independent",
f4d6cf8e6ea3 Refine the Trove Classifiers
Franz Glasner <fzglas.hg@dom66.de>
parents: 9
diff changeset
22 "Programming Language :: Python",
f4d6cf8e6ea3 Refine the Trove Classifiers
Franz Glasner <fzglas.hg@dom66.de>
parents: 9
diff changeset
23 "Topic :: Documentation",
f4d6cf8e6ea3 Refine the Trove Classifiers
Franz Glasner <fzglas.hg@dom66.de>
parents: 9
diff changeset
24 "Topic :: Software Development :: Documentation",
3
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
25 "Topic :: Text Processing",
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
26 "Topic :: Utilities",
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
27 ]
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
28 dependencies = [
67
3ccfa7f45044 Minimum Pygments version is 2.2
Franz Glasner <fzglas.hg@dom66.de>
parents: 55
diff changeset
29 #
3ccfa7f45044 Minimum Pygments version is 2.2
Franz Glasner <fzglas.hg@dom66.de>
parents: 55
diff changeset
30 # - Tests need this version for "load_XXX_from_file()"
3ccfa7f45044 Minimum Pygments version is 2.2
Franz Glasner <fzglas.hg@dom66.de>
parents: 55
diff changeset
31 # - But Sphinx yields errors on Python 2.7 (also with Pygments 2.0.1)
3ccfa7f45044 Minimum Pygments version is 2.2
Franz Glasner <fzglas.hg@dom66.de>
parents: 55
diff changeset
32 #
3ccfa7f45044 Minimum Pygments version is 2.2
Franz Glasner <fzglas.hg@dom66.de>
parents: 55
diff changeset
33 "Pygments>=2.2",
3ccfa7f45044 Minimum Pygments version is 2.2
Franz Glasner <fzglas.hg@dom66.de>
parents: 55
diff changeset
34 # Python 3.8+ and also works with Sphinx
3ccfa7f45044 Minimum Pygments version is 2.2
Franz Glasner <fzglas.hg@dom66.de>
parents: 55
diff changeset
35 # "Pygments>=2.15",
184
5113d7fbae9e Optimize PDF content.
Franz Glasner <fzglas.hg@dom66.de>
parents: 166
diff changeset
36 "docutils>=0.17",
9
74b95ceeda5f Add myself as author
Franz Glasner <fzglas.hg@dom66.de>
parents: 8
diff changeset
37 ]
3
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
38 dynamic = [
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
39 "readme",
11
087d67c10039 Make the version a dynamic metadata field
Franz Glasner <fzglas.hg@dom66.de>
parents: 10
diff changeset
40 "version",
3
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
41 ]
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
42
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
43 [project.urls]
28
de1f67eff9d5 Move the original French pseudocode lexter into a sub-module.
Franz Glasner <fzglas.hg@dom66.de>
parents: 11
diff changeset
44 # The original homepage of the Pseudo code (fr) lexer
3
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
45 homepage = "https://github.com/svvac/pseudocode-pygments-lexer"
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
46
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
47 [tool.setuptools]
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
48 packages = [
8
5812e7f3bc13 Rename the project the implementing class to "pygments-lexer-pseudocode2".
Franz Glasner <fzglas.hg@dom66.de>
parents: 6
diff changeset
49 "pygments_lexer_pseudocode2",
166
6a7dace0141e Also implement filters to replace tokens in a token stream: TokenReplaceFilter and ErrorToGenericErrorTokenFilter
Franz Glasner <fzglas.hg@dom66.de>
parents: 164
diff changeset
50 "pygments_lexer_pseudocode2.lexers",
6a7dace0141e Also implement filters to replace tokens in a token stream: TokenReplaceFilter and ErrorToGenericErrorTokenFilter
Franz Glasner <fzglas.hg@dom66.de>
parents: 164
diff changeset
51 "pygments_lexer_pseudocode2.filters",
3
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
52 ]
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
53 platforms = ["any"]
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
54 zip-safe = true
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
55 include-package-data = false
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
56
04cc3816d478 Convert the project's build system to use pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
57 [tool.setuptools.dynamic]
11
087d67c10039 Make the version a dynamic metadata field
Franz Glasner <fzglas.hg@dom66.de>
parents: 10
diff changeset
58 version = {attr = "pygments_lexer_pseudocode2.__version__"}
120
ef68b3769be5 Convert/rename README.md to README.rst and enhance it considerably
Franz Glasner <fzglas.hg@dom66.de>
parents: 110
diff changeset
59 readme = {file = ["README.rst"], content-type = "text/x-rst"}
185
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
60
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
61 #
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
62 # IMPORTANT:
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
63 # Synchronize lexers and filters with docs/conf.py!
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
64 #
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
65
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
66 [project.entry-points.'pygments.lexers']
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
67 # The key is not significant here
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
68 # The mostly original and somewhat extended Pseudocode lexer (fr)
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
69 fr_pseudocodelexer = "pygments_lexer_pseudocode2.lexers.fr_pseudocode:FrPseudocodeLexer"
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
70 algpseudocodelexer = "pygments_lexer_pseudocode2.lexers.algpseudocode:AlgPseudocodeLexer"
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
71 algpseudocodelexer_de = "pygments_lexer_pseudocode2.lexers.algpseudocode:AlgPseudocodeLexer_DE"
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
72 algpseudocodelexer_fr = "pygments_lexer_pseudocode2.lexers.algpseudocode:AlgPseudocodeLexer_FR"
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
73
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
74 [project.entry-points."pygments.filters"]
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
75 # The key *is* significant: it is the name the filter will be recognized as.
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
76 tokenreplace = "pygments_lexer_pseudocode2.filters:TokenReplaceFilter"
b27557f6d393 Allow to build the documentation when the project is not installed
Franz Glasner <fzglas.hg@dom66.de>
parents: 184
diff changeset
77 errortogenericerror = "pygments_lexer_pseudocode2.filters:ErrorToGenericErrorTokenFilter"