django-pglocks 2.1.0__py3-none-any.whl
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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import warnings
|
|
2
|
+
|
|
3
|
+
warnings.warn(
|
|
4
|
+
"django-pglocks has been consolidated into django-pgware. "
|
|
5
|
+
"Install django-pgware (it imports as django_pg_utils) and update "
|
|
6
|
+
"imports to django_pg_utils.locks. "
|
|
7
|
+
"This compatibility package will not receive further updates.",
|
|
8
|
+
DeprecationWarning,
|
|
9
|
+
stacklevel=2,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
from django_pg_utils.locks import advisory_lock, async_advisory_lock
|
|
13
|
+
|
|
14
|
+
__all__ = ["advisory_lock", "async_advisory_lock"]
|
django_pglocks/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: django-pglocks
|
|
3
|
+
Version: 2.1.0
|
|
4
|
+
Summary: DEPRECATED — consolidated into django-pgware. Context managers for PostgreSQL advisory locks in Django.
|
|
5
|
+
Project-URL: Homepage, https://github.com/Xof/django-pglocks
|
|
6
|
+
Project-URL: Repository, https://github.com/Xof/django-pglocks
|
|
7
|
+
Author-email: Christophe Pettus <xof@thebuild.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE.md
|
|
10
|
+
Classifier: Development Status :: 7 - Inactive
|
|
11
|
+
Classifier: Environment :: Web Environment
|
|
12
|
+
Classifier: Framework :: Django
|
|
13
|
+
Classifier: Framework :: Django :: 4.2
|
|
14
|
+
Classifier: Framework :: Django :: 5.0
|
|
15
|
+
Classifier: Framework :: Django :: 5.1
|
|
16
|
+
Classifier: Framework :: Django :: 5.2
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Topic :: Software Development
|
|
25
|
+
Requires-Python: >=3.10
|
|
26
|
+
Requires-Dist: django-pgware>=1.0.0
|
|
27
|
+
Requires-Dist: django>=4.2
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
# django-pglocks
|
|
31
|
+
|
|
32
|
+
> **This package is deprecated.** Its functionality has moved to
|
|
33
|
+
> **[django-pgware](https://github.com/Xof/django-pgware)**.
|
|
34
|
+
>
|
|
35
|
+
> ```bash
|
|
36
|
+
> pip install django-pgware
|
|
37
|
+
> ```
|
|
38
|
+
>
|
|
39
|
+
> ```python
|
|
40
|
+
> # Old:
|
|
41
|
+
> from django_pglocks import advisory_lock
|
|
42
|
+
>
|
|
43
|
+
> # New (django-pgware installs as `django-pgware`, imports as `django_pg_utils`):
|
|
44
|
+
> from django_pg_utils import advisory_lock
|
|
45
|
+
> ```
|
|
46
|
+
>
|
|
47
|
+
> This package (2.1.0) is a final compatibility shim: it depends on `django-pgware`
|
|
48
|
+
> and re-exports `advisory_lock`/`async_advisory_lock` with a `DeprecationWarning`.
|
|
49
|
+
> It will not receive further updates.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
django_pglocks/__init__.py,sha256=MBi_3n7TlrkENvad0Unl2Gj_l7sR2Ba1VSxgaPd5Yhk,443
|
|
2
|
+
django_pglocks/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
django_pglocks-2.1.0.dist-info/METADATA,sha256=BeHjQhTnQuGMXSbUu1iimQwyVhTbw2Y3iLlTUwn3Q1o,1792
|
|
4
|
+
django_pglocks-2.1.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
5
|
+
django_pglocks-2.1.0.dist-info/licenses/LICENSE.md,sha256=x-yVSO54FMvsbjKMtUW2fTyhV7pSi-4_QBIH6C_dyhA,1072
|
|
6
|
+
django_pglocks-2.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright © 2013-2026 Christophe Pettus
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|