forked from Erotemic/ubelt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhatsnew.txt
171 lines (122 loc) · 5.01 KB
/
whatsnew.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
version: 0.3.0
---------------
* Removed PY2 and PY3. Use `six` instead.
* ub.import_module_from_path can now import modules within zipfiles
version: 0.2.1
---------------
* ub.dzip now accepts a backend dict class as a keyword arg
* OrderedSet.intersection can now handle a single argument
* Timerit `num` now defaults to 1
* Added function `print` to Timerit
version: 0.2.0
---------------
* Fixed timezone issue with negative timezones
* Moved internal __init__ autogeneration logic to new mkinit repo
* Network tests no longer run by default and require `--network`
version: 0.1.1
---------------
* added `ub.argmin` and `ub.argmax`
* `ub.Cacher` can now be used as a decorator.
* renamed `util_decor.py` to `util_memoize.py`
* added `key` argument to ub.unique and ub.unique_flags
* added ub.argunique
* `import_module_from_path` now prefers the path module when there are name conflicts
* Fixed repr2 precision with numpy scalars
* added dzip
version: 0.1.0
---------------
* simplified dynamic imports
* memoize_method now handles kwargs
* Added `inject_method` to util_func.py.
* Can now update ProgIter description on the fly
* Added methods to OrderedSet to complete the set API
(e.g. `intersection`, `difference`, etc...)
* Can now index into an `OrderedSet` using a slice
* Fixed issue with `OrderedSet.union` where it ignored `self`
* Fixed issue with `OrderedSet.union` where __eq__ and isdisjoint were wrong
* Add `appname` arg to grabdata
* Add `allsame`
* Add `extend` to ordered set API
* Fix issue with repr2 dictionaries with newlines in keys
* Fix issue with relative paths and symlink
* Increase tqdm compatibility with ProgIter
version: 0.0.44
---------------
* Add `ub.iter_window`
version: 0.0.43
---------------
* Removed `util_stress`, it was out of scope.
* Spelling: changed the `Timer.ellapsed` attribute to `Timer.elapsed`.
* Verbosity of `Timer` and `Timerit` now depends on if a label was
specified.
* `Timer.tic` now returns a reference to the `Timer` instance.
version: 0.0.42
---------------
FIX: bug in hash_data where negative integers did not work.
ENH: hash_data can now accept OrderedDict input
ENH: dict_union now returns OrderedDicts if the first argument is one
version: 0.0.41
---------------
ADD: OrderedSet / oset
ENH: Added base to `augpath`
ENH: Added symlink function that works on unix and windows*.
(*if use has symlink permissions, it works just like unix without caveats.
Otherwise ub.symlink falls back to using junctions and hard links,
which should still work mostly the same, except os.path.islink and
os.readlink will not work among other minor issues).
ENH: ub.delete now treats nested junctions as symlinks, unlike `shutil.rmtree`.
version: 0.0.40
---------------
ENH: Added numpy support to repr2
version: 0.0.39
---------------
ENH: Changed ub.Timerit.call API to return a reference to the Timerit object
instead of of the average seconds. Note this change is backwards incompatible.
version: 0.0.38
---------------
ADD: `ub.hash_data` and `ub.hash_file` for easy hashing of arbitrary structured
data and file.
ADD: `ub.dict_union` combines multiple dictionaries and returns the result.
ENH: `ub.Timerit` reports better measures of expected time.
ENH: new arg `total` to ub.chunks lets you specify how long an iterable is if
`len` is not available (for generators)
version: 0.0.37
---------------
ADD: Added ub.TempDir
ADD: Added ub.import_module_from_path
ADD: Added ub.import_module_from_name
ENH: can now choose ub.cmd tee backend (select or thread) on posix.
FIX: fixed unused argument `chunksize` in util_download
ENH: ProgIter now supports a more tqdm-like api
FIX: ub.cmd tests now work on windows
FIX: terminal colors now work on windows
ENH: Added standard deviation to timerit
ENH: Minor enhancements to ub.Cacher
DEP: Removed most of the static_analysis module. Use code in xdoctest for now. Note: some of this functionality may return as general utilities in the future, but the existing constructs were only needed for doctests, which are now done via xdoctest.
version: 0.0.34
---------------
FEATURE: Added ub.truepath
FEATURE: Added ub.iterable
FEATURE: Added util_func.py with ub.identity
FEATURE: Added util_download.py with ub.download and ub.grabdata
ENH: __init__ imports are now statically generated, this fixes
the random third party attributes (e.g. expanduser, Thread) that were
exposed in the __init__ file.
ENH: ProgIter now uses scientific notation when it is small
ENH: AutoOrderedDict now inherits from AutoDict
ENH: tests are now running using pytest and xdoctest
ENH: ub.cmd now uses thread based logging
FIX: Fixed many failing tests on windows
FIX: Small bug and documentation fixes.
ISSUE: ub.cmd does not work correctly on windows
ISSUE: some unicode formatting does not work correctly on windows
version: 0.0.33
---------------
FEATURE: Added ub.repr2 and ub.hzcat
FEATURE: Added ub.color_text
version: 0.0.31
---------------
FEATURE: Added ub.argflag and ub.argval
version: 0.0.28
---------------
FEATURE: Added ub.AutoDict and ub.AutoOrderedDict.