Skip to content

Commit 7dfbcad

Browse files
authored
Leave filelock logger as not set and add changelog (#108)
1 parent 77aba36 commit 7dfbcad

File tree

6 files changed

+195
-1
lines changed

6 files changed

+195
-1
lines changed

docs/changelog.rst

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
Changelog
2+
=========
3+
4+
v3.4.0 (2021-10-15)
5+
-------------------
6+
- Add changelog to the documentation :pr:`108` - by :user:`gaborbernat`
7+
- Leave the log level of the ``filelock`` logger as not set (previously was set to warning) :pr:`108` - by
8+
:user:`gaborbernat`
9+
10+
v3.3.0 (2021-10-03)
11+
-------------------
12+
- Drop python 2.7 and 3.5 support, add type hints :pr:`100` - by :user:`gaborbernat`
13+
- Document asyncio support - by :user:`gaborbernat`
14+
- fix typo :pr:`98` - by :user:`jugmac00`
15+
16+
v3.2.1 (2021-10-02)
17+
-------------------
18+
- Improve documentation
19+
- Changed logger name from ``filelock._api`` to ``filelock`` :pr:`97` - by :user:`hkennyv`
20+
21+
v3.2.0 (2021-09-30)
22+
-------------------
23+
- Raise when trying to acquire in R/O or missing folder :pr:`96` - by :user:`gaborbernat`
24+
- Move lock acquire/release log from INFO to DEBUG :pr:`95` - by :user:`gaborbernat`
25+
- Fix spelling and remove ignored flake8 checks - by :user:`gaborbernat`
26+
- Split main module :pr:`94` - by :user:`gaborbernat`
27+
- Move test suite to pytest :pr:`93` - by :user:`gaborbernat`
28+
29+
v3.1.0 (2021-09-27)
30+
-------------------
31+
- Update links for new home at tox-dev :pr:`88` - by :user:`hugovk`
32+
- Fixed link to LICENSE file :pr:`63` - by :user:`sharkwouter`
33+
- Adopt tox-dev organization best practices :pr:`87` - by :user:`gaborbernat`
34+
- Ownership moved from :user:`benediktschmitt` to the tox-dev organization (new primary maintainer :user:`gaborbernat`)
35+
36+
v3.0.12 (2019-05-18)
37+
--------------------
38+
- *fixed* setuptools and twine/warehouse error by making the license only 1 line long
39+
- *update* version for pypi upload
40+
- *fixed* python2 setup error
41+
- *added* test.py module to MANIFEST and made tests available in the setup commands :issue:`48`
42+
- *fixed* documentation thanks to :user:`AnkurTank` :issue:`49`
43+
- Update Trove classifiers for PyPI
44+
- test: Skip test_del on PyPy since it hangs
45+
46+
v3.0.10 (2018-11-01)
47+
--------------------
48+
- Fix README rendering on PyPI
49+
50+
v3.0.9 (2018-10-02)
51+
-------------------
52+
- :pr:`38` from cottsay/shebang
53+
- *updated* docs config for older sphinx compatibility
54+
- *removed* misleading shebang from module
55+
56+
v3.0.8 (2018-09-09)
57+
-------------------
58+
- *updated* use setuptools
59+
60+
v3.0.7 (2018-09-09)
61+
-------------------
62+
- *fixed* garbage collection (:issue:`37`)
63+
- *fix* travis ci badge (use rst not markdown)
64+
- *changed* travis uri
65+
66+
v3.0.6 (2018-08-22)
67+
-------------------
68+
- *clean up*
69+
- Fixed unit test for Python 2.7
70+
- Added Travis banner
71+
- Added Travis CI support
72+
73+
v3.0.5 (2018-04-26)
74+
-------------------
75+
- Corrected the prequel reference
76+
77+
v3.0.4 (2018-02-01)
78+
-------------------
79+
- *updated* README
80+
81+
v3.0.3 (2018-01-30)
82+
-------------------
83+
- *updated* readme
84+
85+
v3.0.1 (2018-01-30)
86+
-------------------
87+
- *updated* README (added navigation)
88+
- *updated* documentation :issue:`22`
89+
- *fix* the ``SoftFileLock`` test was influenced by the test for ``FileLock``
90+
- *undo* ``cb1d83d`` :issue:`31`
91+
92+
v3.0.0 (2018-01-05)
93+
-------------------
94+
- *updated* major version number due to :issue:`29` and :issue:`27`
95+
- *fixed* use proper Python3 ``reraise`` method
96+
- Attempting to clean up lock file on Unix after ``release``
97+
98+
v2.0.13 (2017-11-05)
99+
--------------------
100+
- *changed* The logger is now acquired when first needed. :issue:`24`
101+
102+
v2.0.12 (2017-09-02)
103+
--------------------
104+
- correct spelling mistake
105+
106+
v2.0.11 (2017-07-19)
107+
--------------------
108+
- *added* official support for python 2 :issue:`20`
109+
110+
v2.0.10 (2017-06-07)
111+
--------------------
112+
- *updated* readme
113+
114+
v2.0.9 (2017-06-07)
115+
-------------------
116+
- *updated* readme :issue:`19`
117+
- *added* example :pr:`16`
118+
- *updated* readthedocs url
119+
- *updated* change order of the examples (:pr:`16`)
120+
121+
v2.0.8 (2017-01-24)
122+
-------------------
123+
- Added logging
124+
- Removed unused imports
125+
126+
v2.0.7 (2016-11-05)
127+
-------------------
128+
- *fixed* :issue:`14` (moved license and readme file to ``MANIFEST``)
129+
130+
v2.0.6 (2016-05-01)
131+
-------------------
132+
- *changed* unlocking sequence to fix transient test failures
133+
- *changed* threads in tests so exceptions surface
134+
- *added* test lock file cleanup
135+
136+
v2.0.5 (2015-11-11)
137+
-------------------
138+
- Don't remove file after releasing lock
139+
- *updated* docs
140+
141+
v2.0.4 (2015-07-29)
142+
-------------------
143+
- *added* the new classes to ``__all__``
144+
145+
v2.0.3 (2015-07-29)
146+
-------------------
147+
- *added* The ``SoftFileLock`` is now always tested
148+
149+
v2.0.2 (2015-07-29)
150+
-------------------
151+
- The filelock classes are now always available and have been moved out of the
152+
``if msvrct: ... elif fcntl ... else`` clauses.
153+
154+
v2.0.1 (2015-06-13)
155+
-------------------
156+
- fixed :issue:`5`
157+
- *updated* test cases
158+
- *updated* documentation
159+
- *fixed* :issue:`2` which has been introduced with the lock counter
160+
161+
v2.0.0 (2015-05-25)
162+
-------------------
163+
- *added* default timeout (fixes :issue:`2`)
164+
165+
v1.0.3 (2015-04-22)
166+
-------------------
167+
- *added* new test case, *fixed* unhandled exception
168+
169+
v1.0.2 (2015-04-22)
170+
-------------------
171+
- *fixed* a timeout could still be thrown if the lock is already acquired
172+
173+
v1.0.1 (2015-04-22)
174+
-------------------
175+
- *fixed* :issue:`1`
176+
177+
v1.0.0 (2015-04-07)
178+
-------------------
179+
- *added* lock counter, *added* unittest, *updated* to version 1
180+
- *changed* filenames
181+
- *updated* version for pypi
182+
- *updated* README, LICENSE (changed format from md to rst)
183+
- *added* MANIFEST to gitignore
184+
- *added* os independent file lock ; *changed* setup.py for pypi
185+
- Update README.md
186+
- initial version

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@
5353
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
5454
nitpicky = True
5555
nitpick_ignore = []
56+
extlinks = {
57+
"issue": ("https://github.com/tox-dev/py-filelock/issues/%s", "issue #%s"),
58+
"pr": ("https://github.com/tox-dev/py-filelock/issues/%s", "PR #%s"),
59+
"user": ("https://github.com/%s", "@%s"),
60+
}

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,4 @@ to open a new issue 😊. There's no bad question, just a missed opportunity to
140140
self
141141
api
142142
license
143+
changelog

src/filelock/_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from ._error import Timeout
99

1010
_LOGGER = logging.getLogger("filelock")
11-
_LOGGER.setLevel(logging.DEBUG)
1211

1312

1413
# This is a helper class which is returned by :meth:`BaseFileLock.acquire` and wraps the lock to make sure __enter__

tests/test_filelock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def test_simple(lock_type: Type[BaseFileLock], tmp_path: Path, caplog: LogCaptur
3232
]
3333
assert [r.levelno for r in caplog.records] == [logging.DEBUG, logging.DEBUG, logging.DEBUG, logging.DEBUG]
3434
assert [r.name for r in caplog.records] == ["filelock", "filelock", "filelock", "filelock"]
35+
assert logging.getLogger("filelock").level == logging.NOTSET
3536

3637

3738
@contextmanager

whitelist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ eacces
77
eexist
88
enoent
99
exc
10+
extlinks
1011
favicon
1112
fcntl
1213
filelock
@@ -22,6 +23,7 @@ lockfile
2223
msvcrt
2324
nblck
2425
nitpicky
26+
notset
2527
param
2628
pathlib
2729
pygments

0 commit comments

Comments
 (0)