Debian Codegraph @

CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 This document will serve as a record for past and future changes to seedir. It is being retroactively added after the version [0.2.0](https://github.com/earnestt1234/seedir/releases/tag/v0.2.0) release (so notes for prior releases will be less detailed).
4
5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
7 ## [0.5.1](https://github.com/earnestt1234/seedir/releases/tag/v0.5.1)
8
9 ### Added
10
11 - GitHub workflows for testing the code (on pushes and pulls to `main` and `dev`) and for uploading to PyPI (on new release).
12 - Created a pyproject.toml
13 - Add CONTRIBUTING.md for instructions on how to contribute to the project
14
15 ### Changed
16
17 - `seedir.fakedir.fakedir_fromstring` has been refactored. The logic is essentially the same, but there have been some simplifications and more comments have been added.
18
19 ## [0.5.0](https://github.com/earnestt1234/seedir/releases/tag/v0.5.0)
20
21 ### Added
22
23 - The `itemlimit` now accepts a 2-tuple as an argument, indicating a separate limit for folders and files (respectively).
24 - Added two parameters for handling errors when trying to list the children of a directory:
25 - `acceptable_listdir_errors`: One or more error types (`Exceptions`) which are ignored when occurring during a directory listing call. E.g., a permissions error.
26 - `denied_string`: String to add to follow directory entries for which the error was triggered.
27 - More test cases added
28
29 ### Changed
30
31 - The main algorithm for folder tree traversal has been refactored.
32 - The unit tests are now structured for pytest.
33 - `seedir.folderstructure.FolderStructure` is now an abstract class that cannot be directly instantiated. The functions that previously needed to be provided as arguments for the constructor must now be implemented as part of a subclass (see [getting started for an example](https://earnestt1234.github.io/seedir/seedir/index.html#getting-started))
34
35 ### Deprecated
36
37 - `slash` is now totally deprecated; use `folderend` instead.
38
39 ## [0.4.2](https://github.com/earnestt1234/seedir/releases/tag/v0.4.2)
40
41 ### Changed
42
43 - Syntax for accessing the CLI is updated. Now, you can do `seedir` or `python -m seedir`; `seedir.command_line` is renamed to enable this change.
44
45 ## [0.4.0](https://github.com/earnestt1234/seedir/releases/tag/v0.4.0)
46
47 ### Added
48
49 - pathlib Path objects now accepted by `sd.seedir()`. All other arguments apply as normal; arguments accepting callables (`mask` and `formatter`) will see pathlib objects.
50
51 ### Changed
52
53 - [emoji is now an optional dependency](https://github.com/earnestt1234/seedir/issues/12). It can be installed with `pip install seedir[emoji]`. An error is raised if the emoji style is requested without emoji installed.
54 - Reorganization of `folderstructure.py` and the `FolderStructure` class
55 - `folderstructurehelpers.py` has been removed. Most of the functions implemented there have become methods of `FolderStucture`.
56 - FolderStructure has been made more user-friendly, and can now be initialized with less functions.
57 - There are no longer separate "real dir"/"fake dir" functions for handing item filtering/sorting.
58
59 - Item inclusion is now prioritized above exclusion for include/exclude folders/files. The order of precedence now is mask (1), inclusion (2), exclusion (3). The code in this function was generally rewritten to be more concise (`FolderStructure._filter_items()`).
60 - The `~` in paths is now resolved, as well as `.` and `..`
61 - More examples in the getting started readme.
62
63 ### Fixed
64
65 - Typos in documentation
66 - Removal of IPYNB checkpoints
67
68 ### Removed
69
70 - The `SeedirError` has been removed. All uses have been replaced with more appropriate errors, mainly `ValueError` or `TypeError`
71
72 ## [0.3.1](https://github.com/earnestt1234/seedir/releases/tag/v0.3.1)
73
74 ### Added
75 - Additional functionality to the `formatter` parameter: can now dynamically set other seedir arguments as well as styling ones
76 - Added a `sticky_formatter` parameter for causing the formatter changes to continue through sub-directories.
77 - Additional test cases for `formatter`
78 - Add `folderend` & `fileend` tokens for setting characters at end of line. Default styles have been updated to include these.
79 - Additional documentation, specifically for `formatter` but also some smaller tweaks
80
81 ### Changed
82 - The CLI was revamped, now using argparse instead of getopts. More seedir options were added.
83 - The `seedir.printing.format_indent()` method now modifies dictionaries in place, rather than creating a new one
84 - the `FakeDir.realize()` method no longer creates a reference to unused file variable
85
86 ### Fixed
87 - Fix the words.txt file not being closed after opening 🤦
88
89 ### Deprecated
90
91 - `slash` is on warning for removal after addition of `folderend`.
92
93 ## [0.3.0](https://github.com/earnestt1234/seedir/releases/tag/v0.3.0) - 2021-12-20
94
95 ### Added
96
97 - [`formatter` parameter](https://github.com/earnestt1234/seedir/issues/4) for more customizable diagrams
98 - FakeDir methods for creating files/folders now return references to the objects created
99 - A `copy()` method for FakeDirs
100 - A `siblings()` method for FakeDirs
101
102 ### Changed
103
104 - Documentation updates
105 - Added code blocks to examples in docstrings
106 - replaced the "cheatsheet.png" image in the Getting Started section with a markdown link
107 - remove broken link to `FolderStructure` class in `seedir.realdir` module
108 - fixed some examples in docstrings and readmes
109 - in getting started, redo examples to omit empty folders (which are omitted by GitHub)
110 - replace `'\s'` with `' '` in `seedir.fakedir.fakedir_fromstring()`
111 - [Remove .DS_Store files](https://github.com/earnestt1234/seedir/pull/5) (thanks @[timweissenfels](https://github.com/timweissenfels))
112 - Reverted API doc style back to pdoc3 default
113
114 ### Fixed
115
116 - remove [call to `copy` method](https://github.com/earnestt1234/seedir/blob/09fbed86a356fa9b01588546e1e7dbda15812b49/seedir/fakedir.py#L417) in `Fakedir.delete()`, which prevented non-list arguments
117 - the `walk_apply` method is now applied to the calling folder, rather than just children
118
119 ## [0.2.0](https://github.com/earnestt1234/seedir/releases/tag/v0.2.0) - 2021-05-21
120
121 ### Added
122
123 - a new `folderstructure.py` module was added containing a single folder tree construction algorithm. This module is called for both real directories (`seedir.realdir.seedir()`) and fake directories (`seedir.fakedir.Fakedir.seedir()`). The code was also refactored to be less convoluted and more readable (and also more correct for some fringe cases)
124 - using `depthlimit=0` with a `beyond` string now produces just the root folder (this was incorrect before)
125 - with `beyond='content'`, empty folders are only shown when the `depthlimit` is crossed
126 - trailing separators or slashes no longer cause the name of the root folder to be empty
127 - A `folderstructurehelpers.py` module was also added to support the main folder structure algorithm.
128 - More unit tests were added.
129 - `name` parameter added to `seedir.fakedir.randomdir`
130 - Convert some arguments to `bool` or `int` in the command line tool
131
132 ### Changed
133
134 - The documentation was overhauled:
135 - The Jupyter Notebook examples file was removed, in favor of a `gettingstarted.md` file which is included in the main page of the API docs.
136 - The getting started README as well as the `seedir.fakedir` module are now `doctest`-able.
137 - New style added to the API docs.
138 - `seedir.seedir` module has been renamed to `seedir.realdir` to avoid some of my confusions
139 - added an `exampledir` to the `docs` folder for some examples
140 - Some changes to `seedir.fakedir.fakedir_fromstring` to handle some more failed cases.
141 - `words`, `FakeItem` removed from package namespace
142
143 ## [0.1.4](https://github.com/earnestt1234/seedir/releases/tag/v0.1.4) - 2021-03-01
144
145 ### Added
146
147 - Documentation was updated to include code formatting and within-package hyperlinks (thanks to pdoc)
148
149 ### Changed
150
151 - the variable name of the output of `seedir.seedir()` and `seedir.fakedir()` was renamed from `rfs` to `s`
152
153 ## [0.1.3](https://github.com/earnestt1234/seedir/releases/tag/v0.1.3) - 2020-12-31
154
155 ### Changed
156
157 - Code block examples added to docstrings, following [this issue](https://github.com/earnestt1234/seedir/issues/3)
158
159 ## [0.1.2](https://github.com/earnestt1234/seedir/releases/tag/v0.1.2) - 2020-11-28
160
161 ### Added
162
163 - [new `mask` parameter](https://github.com/earnestt1234/seedir/issues/1) for functionally filtering items, used by `seedir.seedir`, `seedir.FakeDir.seedir`, and `seedir.fakedir`
164 - test cases for the `mask` parameter
165
166 ### Changed
167
168 - Updated examples notebook
169 - Updated documentation
170
171 ## [0.1.1](https://github.com/earnestt1234/seedir/releases/tag/v0.1.1) - 2020-11-20
172
173 Initial public release of seedir 🎉