METADATA 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  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. PathSpec
  27. ========
  28. *pathspec* is a utility library for pattern matching of file paths. So
  29. far this only includes Git's wildmatch pattern matching which itself is
  30. derived from Rsync's wildmatch. Git uses wildmatch for its `gitignore`_
  31. files.
  32. .. _`gitignore`: http://git-scm.com/docs/gitignore
  33. Tutorial
  34. --------
  35. Say you have a "Projects" directory and you want to back it up, but only
  36. certain files, and ignore others depending on certain conditions::
  37. >>> import pathspec
  38. >>> # The gitignore-style patterns for files to select, but we're including
  39. >>> # instead of ignoring.
  40. >>> spec_text = """
  41. ...
  42. ... # This is a comment because the line begins with a hash: "#"
  43. ...
  44. ... # Include several project directories (and all descendants) relative to
  45. ... # the current directory. To reference a directory you must end with a
  46. ... # slash: "/"
  47. ... /project-a/
  48. ... /project-b/
  49. ... /project-c/
  50. ...
  51. ... # Patterns can be negated by prefixing with exclamation mark: "!"
  52. ...
  53. ... # Ignore temporary files beginning or ending with "~" and ending with
  54. ... # ".swp".
  55. ... !~*
  56. ... !*~
  57. ... !*.swp
  58. ...
  59. ... # These are python projects so ignore compiled python files from
  60. ... # testing.
  61. ... !*.pyc
  62. ...
  63. ... # Ignore the build directories but only directly under the project
  64. ... # directories.
  65. ... !/*/build/
  66. ...
  67. ... """
  68. We want to use the ``GitWildMatchPattern`` class to compile our patterns. The
  69. ``PathSpec`` class provides an interface around pattern implementations::
  70. >>> spec = pathspec.PathSpec.from_lines(pathspec.patterns.GitWildMatchPattern, spec_text.splitlines())
  71. That may be a mouthful but it allows for additional patterns to be implemented
  72. in the future without them having to deal with anything but matching the paths
  73. sent to them. ``GitWildMatchPattern`` is the implementation of the actual
  74. pattern which internally gets converted into a regular expression. ``PathSpec``
  75. is a simple wrapper around a list of compiled patterns.
  76. To make things simpler, we can use the registered name for a pattern class
  77. instead of always having to provide a reference to the class itself. The
  78. ``GitWildMatchPattern`` class is registered as **gitwildmatch**::
  79. >>> spec = pathspec.PathSpec.from_lines('gitwildmatch', spec_text.splitlines())
  80. If we wanted to manually compile the patterns we can just do the following::
  81. >>> patterns = map(pathspec.patterns.GitWildMatchPattern, spec_text.splitlines())
  82. >>> spec = PathSpec(patterns)
  83. ``PathSpec.from_lines()`` is simply a class method which does just that.
  84. If you want to load the patterns from file, you can pass the file instance
  85. directly as well::
  86. >>> with open('patterns.list', 'r') as fh:
  87. >>> spec = pathspec.PathSpec.from_lines('gitwildmatch', fh)
  88. You can perform matching on a whole directory tree with::
  89. >>> matches = spec.match_tree('path/to/directory')
  90. Or you can perform matching on a specific set of file paths with::
  91. >>> matches = spec.match_files(file_paths)
  92. Or check to see if an individual file matches::
  93. >>> is_matched = spec.match_file(file_path)
  94. There is a specialized class, ``pathspec.GitIgnoreSpec``, which more closely
  95. implements the behavior of **gitignore**. This uses ``GitWildMatchPattern``
  96. pattern by default and handles some edge cases differently from the generic
  97. ``PathSpec`` class. ``GitIgnoreSpec`` can be used without specifying the pattern
  98. factory::
  99. >>> spec = pathspec.GitIgnoreSpec.from_lines(spec_text.splitlines())
  100. License
  101. -------
  102. *pathspec* is licensed under the `Mozilla Public License Version 2.0`_. See
  103. `LICENSE`_ or the `FAQ`_ for more information.
  104. In summary, you may use *pathspec* with any closed or open source project
  105. without affecting the license of the larger work so long as you:
  106. - give credit where credit is due,
  107. - and release any custom changes made to *pathspec*.
  108. .. _`Mozilla Public License Version 2.0`: http://www.mozilla.org/MPL/2.0
  109. .. _`LICENSE`: LICENSE
  110. .. _`FAQ`: http://www.mozilla.org/MPL/2.0/FAQ.html
  111. Source
  112. ------
  113. The source code for *pathspec* is available from the GitHub repo
  114. `cpburnz/python-pathspec`_.
  115. .. _`cpburnz/python-pathspec`: https://github.com/cpburnz/python-pathspec
  116. Installation
  117. ------------
  118. *pathspec* is available for install through `PyPI`_::
  119. pip install pathspec
  120. *pathspec* can also be built from source. The following packages will be
  121. required:
  122. - `build`_ (>=0.6.0)
  123. *pathspec* can then be built and installed with::
  124. python -m build
  125. pip install dist/pathspec-*-py3-none-any.whl
  126. .. _`PyPI`: http://pypi.python.org/pypi/pathspec
  127. .. _`build`: https://pypi.org/project/build/
  128. Documentation
  129. -------------
  130. Documentation for *pathspec* is available on `Read the Docs`_.
  131. .. _`Read the Docs`: https://python-path-specification.readthedocs.io
  132. Other Languages
  133. ---------------
  134. The related project `pathspec-ruby`_ (by *highb*) provides a similar library as
  135. a `Ruby gem`_.
  136. .. _`pathspec-ruby`: https://github.com/highb/pathspec-ruby
  137. .. _`Ruby gem`: https://rubygems.org/gems/pathspec
  138. Change History
  139. ==============
  140. 0.12.1 (2023-12-10)
  141. -------------------
  142. Bug fixes:
  143. - `Issue #84`_: PathSpec.match_file() returns None since 0.12.0.
  144. .. _`Issue #84`: https://github.com/cpburnz/python-pathspec/issues/84
  145. 0.12.0 (2023-12-09)
  146. -------------------
  147. Major changes:
  148. - Dropped support of EOL Python 3.7. See `Pull #82`_.
  149. API changes:
  150. - 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]]`.
  151. New features:
  152. - 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).
  153. - Added `pathspec.pattern.RegexPattern.pattern` attribute which stores the original, uncompiled pattern.
  154. Bug fixes:
  155. - `Issue #81`_: GitIgnoreSpec behaviors differ from git.
  156. - `Pull #83`_: Fix ReadTheDocs builds.
  157. Improvements:
  158. - Mark Python 3.12 as supported. See `Pull #82`_.
  159. - Improve test debugging.
  160. - Improve type hint on *on_error* parameter on `pathspec.pathspec.PathSpec.match_tree_entries()`.
  161. - Improve type hint on *on_error* parameter on `pathspec.util.iter_tree_entries()`.
  162. .. _`Issue #81`: https://github.com/cpburnz/python-pathspec/issues/81
  163. .. _`Pull #82`: https://github.com/cpburnz/python-pathspec/pull/82
  164. .. _`Pull #83`: https://github.com/cpburnz/python-pathspec/pull/83
  165. 0.11.2 (2023-07-28)
  166. -------------------
  167. New features:
  168. - `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.
  169. Bug fixes:
  170. - `Pull #76`_: Add edge case: patterns that end with an escaped space
  171. - `Issue #77`_/`Pull #78`_: Negate with caret symbol as with the exclamation mark.
  172. .. _`Pull #76`: https://github.com/cpburnz/python-pathspec/pull/76
  173. .. _`Issue #77`: https://github.com/cpburnz/python-pathspec/issues/77
  174. .. _`Pull #78`: https://github.com/cpburnz/python-pathspec/pull/78/
  175. .. _`Issue #80`: https://github.com/cpburnz/python-pathspec/issues/80
  176. 0.11.1 (2023-03-14)
  177. -------------------
  178. Bug fixes:
  179. - `Issue #74`_: Include directory should override exclude file.
  180. Improvements:
  181. - `Pull #75`_: Fix partially unknown PathLike type.
  182. - Convert `os.PathLike` to a string properly using `os.fspath`.
  183. .. _`Issue #74`: https://github.com/cpburnz/python-pathspec/issues/74
  184. .. _`Pull #75`: https://github.com/cpburnz/python-pathspec/pull/75
  185. 0.11.0 (2023-01-24)
  186. -------------------
  187. Major changes:
  188. - 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`_.
  189. Improvements:
  190. - `Issue #72`_/`Pull #73`_: Please consider switching the build-system to flit_core to ease setuptools bootstrap.
  191. .. _`flit_core.buildapi`: https://flit.pypa.io/en/latest/index.html
  192. .. _`Issue #72`: https://github.com/cpburnz/python-pathspec/issues/72
  193. .. _`Pull #73`: https://github.com/cpburnz/python-pathspec/pull/73
  194. 0.10.3 (2022-12-09)
  195. -------------------
  196. New features:
  197. - Added utility function `pathspec.util.append_dir_sep()` to aid in distinguishing between directories and files on the file-system. See `Issue #65`_.
  198. Bug fixes:
  199. - `Issue #66`_/`Pull #67`_: Package not marked as py.typed.
  200. - `Issue #68`_: Exports are considered private.
  201. - `Issue #70`_/`Pull #71`_: 'Self' string literal type is Unknown in pyright.
  202. Improvements:
  203. - `Issue #65`_: Checking directories via match_file() does not work on Path objects.
  204. .. _`Issue #65`: https://github.com/cpburnz/python-pathspec/issues/65
  205. .. _`Issue #66`: https://github.com/cpburnz/python-pathspec/issues/66
  206. .. _`Pull #67`: https://github.com/cpburnz/python-pathspec/pull/67
  207. .. _`Issue #68`: https://github.com/cpburnz/python-pathspec/issues/68
  208. .. _`Issue #70`: https://github.com/cpburnz/python-pathspec/issues/70
  209. .. _`Pull #71`: https://github.com/cpburnz/python-pathspec/pull/71
  210. 0.10.2 (2022-11-12)
  211. -------------------
  212. Bug fixes:
  213. - Fix failing tests on Windows.
  214. - Type hint on *root* parameter on `pathspec.pathspec.PathSpec.match_tree_entries()`.
  215. - Type hint on *root* parameter on `pathspec.pathspec.PathSpec.match_tree_files()`.
  216. - Type hint on *root* parameter on `pathspec.util.iter_tree_entries()`.
  217. - Type hint on *root* parameter on `pathspec.util.iter_tree_files()`.
  218. - `Issue #64`_: IndexError with my .gitignore file when trying to build a Python package.
  219. Improvements:
  220. - `Pull #58`_: CI: add GitHub Actions test workflow.
  221. .. _`Pull #58`: https://github.com/cpburnz/python-pathspec/pull/58
  222. .. _`Issue #64`: https://github.com/cpburnz/python-pathspec/issues/64
  223. 0.10.1 (2022-09-02)
  224. -------------------
  225. Bug fixes:
  226. - Fix documentation on `pathspec.pattern.RegexPattern.match_file()`.
  227. - `Pull #60`_: Remove redundant wheel dep from pyproject.toml.
  228. - `Issue #61`_: Dist failure for Fedora, CentOS, EPEL.
  229. - `Issue #62`_: Since version 0.10.0 pure wildcard does not work in some cases.
  230. Improvements:
  231. - Restore support for legacy installations using `setup.py`. See `Issue #61`_.
  232. .. _`Pull #60`: https://github.com/cpburnz/python-pathspec/pull/60
  233. .. _`Issue #61`: https://github.com/cpburnz/python-pathspec/issues/61
  234. .. _`Issue #62`: https://github.com/cpburnz/python-pathspec/issues/62
  235. 0.10.0 (2022-08-30)
  236. -------------------
  237. Major changes:
  238. - Dropped support of EOL Python 2.7, 3.5, 3.6. See `Issue #47`_.
  239. - 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`_.
  240. - Added `pathspec.GitIgnoreSpec` class (see new features).
  241. - Changed build system to `pyproject.toml`_ and build backend to `setuptools.build_meta`_ which may have unforeseen consequences.
  242. - Renamed GitHub project from `python-path-specification`_ to `python-pathspec`_. See `Issue #35`_.
  243. API changes:
  244. - Deprecated: `pathspec.util.match_files()` is an old function no longer used.
  245. - Deprecated: `pathspec.match_files()` is an old function no longer used.
  246. - Deprecated: `pathspec.util.normalize_files()` is no longer used.
  247. - Deprecated: `pathspec.util.iter_tree()` is an alias for `pathspec.util.iter_tree_files()`.
  248. - Deprecated: `pathspec.iter_tree()` is an alias for `pathspec.util.iter_tree_files()`.
  249. - Deprecated: `pathspec.pattern.Pattern.match()` is no longer used. Use or implement
  250. `pathspec.pattern.Pattern.match_file()`.
  251. New features:
  252. - 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.
  253. Bug fixes:
  254. - `Issue #19`_: Files inside an ignored sub-directory are not matched.
  255. - `Issue #41`_: Incorrectly (?) matches files inside directories that do match.
  256. - `Pull #51`_: Refactor deprecated unittest aliases for Python 3.11 compatibility.
  257. - `Issue #53`_: Symlink pathspec_meta.py breaks Windows.
  258. - `Issue #54`_: test_util.py uses os.symlink which can fail on Windows.
  259. - `Issue #55`_: Backslashes at start of pattern not handled correctly.
  260. - `Pull #56`_: pyproject.toml: include subpackages in setuptools config
  261. - `Issue #57`_: `!` doesn't exclude files in directories if the pattern doesn't have a trailing slash.
  262. Improvements:
  263. - Support Python 3.10, 3.11.
  264. - Modernize code to Python 3.7.
  265. - `Issue #52`_: match_files() is not a pure generator function, and it impacts tree_*() gravely.
  266. .. _`python-path-specification`: https://github.com/cpburnz/python-path-specification
  267. .. _`python-pathspec`: https://github.com/cpburnz/python-pathspec
  268. .. _`pyproject.toml`: https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
  269. .. _`setuptools.build_meta`: https://setuptools.pypa.io/en/latest/build_meta.html
  270. .. _`Issue #19`: https://github.com/cpburnz/python-pathspec/issues/19
  271. .. _`Issue #35`: https://github.com/cpburnz/python-pathspec/issues/35
  272. .. _`Issue #41`: https://github.com/cpburnz/python-pathspec/issues/41
  273. .. _`Issue #47`: https://github.com/cpburnz/python-pathspec/issues/47
  274. .. _`Pull #51`: https://github.com/cpburnz/python-pathspec/pull/51
  275. .. _`Issue #52`: https://github.com/cpburnz/python-pathspec/issues/52
  276. .. _`Issue #53`: https://github.com/cpburnz/python-pathspec/issues/53
  277. .. _`Issue #54`: https://github.com/cpburnz/python-pathspec/issues/54
  278. .. _`Issue #55`: https://github.com/cpburnz/python-pathspec/issues/55
  279. .. _`Pull #56`: https://github.com/cpburnz/python-pathspec/pull/56
  280. .. _`Issue #57`: https://github.com/cpburnz/python-pathspec/issues/57
  281. 0.9.0 (2021-07-17)
  282. ------------------
  283. - `Issue #44`_/`Pull #50`_: Raise `GitWildMatchPatternError` for invalid git patterns.
  284. - `Pull #45`_: Fix for duplicate leading double-asterisk, and edge cases.
  285. - `Issue #46`_: Fix matching absolute paths.
  286. - API change: `util.normalize_files()` now returns a `Dict[str, List[pathlike]]` instead of a `Dict[str, pathlike]`.
  287. - Added type hinting.
  288. .. _`Issue #44`: https://github.com/cpburnz/python-pathspec/issues/44
  289. .. _`Pull #45`: https://github.com/cpburnz/python-pathspec/pull/45
  290. .. _`Issue #46`: https://github.com/cpburnz/python-pathspec/issues/46
  291. .. _`Pull #50`: https://github.com/cpburnz/python-pathspec/pull/50
  292. 0.8.1 (2020-11-07)
  293. ------------------
  294. - `Pull #43`_: Add support for addition operator.
  295. .. _`Pull #43`: https://github.com/cpburnz/python-pathspec/pull/43
  296. 0.8.0 (2020-04-09)
  297. ------------------
  298. - `Issue #30`_: Expose what patterns matched paths. Added `util.detailed_match_files()`.
  299. - `Issue #31`_: `match_tree()` doesn't return symlinks.
  300. - `Issue #34`_: Support `pathlib.Path`\ s.
  301. - Add `PathSpec.match_tree_entries` and `util.iter_tree_entries()` to support directories and symlinks.
  302. - API change: `match_tree()` has been renamed to `match_tree_files()`. The old name `match_tree()` is still available as an alias.
  303. - API change: `match_tree_files()` now returns symlinks. This is a bug fix but it will change the returned results.
  304. .. _`Issue #30`: https://github.com/cpburnz/python-pathspec/issues/30
  305. .. _`Issue #31`: https://github.com/cpburnz/python-pathspec/issues/31
  306. .. _`Issue #34`: https://github.com/cpburnz/python-pathspec/issues/34
  307. 0.7.0 (2019-12-27)
  308. ------------------
  309. - `Pull #28`_: Add support for Python 3.8, and drop Python 3.4.
  310. - `Pull #29`_: Publish bdist wheel.
  311. .. _`Pull #28`: https://github.com/cpburnz/python-pathspec/pull/28
  312. .. _`Pull #29`: https://github.com/cpburnz/python-pathspec/pull/29
  313. 0.6.0 (2019-10-03)
  314. ------------------
  315. - `Pull #24`_: Drop support for Python 2.6, 3.2, and 3.3.
  316. - `Pull #25`_: Update README.rst.
  317. - `Pull #26`_: Method to escape gitwildmatch.
  318. .. _`Pull #24`: https://github.com/cpburnz/python-pathspec/pull/24
  319. .. _`Pull #25`: https://github.com/cpburnz/python-pathspec/pull/25
  320. .. _`Pull #26`: https://github.com/cpburnz/python-pathspec/pull/26
  321. 0.5.9 (2018-09-15)
  322. ------------------
  323. - Fixed file system error handling.
  324. 0.5.8 (2018-09-15)
  325. ------------------
  326. - Improved type checking.
  327. - Created scripts to test Python 2.6 because Tox removed support for it.
  328. - Improved byte string handling in Python 3.
  329. - `Issue #22`_: Handle dangling symlinks.
  330. .. _`Issue #22`: https://github.com/cpburnz/python-pathspec/issues/22
  331. 0.5.7 (2018-08-14)
  332. ------------------
  333. - `Issue #21`_: Fix collections deprecation warning.
  334. .. _`Issue #21`: https://github.com/cpburnz/python-pathspec/issues/21
  335. 0.5.6 (2018-04-06)
  336. ------------------
  337. - Improved unit tests.
  338. - Improved type checking.
  339. - `Issue #20`_: Support current directory prefix.
  340. .. _`Issue #20`: https://github.com/cpburnz/python-pathspec/issues/20
  341. 0.5.5 (2017-09-09)
  342. ------------------
  343. - Add documentation link to README.
  344. 0.5.4 (2017-09-09)
  345. ------------------
  346. - `Pull #17`_: Add link to Ruby implementation of *pathspec*.
  347. - Add sphinx documentation.
  348. .. _`Pull #17`: https://github.com/cpburnz/python-pathspec/pull/17
  349. 0.5.3 (2017-07-01)
  350. ------------------
  351. - `Issue #14`_: Fix byte strings for Python 3.
  352. - `Pull #15`_: Include "LICENSE" in source package.
  353. - `Issue #16`_: Support Python 2.6.
  354. .. _`Issue #14`: https://github.com/cpburnz/python-pathspec/issues/14
  355. .. _`Pull #15`: https://github.com/cpburnz/python-pathspec/pull/15
  356. .. _`Issue #16`: https://github.com/cpburnz/python-pathspec/issues/16
  357. 0.5.2 (2017-04-04)
  358. ------------------
  359. - Fixed change log.
  360. 0.5.1 (2017-04-04)
  361. ------------------
  362. - `Pull #13`_: Add equality methods to `PathSpec` and `RegexPattern`.
  363. .. _`Pull #13`: https://github.com/cpburnz/python-pathspec/pull/13
  364. 0.5.0 (2016-08-22)
  365. ------------------
  366. - `Issue #12`_: Add `PathSpec.match_file()`.
  367. - Renamed `gitignore.GitIgnorePattern` to `patterns.gitwildmatch.GitWildMatchPattern`.
  368. - Deprecated `gitignore.GitIgnorePattern`.
  369. .. _`Issue #12`: https://github.com/cpburnz/python-pathspec/issues/12
  370. 0.4.0 (2016-07-15)
  371. ------------------
  372. - `Issue #11`_: Support converting patterns into regular expressions without compiling them.
  373. - API change: Subclasses of `RegexPattern` should implement `pattern_to_regex()`.
  374. .. _`Issue #11`: https://github.com/cpburnz/python-pathspec/issues/11
  375. 0.3.4 (2015-08-24)
  376. ------------------
  377. - `Pull #7`_: Fixed non-recursive links.
  378. - `Pull #8`_: Fixed edge cases in gitignore patterns.
  379. - `Pull #9`_: Fixed minor usage documentation.
  380. - Fixed recursion detection.
  381. - Fixed trivial incompatibility with Python 3.2.
  382. .. _`Pull #7`: https://github.com/cpburnz/python-pathspec/pull/7
  383. .. _`Pull #8`: https://github.com/cpburnz/python-pathspec/pull/8
  384. .. _`Pull #9`: https://github.com/cpburnz/python-pathspec/pull/9
  385. 0.3.3 (2014-11-21)
  386. ------------------
  387. - Improved documentation.
  388. 0.3.2 (2014-11-08)
  389. ------------------
  390. - `Pull #5`_: Use tox for testing.
  391. - `Issue #6`_: Fixed matching Windows paths.
  392. - Improved documentation.
  393. - API change: `spec.match_tree()` and `spec.match_files()` now return iterators instead of sets.
  394. .. _`Pull #5`: https://github.com/cpburnz/python-pathspec/pull/5
  395. .. _`Issue #6`: https://github.com/cpburnz/python-pathspec/issues/6
  396. 0.3.1 (2014-09-17)
  397. ------------------
  398. - Updated README.
  399. 0.3.0 (2014-09-17)
  400. ------------------
  401. - `Pull #3`_: Fixed trailing slash in gitignore patterns.
  402. - `Pull #4`_: Fixed test for trailing slash in gitignore patterns.
  403. - Added registered patterns.
  404. .. _`Pull #3`: https://github.com/cpburnz/python-pathspec/pull/3
  405. .. _`Pull #4`: https://github.com/cpburnz/python-pathspec/pull/4
  406. 0.2.2 (2013-12-17)
  407. ------------------
  408. - Fixed setup.py.
  409. 0.2.1 (2013-12-17)
  410. ------------------
  411. - Added tests.
  412. - Fixed comment gitignore patterns.
  413. - Fixed relative path gitignore patterns.
  414. 0.2.0 (2013-12-07)
  415. ------------------
  416. - Initial release.