vesta-web 1.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. vesta_web-1.1.0/.cache/pip/http-v2/0/3/0/a/9/030a911cce2d4e54d7cae284d0c58e46729cd3026b688ef96642c28b +0 -0
  2. vesta_web-1.1.0/.cache/pip/http-v2/0/3/0/a/9/030a911cce2d4e54d7cae284d0c58e46729cd3026b688ef96642c28b.body +0 -0
  3. vesta_web-1.1.0/.cache/pip/http-v2/0/3/c/c/a/03ccaae4dac580e6236ab97c534d8e30c8973b8a6b883e99df0fd0fc +0 -0
  4. vesta_web-1.1.0/.cache/pip/http-v2/0/3/c/c/a/03ccaae4dac580e6236ab97c534d8e30c8973b8a6b883e99df0fd0fc.body +0 -0
  5. vesta_web-1.1.0/.cache/pip/http-v2/0/e/d/3/3/0ed336d749e009fe1267c844e36c442e5b3dc645d5eb9865c545b81a +0 -0
  6. vesta_web-1.1.0/.cache/pip/http-v2/0/e/d/3/3/0ed336d749e009fe1267c844e36c442e5b3dc645d5eb9865c545b81a.body +0 -0
  7. vesta_web-1.1.0/.cache/pip/http-v2/2/8/3/9/a/2839a1e60014c8f0cdf9453a6036b2fef7bf06342761e3d37258b029 +0 -0
  8. vesta_web-1.1.0/.cache/pip/http-v2/2/8/3/9/a/2839a1e60014c8f0cdf9453a6036b2fef7bf06342761e3d37258b029.body +0 -0
  9. vesta_web-1.1.0/.cache/pip/http-v2/3/3/9/7/4/33974f84394d9a943f68359da08431dab4af9f86c33962982ea21b5f +0 -0
  10. vesta_web-1.1.0/.cache/pip/http-v2/3/3/9/7/4/33974f84394d9a943f68359da08431dab4af9f86c33962982ea21b5f.body +0 -0
  11. vesta_web-1.1.0/.cache/pip/http-v2/4/4/e/5/b/44e5b11a6caa92636d8ccfe658d420ba4ed8f67f7f4e835b214255aa +0 -0
  12. vesta_web-1.1.0/.cache/pip/http-v2/4/4/e/5/b/44e5b11a6caa92636d8ccfe658d420ba4ed8f67f7f4e835b214255aa.body +0 -0
  13. vesta_web-1.1.0/.cache/pip/http-v2/6/0/7/f/c/607fc77cb6c93abf3de514f36aafbafb9c29f21b878383b4b5e6feb9 +0 -0
  14. vesta_web-1.1.0/.cache/pip/http-v2/6/0/7/f/c/607fc77cb6c93abf3de514f36aafbafb9c29f21b878383b4b5e6feb9.body +647 -0
  15. vesta_web-1.1.0/.cache/pip/http-v2/6/2/e/2/c/62e2caaadb9fd2d0a88b65a7d2043b2c343936491ef44dc753aa91e0 +0 -0
  16. vesta_web-1.1.0/.cache/pip/http-v2/6/2/e/2/c/62e2caaadb9fd2d0a88b65a7d2043b2c343936491ef44dc753aa91e0.body +0 -0
  17. vesta_web-1.1.0/.cache/pip/http-v2/7/a/a/4/3/7aa434d24502a688d27606fdc15e20687108a5f174613207fb3cd5e2 +0 -0
  18. vesta_web-1.1.0/.cache/pip/http-v2/7/a/a/4/3/7aa434d24502a688d27606fdc15e20687108a5f174613207fb3cd5e2.body +105 -0
  19. vesta_web-1.1.0/.cache/pip/http-v2/7/b/6/b/b/7b6bbe6761c4b96a22fceae90ae94b84afddc06ce20edb28bf2eaf86 +0 -0
  20. vesta_web-1.1.0/.cache/pip/http-v2/7/b/6/b/b/7b6bbe6761c4b96a22fceae90ae94b84afddc06ce20edb28bf2eaf86.body +0 -0
  21. vesta_web-1.1.0/.cache/pip/http-v2/8/8/d/9/e/88d9e78a4ab45ad62daa5a26c4f571d5b9d8c3931f453f44f0c6ee7b +0 -0
  22. vesta_web-1.1.0/.cache/pip/http-v2/8/8/d/9/e/88d9e78a4ab45ad62daa5a26c4f571d5b9d8c3931f453f44f0c6ee7b.body +0 -0
  23. vesta_web-1.1.0/.cache/pip/http-v2/8/c/5/4/2/8c54213ac80b2536d9dbc88d24229468300e07d0d4883935e180e4d8 +0 -0
  24. vesta_web-1.1.0/.cache/pip/http-v2/8/c/5/4/2/8c54213ac80b2536d9dbc88d24229468300e07d0d4883935e180e4d8.body +0 -0
  25. vesta_web-1.1.0/.cache/pip/http-v2/9/6/1/0/3/96103ed24ca493a95ab0488ee915fd4ad8537403d23b9679c1194de5 +0 -0
  26. vesta_web-1.1.0/.cache/pip/http-v2/9/6/1/0/3/96103ed24ca493a95ab0488ee915fd4ad8537403d23b9679c1194de5.body +82 -0
  27. vesta_web-1.1.0/.cache/pip/http-v2/9/e/d/3/7/9ed377a761861346a483546ee4ebbe92a83f2d3a40e917849c2eb140 +0 -0
  28. vesta_web-1.1.0/.cache/pip/http-v2/9/e/d/3/7/9ed377a761861346a483546ee4ebbe92a83f2d3a40e917849c2eb140.body +0 -0
  29. vesta_web-1.1.0/.cache/pip/http-v2/a/1/9/5/3/a19537d3cf37c122db841d6fe4cd322bc10d1a558bb00d146b85cb9a +0 -0
  30. vesta_web-1.1.0/.cache/pip/http-v2/a/1/9/5/3/a19537d3cf37c122db841d6fe4cd322bc10d1a558bb00d146b85cb9a.body +0 -0
  31. vesta_web-1.1.0/.cache/pip/http-v2/a/b/8/a/0/ab8a0f31ee8052ec718e843ac1971e5d27d13cd5c0c5377cb88ca98c +0 -0
  32. vesta_web-1.1.0/.cache/pip/http-v2/a/b/8/a/0/ab8a0f31ee8052ec718e843ac1971e5d27d13cd5c0c5377cb88ca98c.body +80 -0
  33. vesta_web-1.1.0/.cache/pip/http-v2/b/1/c/c/c/b1cccf8e379855686812f3236428c84e1d7428e5781f45ee9bed77e2 +0 -0
  34. vesta_web-1.1.0/.cache/pip/http-v2/b/1/c/c/c/b1cccf8e379855686812f3236428c84e1d7428e5781f45ee9bed77e2.body +0 -0
  35. vesta_web-1.1.0/.cache/pip/http-v2/b/9/3/9/c/b939c4552b20c2f2a36204f6bb1d2e526af7e96070b43b1d2e2e9ae4 +0 -0
  36. vesta_web-1.1.0/.cache/pip/http-v2/b/9/3/9/c/b939c4552b20c2f2a36204f6bb1d2e526af7e96070b43b1d2e2e9ae4.body +25 -0
  37. vesta_web-1.1.0/.cache/pip/http-v2/c/d/2/3/6/cd2366d413a2e8e87377cfadece7d8173562ece48b2be25218d5714a +0 -0
  38. vesta_web-1.1.0/.cache/pip/http-v2/c/d/2/3/6/cd2366d413a2e8e87377cfadece7d8173562ece48b2be25218d5714a.body +0 -0
  39. vesta_web-1.1.0/.cache/pip/http-v2/d/f/5/3/f/df53fb518d33bcda65a1c44b9f7c876a47ebf0faa2dcfea2185aed42 +0 -0
  40. vesta_web-1.1.0/.cache/pip/http-v2/d/f/5/3/f/df53fb518d33bcda65a1c44b9f7c876a47ebf0faa2dcfea2185aed42.body +137 -0
  41. vesta_web-1.1.0/.cache/pip/http-v2/f/3/6/d/5/f36d58c71164036f2cff3c9d0bb0c2b4d1d94bd0814c26b9cbe036b2 +0 -0
  42. vesta_web-1.1.0/.cache/pip/http-v2/f/3/6/d/5/f36d58c71164036f2cff3c9d0bb0c2b4d1d94bd0814c26b9cbe036b2.body +0 -0
  43. vesta_web-1.1.0/.cache/pip/http-v2/f/9/9/b/3/f99b3487d2b9c55edcd311aeafa35cbf852ab2cc5c3f5d1a1a08e2b5 +0 -0
  44. vesta_web-1.1.0/.cache/pip/http-v2/f/9/9/b/3/f99b3487d2b9c55edcd311aeafa35cbf852ab2cc5c3f5d1a1a08e2b5.body +152 -0
  45. vesta_web-1.1.0/.cache/pip/selfcheck/fe300af6f7d708c14827daac3afc81fbb8306b73de8dd6e3f1f8ea3b +1 -0
  46. vesta_web-1.1.0/.gitignore +4 -0
  47. vesta_web-1.1.0/.gitlab-ci.yml +40 -0
  48. vesta_web-1.1.0/LICENSE.md +5 -0
  49. vesta_web-1.1.0/PKG-INFO +55 -0
  50. vesta_web-1.1.0/README.md +27 -0
  51. vesta_web-1.1.0/pyproject.toml +40 -0
  52. vesta_web-1.1.0/src/vesta/__init__.py +486 -0
  53. vesta_web-1.1.0/src/vesta/db/UNIAUTH.sql +58 -0
  54. vesta_web-1.1.0/src/vesta/db/db_service.py +253 -0
  55. vesta_web-1.1.0/src/vesta/emptyProject/.gitignore +16 -0
  56. vesta_web-1.1.0/src/vesta/emptyProject/.gitlab-ci.yml +12 -0
  57. vesta_web-1.1.0/src/vesta/emptyProject/CONTRIBUTING.md +45 -0
  58. vesta_web-1.1.0/src/vesta/emptyProject/LICENSE.md +3 -0
  59. vesta_web-1.1.0/src/vesta/emptyProject/README.md +44 -0
  60. vesta_web-1.1.0/src/vesta/emptyProject/crons/exemple.py +13 -0
  61. vesta_web-1.1.0/src/vesta/emptyProject/db/schema.sql +0 -0
  62. vesta_web-1.1.0/src/vesta/emptyProject/install.sh +17 -0
  63. vesta_web-1.1.0/src/vesta/emptyProject/mailing/mailReset.html +1 -0
  64. vesta_web-1.1.0/src/vesta/emptyProject/mailing/mailVerif.html +1 -0
  65. vesta_web-1.1.0/src/vesta/emptyProject/misc/nginx_local +15 -0
  66. vesta_web-1.1.0/src/vesta/emptyProject/misc/nginx_prod +29 -0
  67. vesta_web-1.1.0/src/vesta/emptyProject/misc/nginx_prod_ws +29 -0
  68. vesta_web-1.1.0/src/vesta/emptyProject/misc/vesta.service +11 -0
  69. vesta_web-1.1.0/src/vesta/emptyProject/requirements.txt +0 -0
  70. vesta_web-1.1.0/src/vesta/emptyProject/server_static.ini +6 -0
  71. vesta_web-1.1.0/src/vesta/emptyProject/server_static.py +15 -0
  72. vesta_web-1.1.0/src/vesta/emptyProject/server_static_orm.ini +13 -0
  73. vesta_web-1.1.0/src/vesta/emptyProject/server_static_orm.py +15 -0
  74. vesta_web-1.1.0/src/vesta/emptyProject/server_vesta.ini +27 -0
  75. vesta_web-1.1.0/src/vesta/emptyProject/server_vesta.py +17 -0
  76. vesta_web-1.1.0/src/vesta/emptyProject/server_vesta_ws.ini +31 -0
  77. vesta_web-1.1.0/src/vesta/emptyProject/server_vesta_ws.py +56 -0
  78. vesta_web-1.1.0/src/vesta/emptyProject/static/home/auth.css +101 -0
  79. vesta_web-1.1.0/src/vesta/emptyProject/static/home/auth.html +38 -0
  80. vesta_web-1.1.0/src/vesta/emptyProject/static/home/auth.js +159 -0
  81. vesta_web-1.1.0/src/vesta/emptyProject/static/home/reset.html +33 -0
  82. vesta_web-1.1.0/src/vesta/emptyProject/static/home/verif.html +33 -0
  83. vesta_web-1.1.0/src/vesta/emptyProject/static/main.html +14 -0
  84. vesta_web-1.1.0/src/vesta/emptyProject/static/main.mjs +9 -0
  85. vesta_web-1.1.0/src/vesta/emptyProject/static/mobileUiManifest.mjs +3 -0
  86. vesta_web-1.1.0/src/vesta/emptyProject/static/style.css +0 -0
  87. vesta_web-1.1.0/src/vesta/emptyProject/static/translations/en.mjs +2 -0
  88. vesta_web-1.1.0/src/vesta/emptyProject/static/translations/fr.mjs +2 -0
  89. vesta_web-1.1.0/src/vesta/emptyProject/static/translations/translation.mjs +51 -0
  90. vesta_web-1.1.0/src/vesta/emptyProject/static/ws/onMessage.mjs +21 -0
  91. vesta_web-1.1.0/src/vesta/emptyProject/tests/example/foo.py +7 -0
  92. vesta_web-1.1.0/src/vesta/http/baseServer.py +257 -0
  93. vesta_web-1.1.0/src/vesta/http/error.py +5 -0
  94. vesta_web-1.1.0/src/vesta/http/redirect.py +5 -0
  95. vesta_web-1.1.0/src/vesta/http/response.py +85 -0
  96. vesta_web-1.1.0/src/vesta/mailing/mailing_service.py +126 -0
  97. vesta_web-1.1.0/src/vesta/scripts/initDB.py +52 -0
  98. vesta_web-1.1.0/src/vesta/scripts/install.py +76 -0
  99. vesta_web-1.1.0/src/vesta/scripts/testsRun.py +83 -0
  100. vesta_web-1.1.0/src/vesta/scripts/utils.py +84 -0
  101. vesta_web-1.1.0/src/vesta/scripts/vesta.py +225 -0
@@ -0,0 +1,647 @@
1
+ Metadata-Version: 2.1
2
+ Name: pathspec
3
+ Version: 0.12.1
4
+ Summary: Utility library for gitignore style pattern matching of file paths.
5
+ Author-email: "Caleb P. Burns" <cpburnz@gmail.com>
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/x-rst
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Topic :: Utilities
23
+ Project-URL: Documentation, https://python-path-specification.readthedocs.io/en/latest/index.html
24
+ Project-URL: Issue Tracker, https://github.com/cpburnz/python-pathspec/issues
25
+ Project-URL: Source Code, https://github.com/cpburnz/python-pathspec
26
+
27
+
28
+ PathSpec
29
+ ========
30
+
31
+ *pathspec* is a utility library for pattern matching of file paths. So
32
+ far this only includes Git's wildmatch pattern matching which itself is
33
+ derived from Rsync's wildmatch. Git uses wildmatch for its `gitignore`_
34
+ files.
35
+
36
+ .. _`gitignore`: http://git-scm.com/docs/gitignore
37
+
38
+
39
+ Tutorial
40
+ --------
41
+
42
+ Say you have a "Projects" directory and you want to back it up, but only
43
+ certain files, and ignore others depending on certain conditions::
44
+
45
+ >>> import pathspec
46
+ >>> # The gitignore-style patterns for files to select, but we're including
47
+ >>> # instead of ignoring.
48
+ >>> spec_text = """
49
+ ...
50
+ ... # This is a comment because the line begins with a hash: "#"
51
+ ...
52
+ ... # Include several project directories (and all descendants) relative to
53
+ ... # the current directory. To reference a directory you must end with a
54
+ ... # slash: "/"
55
+ ... /project-a/
56
+ ... /project-b/
57
+ ... /project-c/
58
+ ...
59
+ ... # Patterns can be negated by prefixing with exclamation mark: "!"
60
+ ...
61
+ ... # Ignore temporary files beginning or ending with "~" and ending with
62
+ ... # ".swp".
63
+ ... !~*
64
+ ... !*~
65
+ ... !*.swp
66
+ ...
67
+ ... # These are python projects so ignore compiled python files from
68
+ ... # testing.
69
+ ... !*.pyc
70
+ ...
71
+ ... # Ignore the build directories but only directly under the project
72
+ ... # directories.
73
+ ... !/*/build/
74
+ ...
75
+ ... """
76
+
77
+ We want to use the ``GitWildMatchPattern`` class to compile our patterns. The
78
+ ``PathSpec`` class provides an interface around pattern implementations::
79
+
80
+ >>> spec = pathspec.PathSpec.from_lines(pathspec.patterns.GitWildMatchPattern, spec_text.splitlines())
81
+
82
+ That may be a mouthful but it allows for additional patterns to be implemented
83
+ in the future without them having to deal with anything but matching the paths
84
+ sent to them. ``GitWildMatchPattern`` is the implementation of the actual
85
+ pattern which internally gets converted into a regular expression. ``PathSpec``
86
+ is a simple wrapper around a list of compiled patterns.
87
+
88
+ To make things simpler, we can use the registered name for a pattern class
89
+ instead of always having to provide a reference to the class itself. The
90
+ ``GitWildMatchPattern`` class is registered as **gitwildmatch**::
91
+
92
+ >>> spec = pathspec.PathSpec.from_lines('gitwildmatch', spec_text.splitlines())
93
+
94
+ If we wanted to manually compile the patterns we can just do the following::
95
+
96
+ >>> patterns = map(pathspec.patterns.GitWildMatchPattern, spec_text.splitlines())
97
+ >>> spec = PathSpec(patterns)
98
+
99
+ ``PathSpec.from_lines()`` is simply a class method which does just that.
100
+
101
+ If you want to load the patterns from file, you can pass the file instance
102
+ directly as well::
103
+
104
+ >>> with open('patterns.list', 'r') as fh:
105
+ >>> spec = pathspec.PathSpec.from_lines('gitwildmatch', fh)
106
+
107
+ You can perform matching on a whole directory tree with::
108
+
109
+ >>> matches = spec.match_tree('path/to/directory')
110
+
111
+ Or you can perform matching on a specific set of file paths with::
112
+
113
+ >>> matches = spec.match_files(file_paths)
114
+
115
+ Or check to see if an individual file matches::
116
+
117
+ >>> is_matched = spec.match_file(file_path)
118
+
119
+ There is a specialized class, ``pathspec.GitIgnoreSpec``, which more closely
120
+ implements the behavior of **gitignore**. This uses ``GitWildMatchPattern``
121
+ pattern by default and handles some edge cases differently from the generic
122
+ ``PathSpec`` class. ``GitIgnoreSpec`` can be used without specifying the pattern
123
+ factory::
124
+
125
+ >>> spec = pathspec.GitIgnoreSpec.from_lines(spec_text.splitlines())
126
+
127
+
128
+ License
129
+ -------
130
+
131
+ *pathspec* is licensed under the `Mozilla Public License Version 2.0`_. See
132
+ `LICENSE`_ or the `FAQ`_ for more information.
133
+
134
+ In summary, you may use *pathspec* with any closed or open source project
135
+ without affecting the license of the larger work so long as you:
136
+
137
+ - give credit where credit is due,
138
+
139
+ - and release any custom changes made to *pathspec*.
140
+
141
+ .. _`Mozilla Public License Version 2.0`: http://www.mozilla.org/MPL/2.0
142
+ .. _`LICENSE`: LICENSE
143
+ .. _`FAQ`: http://www.mozilla.org/MPL/2.0/FAQ.html
144
+
145
+
146
+ Source
147
+ ------
148
+
149
+ The source code for *pathspec* is available from the GitHub repo
150
+ `cpburnz/python-pathspec`_.
151
+
152
+ .. _`cpburnz/python-pathspec`: https://github.com/cpburnz/python-pathspec
153
+
154
+
155
+ Installation
156
+ ------------
157
+
158
+ *pathspec* is available for install through `PyPI`_::
159
+
160
+ pip install pathspec
161
+
162
+ *pathspec* can also be built from source. The following packages will be
163
+ required:
164
+
165
+ - `build`_ (>=0.6.0)
166
+
167
+ *pathspec* can then be built and installed with::
168
+
169
+ python -m build
170
+ pip install dist/pathspec-*-py3-none-any.whl
171
+
172
+ .. _`PyPI`: http://pypi.python.org/pypi/pathspec
173
+ .. _`build`: https://pypi.org/project/build/
174
+
175
+
176
+ Documentation
177
+ -------------
178
+
179
+ Documentation for *pathspec* is available on `Read the Docs`_.
180
+
181
+ .. _`Read the Docs`: https://python-path-specification.readthedocs.io
182
+
183
+
184
+ Other Languages
185
+ ---------------
186
+
187
+ The related project `pathspec-ruby`_ (by *highb*) provides a similar library as
188
+ a `Ruby gem`_.
189
+
190
+ .. _`pathspec-ruby`: https://github.com/highb/pathspec-ruby
191
+ .. _`Ruby gem`: https://rubygems.org/gems/pathspec
192
+
193
+
194
+
195
+ Change History
196
+ ==============
197
+
198
+
199
+ 0.12.1 (2023-12-10)
200
+ -------------------
201
+
202
+ Bug fixes:
203
+
204
+ - `Issue #84`_: PathSpec.match_file() returns None since 0.12.0.
205
+
206
+
207
+ .. _`Issue #84`: https://github.com/cpburnz/python-pathspec/issues/84
208
+
209
+
210
+ 0.12.0 (2023-12-09)
211
+ -------------------
212
+
213
+ Major changes:
214
+
215
+ - Dropped support of EOL Python 3.7. See `Pull #82`_.
216
+
217
+
218
+ API changes:
219
+
220
+ - Signature of protected method `pathspec.pathspec.PathSpec._match_file()` (with a leading underscore) has been changed from `def _match_file(patterns: Iterable[Pattern], file: str) -> bool` to `def _match_file(patterns: Iterable[Tuple[int, Pattern]], file: str) -> Tuple[Optional[bool], Optional[int]]`.
221
+
222
+ New features:
223
+
224
+ - Added `pathspec.pathspec.PathSpec.check_*()` methods. These methods behave similarly to `.match_*()` but return additional information in the `pathspec.util.CheckResult` objects (e.g., `CheckResult.index` indicates the index of the last pattern that matched the file).
225
+ - Added `pathspec.pattern.RegexPattern.pattern` attribute which stores the original, uncompiled pattern.
226
+
227
+ Bug fixes:
228
+
229
+ - `Issue #81`_: GitIgnoreSpec behaviors differ from git.
230
+ - `Pull #83`_: Fix ReadTheDocs builds.
231
+
232
+ Improvements:
233
+
234
+ - Mark Python 3.12 as supported. See `Pull #82`_.
235
+ - Improve test debugging.
236
+ - Improve type hint on *on_error* parameter on `pathspec.pathspec.PathSpec.match_tree_entries()`.
237
+ - Improve type hint on *on_error* parameter on `pathspec.util.iter_tree_entries()`.
238
+
239
+
240
+ .. _`Issue #81`: https://github.com/cpburnz/python-pathspec/issues/81
241
+ .. _`Pull #82`: https://github.com/cpburnz/python-pathspec/pull/82
242
+ .. _`Pull #83`: https://github.com/cpburnz/python-pathspec/pull/83
243
+
244
+
245
+ 0.11.2 (2023-07-28)
246
+ -------------------
247
+
248
+ New features:
249
+
250
+ - `Issue #80`_: match_files with negated path spec. `pathspec.PathSpec.match_*()` now have a `negate` parameter to make using *.gitignore* logic easier and more efficient.
251
+
252
+ Bug fixes:
253
+
254
+ - `Pull #76`_: Add edge case: patterns that end with an escaped space
255
+ - `Issue #77`_/`Pull #78`_: Negate with caret symbol as with the exclamation mark.
256
+
257
+
258
+ .. _`Pull #76`: https://github.com/cpburnz/python-pathspec/pull/76
259
+ .. _`Issue #77`: https://github.com/cpburnz/python-pathspec/issues/77
260
+ .. _`Pull #78`: https://github.com/cpburnz/python-pathspec/pull/78/
261
+ .. _`Issue #80`: https://github.com/cpburnz/python-pathspec/issues/80
262
+
263
+
264
+ 0.11.1 (2023-03-14)
265
+ -------------------
266
+
267
+ Bug fixes:
268
+
269
+ - `Issue #74`_: Include directory should override exclude file.
270
+
271
+ Improvements:
272
+
273
+ - `Pull #75`_: Fix partially unknown PathLike type.
274
+ - Convert `os.PathLike` to a string properly using `os.fspath`.
275
+
276
+
277
+ .. _`Issue #74`: https://github.com/cpburnz/python-pathspec/issues/74
278
+ .. _`Pull #75`: https://github.com/cpburnz/python-pathspec/pull/75
279
+
280
+
281
+ 0.11.0 (2023-01-24)
282
+ -------------------
283
+
284
+ Major changes:
285
+
286
+ - Changed build backend to `flit_core.buildapi`_ from `setuptools.build_meta`_. Building with `setuptools` through `setup.py` is still supported for distributions that need it. See `Issue #72`_.
287
+
288
+ Improvements:
289
+
290
+ - `Issue #72`_/`Pull #73`_: Please consider switching the build-system to flit_core to ease setuptools bootstrap.
291
+
292
+
293
+ .. _`flit_core.buildapi`: https://flit.pypa.io/en/latest/index.html
294
+ .. _`Issue #72`: https://github.com/cpburnz/python-pathspec/issues/72
295
+ .. _`Pull #73`: https://github.com/cpburnz/python-pathspec/pull/73
296
+
297
+
298
+ 0.10.3 (2022-12-09)
299
+ -------------------
300
+
301
+ New features:
302
+
303
+ - Added utility function `pathspec.util.append_dir_sep()` to aid in distinguishing between directories and files on the file-system. See `Issue #65`_.
304
+
305
+ Bug fixes:
306
+
307
+ - `Issue #66`_/`Pull #67`_: Package not marked as py.typed.
308
+ - `Issue #68`_: Exports are considered private.
309
+ - `Issue #70`_/`Pull #71`_: 'Self' string literal type is Unknown in pyright.
310
+
311
+ Improvements:
312
+
313
+ - `Issue #65`_: Checking directories via match_file() does not work on Path objects.
314
+
315
+
316
+ .. _`Issue #65`: https://github.com/cpburnz/python-pathspec/issues/65
317
+ .. _`Issue #66`: https://github.com/cpburnz/python-pathspec/issues/66
318
+ .. _`Pull #67`: https://github.com/cpburnz/python-pathspec/pull/67
319
+ .. _`Issue #68`: https://github.com/cpburnz/python-pathspec/issues/68
320
+ .. _`Issue #70`: https://github.com/cpburnz/python-pathspec/issues/70
321
+ .. _`Pull #71`: https://github.com/cpburnz/python-pathspec/pull/71
322
+
323
+
324
+ 0.10.2 (2022-11-12)
325
+ -------------------
326
+
327
+ Bug fixes:
328
+
329
+ - Fix failing tests on Windows.
330
+ - Type hint on *root* parameter on `pathspec.pathspec.PathSpec.match_tree_entries()`.
331
+ - Type hint on *root* parameter on `pathspec.pathspec.PathSpec.match_tree_files()`.
332
+ - Type hint on *root* parameter on `pathspec.util.iter_tree_entries()`.
333
+ - Type hint on *root* parameter on `pathspec.util.iter_tree_files()`.
334
+ - `Issue #64`_: IndexError with my .gitignore file when trying to build a Python package.
335
+
336
+ Improvements:
337
+
338
+ - `Pull #58`_: CI: add GitHub Actions test workflow.
339
+
340
+
341
+ .. _`Pull #58`: https://github.com/cpburnz/python-pathspec/pull/58
342
+ .. _`Issue #64`: https://github.com/cpburnz/python-pathspec/issues/64
343
+
344
+
345
+ 0.10.1 (2022-09-02)
346
+ -------------------
347
+
348
+ Bug fixes:
349
+
350
+ - Fix documentation on `pathspec.pattern.RegexPattern.match_file()`.
351
+ - `Pull #60`_: Remove redundant wheel dep from pyproject.toml.
352
+ - `Issue #61`_: Dist failure for Fedora, CentOS, EPEL.
353
+ - `Issue #62`_: Since version 0.10.0 pure wildcard does not work in some cases.
354
+
355
+ Improvements:
356
+
357
+ - Restore support for legacy installations using `setup.py`. See `Issue #61`_.
358
+
359
+
360
+ .. _`Pull #60`: https://github.com/cpburnz/python-pathspec/pull/60
361
+ .. _`Issue #61`: https://github.com/cpburnz/python-pathspec/issues/61
362
+ .. _`Issue #62`: https://github.com/cpburnz/python-pathspec/issues/62
363
+
364
+
365
+ 0.10.0 (2022-08-30)
366
+ -------------------
367
+
368
+ Major changes:
369
+
370
+ - Dropped support of EOL Python 2.7, 3.5, 3.6. See `Issue #47`_.
371
+ - The *gitwildmatch* pattern `dir/*` is now handled the same as `dir/`. This means `dir/*` will now match all descendants rather than only direct children. See `Issue #19`_.
372
+ - Added `pathspec.GitIgnoreSpec` class (see new features).
373
+ - Changed build system to `pyproject.toml`_ and build backend to `setuptools.build_meta`_ which may have unforeseen consequences.
374
+ - Renamed GitHub project from `python-path-specification`_ to `python-pathspec`_. See `Issue #35`_.
375
+
376
+ API changes:
377
+
378
+ - Deprecated: `pathspec.util.match_files()` is an old function no longer used.
379
+ - Deprecated: `pathspec.match_files()` is an old function no longer used.
380
+ - Deprecated: `pathspec.util.normalize_files()` is no longer used.
381
+ - Deprecated: `pathspec.util.iter_tree()` is an alias for `pathspec.util.iter_tree_files()`.
382
+ - Deprecated: `pathspec.iter_tree()` is an alias for `pathspec.util.iter_tree_files()`.
383
+ - Deprecated: `pathspec.pattern.Pattern.match()` is no longer used. Use or implement
384
+ `pathspec.pattern.Pattern.match_file()`.
385
+
386
+ New features:
387
+
388
+ - Added class `pathspec.gitignore.GitIgnoreSpec` (with alias `pathspec.GitIgnoreSpec`) to implement *gitignore* behavior not possible with standard `PathSpec` class. The particular *gitignore* behavior implemented is prioritizing patterns matching the file directly over matching an ancestor directory.
389
+
390
+ Bug fixes:
391
+
392
+ - `Issue #19`_: Files inside an ignored sub-directory are not matched.
393
+ - `Issue #41`_: Incorrectly (?) matches files inside directories that do match.
394
+ - `Pull #51`_: Refactor deprecated unittest aliases for Python 3.11 compatibility.
395
+ - `Issue #53`_: Symlink pathspec_meta.py breaks Windows.
396
+ - `Issue #54`_: test_util.py uses os.symlink which can fail on Windows.
397
+ - `Issue #55`_: Backslashes at start of pattern not handled correctly.
398
+ - `Pull #56`_: pyproject.toml: include subpackages in setuptools config
399
+ - `Issue #57`_: `!` doesn't exclude files in directories if the pattern doesn't have a trailing slash.
400
+
401
+ Improvements:
402
+
403
+ - Support Python 3.10, 3.11.
404
+ - Modernize code to Python 3.7.
405
+ - `Issue #52`_: match_files() is not a pure generator function, and it impacts tree_*() gravely.
406
+
407
+
408
+ .. _`python-path-specification`: https://github.com/cpburnz/python-path-specification
409
+ .. _`python-pathspec`: https://github.com/cpburnz/python-pathspec
410
+ .. _`pyproject.toml`: https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
411
+ .. _`setuptools.build_meta`: https://setuptools.pypa.io/en/latest/build_meta.html
412
+ .. _`Issue #19`: https://github.com/cpburnz/python-pathspec/issues/19
413
+ .. _`Issue #35`: https://github.com/cpburnz/python-pathspec/issues/35
414
+ .. _`Issue #41`: https://github.com/cpburnz/python-pathspec/issues/41
415
+ .. _`Issue #47`: https://github.com/cpburnz/python-pathspec/issues/47
416
+ .. _`Pull #51`: https://github.com/cpburnz/python-pathspec/pull/51
417
+ .. _`Issue #52`: https://github.com/cpburnz/python-pathspec/issues/52
418
+ .. _`Issue #53`: https://github.com/cpburnz/python-pathspec/issues/53
419
+ .. _`Issue #54`: https://github.com/cpburnz/python-pathspec/issues/54
420
+ .. _`Issue #55`: https://github.com/cpburnz/python-pathspec/issues/55
421
+ .. _`Pull #56`: https://github.com/cpburnz/python-pathspec/pull/56
422
+ .. _`Issue #57`: https://github.com/cpburnz/python-pathspec/issues/57
423
+
424
+
425
+ 0.9.0 (2021-07-17)
426
+ ------------------
427
+
428
+ - `Issue #44`_/`Pull #50`_: Raise `GitWildMatchPatternError` for invalid git patterns.
429
+ - `Pull #45`_: Fix for duplicate leading double-asterisk, and edge cases.
430
+ - `Issue #46`_: Fix matching absolute paths.
431
+ - API change: `util.normalize_files()` now returns a `Dict[str, List[pathlike]]` instead of a `Dict[str, pathlike]`.
432
+ - Added type hinting.
433
+
434
+ .. _`Issue #44`: https://github.com/cpburnz/python-pathspec/issues/44
435
+ .. _`Pull #45`: https://github.com/cpburnz/python-pathspec/pull/45
436
+ .. _`Issue #46`: https://github.com/cpburnz/python-pathspec/issues/46
437
+ .. _`Pull #50`: https://github.com/cpburnz/python-pathspec/pull/50
438
+
439
+
440
+ 0.8.1 (2020-11-07)
441
+ ------------------
442
+
443
+ - `Pull #43`_: Add support for addition operator.
444
+
445
+ .. _`Pull #43`: https://github.com/cpburnz/python-pathspec/pull/43
446
+
447
+
448
+ 0.8.0 (2020-04-09)
449
+ ------------------
450
+
451
+ - `Issue #30`_: Expose what patterns matched paths. Added `util.detailed_match_files()`.
452
+ - `Issue #31`_: `match_tree()` doesn't return symlinks.
453
+ - `Issue #34`_: Support `pathlib.Path`\ s.
454
+ - Add `PathSpec.match_tree_entries` and `util.iter_tree_entries()` to support directories and symlinks.
455
+ - API change: `match_tree()` has been renamed to `match_tree_files()`. The old name `match_tree()` is still available as an alias.
456
+ - API change: `match_tree_files()` now returns symlinks. This is a bug fix but it will change the returned results.
457
+
458
+ .. _`Issue #30`: https://github.com/cpburnz/python-pathspec/issues/30
459
+ .. _`Issue #31`: https://github.com/cpburnz/python-pathspec/issues/31
460
+ .. _`Issue #34`: https://github.com/cpburnz/python-pathspec/issues/34
461
+
462
+
463
+ 0.7.0 (2019-12-27)
464
+ ------------------
465
+
466
+ - `Pull #28`_: Add support for Python 3.8, and drop Python 3.4.
467
+ - `Pull #29`_: Publish bdist wheel.
468
+
469
+ .. _`Pull #28`: https://github.com/cpburnz/python-pathspec/pull/28
470
+ .. _`Pull #29`: https://github.com/cpburnz/python-pathspec/pull/29
471
+
472
+
473
+ 0.6.0 (2019-10-03)
474
+ ------------------
475
+
476
+ - `Pull #24`_: Drop support for Python 2.6, 3.2, and 3.3.
477
+ - `Pull #25`_: Update README.rst.
478
+ - `Pull #26`_: Method to escape gitwildmatch.
479
+
480
+ .. _`Pull #24`: https://github.com/cpburnz/python-pathspec/pull/24
481
+ .. _`Pull #25`: https://github.com/cpburnz/python-pathspec/pull/25
482
+ .. _`Pull #26`: https://github.com/cpburnz/python-pathspec/pull/26
483
+
484
+
485
+ 0.5.9 (2018-09-15)
486
+ ------------------
487
+
488
+ - Fixed file system error handling.
489
+
490
+
491
+ 0.5.8 (2018-09-15)
492
+ ------------------
493
+
494
+ - Improved type checking.
495
+ - Created scripts to test Python 2.6 because Tox removed support for it.
496
+ - Improved byte string handling in Python 3.
497
+ - `Issue #22`_: Handle dangling symlinks.
498
+
499
+ .. _`Issue #22`: https://github.com/cpburnz/python-pathspec/issues/22
500
+
501
+
502
+ 0.5.7 (2018-08-14)
503
+ ------------------
504
+
505
+ - `Issue #21`_: Fix collections deprecation warning.
506
+
507
+ .. _`Issue #21`: https://github.com/cpburnz/python-pathspec/issues/21
508
+
509
+
510
+ 0.5.6 (2018-04-06)
511
+ ------------------
512
+
513
+ - Improved unit tests.
514
+ - Improved type checking.
515
+ - `Issue #20`_: Support current directory prefix.
516
+
517
+ .. _`Issue #20`: https://github.com/cpburnz/python-pathspec/issues/20
518
+
519
+
520
+ 0.5.5 (2017-09-09)
521
+ ------------------
522
+
523
+ - Add documentation link to README.
524
+
525
+
526
+ 0.5.4 (2017-09-09)
527
+ ------------------
528
+
529
+ - `Pull #17`_: Add link to Ruby implementation of *pathspec*.
530
+ - Add sphinx documentation.
531
+
532
+ .. _`Pull #17`: https://github.com/cpburnz/python-pathspec/pull/17
533
+
534
+
535
+ 0.5.3 (2017-07-01)
536
+ ------------------
537
+
538
+ - `Issue #14`_: Fix byte strings for Python 3.
539
+ - `Pull #15`_: Include "LICENSE" in source package.
540
+ - `Issue #16`_: Support Python 2.6.
541
+
542
+ .. _`Issue #14`: https://github.com/cpburnz/python-pathspec/issues/14
543
+ .. _`Pull #15`: https://github.com/cpburnz/python-pathspec/pull/15
544
+ .. _`Issue #16`: https://github.com/cpburnz/python-pathspec/issues/16
545
+
546
+
547
+ 0.5.2 (2017-04-04)
548
+ ------------------
549
+
550
+ - Fixed change log.
551
+
552
+
553
+ 0.5.1 (2017-04-04)
554
+ ------------------
555
+
556
+ - `Pull #13`_: Add equality methods to `PathSpec` and `RegexPattern`.
557
+
558
+ .. _`Pull #13`: https://github.com/cpburnz/python-pathspec/pull/13
559
+
560
+
561
+ 0.5.0 (2016-08-22)
562
+ ------------------
563
+
564
+ - `Issue #12`_: Add `PathSpec.match_file()`.
565
+ - Renamed `gitignore.GitIgnorePattern` to `patterns.gitwildmatch.GitWildMatchPattern`.
566
+ - Deprecated `gitignore.GitIgnorePattern`.
567
+
568
+ .. _`Issue #12`: https://github.com/cpburnz/python-pathspec/issues/12
569
+
570
+
571
+ 0.4.0 (2016-07-15)
572
+ ------------------
573
+
574
+ - `Issue #11`_: Support converting patterns into regular expressions without compiling them.
575
+ - API change: Subclasses of `RegexPattern` should implement `pattern_to_regex()`.
576
+
577
+ .. _`Issue #11`: https://github.com/cpburnz/python-pathspec/issues/11
578
+
579
+
580
+ 0.3.4 (2015-08-24)
581
+ ------------------
582
+
583
+ - `Pull #7`_: Fixed non-recursive links.
584
+ - `Pull #8`_: Fixed edge cases in gitignore patterns.
585
+ - `Pull #9`_: Fixed minor usage documentation.
586
+ - Fixed recursion detection.
587
+ - Fixed trivial incompatibility with Python 3.2.
588
+
589
+ .. _`Pull #7`: https://github.com/cpburnz/python-pathspec/pull/7
590
+ .. _`Pull #8`: https://github.com/cpburnz/python-pathspec/pull/8
591
+ .. _`Pull #9`: https://github.com/cpburnz/python-pathspec/pull/9
592
+
593
+
594
+ 0.3.3 (2014-11-21)
595
+ ------------------
596
+
597
+ - Improved documentation.
598
+
599
+
600
+ 0.3.2 (2014-11-08)
601
+ ------------------
602
+
603
+ - `Pull #5`_: Use tox for testing.
604
+ - `Issue #6`_: Fixed matching Windows paths.
605
+ - Improved documentation.
606
+ - API change: `spec.match_tree()` and `spec.match_files()` now return iterators instead of sets.
607
+
608
+ .. _`Pull #5`: https://github.com/cpburnz/python-pathspec/pull/5
609
+ .. _`Issue #6`: https://github.com/cpburnz/python-pathspec/issues/6
610
+
611
+
612
+ 0.3.1 (2014-09-17)
613
+ ------------------
614
+
615
+ - Updated README.
616
+
617
+
618
+ 0.3.0 (2014-09-17)
619
+ ------------------
620
+
621
+ - `Pull #3`_: Fixed trailing slash in gitignore patterns.
622
+ - `Pull #4`_: Fixed test for trailing slash in gitignore patterns.
623
+ - Added registered patterns.
624
+
625
+ .. _`Pull #3`: https://github.com/cpburnz/python-pathspec/pull/3
626
+ .. _`Pull #4`: https://github.com/cpburnz/python-pathspec/pull/4
627
+
628
+
629
+ 0.2.2 (2013-12-17)
630
+ ------------------
631
+
632
+ - Fixed setup.py.
633
+
634
+
635
+ 0.2.1 (2013-12-17)
636
+ ------------------
637
+
638
+ - Added tests.
639
+ - Fixed comment gitignore patterns.
640
+ - Fixed relative path gitignore patterns.
641
+
642
+
643
+ 0.2.0 (2013-12-07)
644
+ ------------------
645
+
646
+ - Initial release.
647
+