risclog.sqlalchemy 8.0__tar.gz → 9.1__tar.gz

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.
Files changed (47) hide show
  1. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/CHANGES.rst +13 -1
  2. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/HACKING.rst +1 -1
  3. risclog_sqlalchemy-9.1/PKG-INFO +451 -0
  4. {risclog.sqlalchemy-8.0/doc → risclog_sqlalchemy-9.1/docs}/conf.py +8 -8
  5. risclog_sqlalchemy-9.1/pyproject.toml +107 -0
  6. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/cache.py +24 -19
  7. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/db.py +42 -43
  8. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/fixtures.py +1 -1
  9. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/interfaces.py +2 -2
  10. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/model.py +1 -2
  11. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/serializer.py +4 -4
  12. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/testing.py +7 -6
  13. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/testlayer.py +1 -2
  14. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/tests/conftest.py +11 -11
  15. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/tests/fixtures/alembic/env.py +2 -2
  16. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/tests/fixtures/alembic/versions/3f735078d5a8_foo.py +4 -3
  17. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/tests/test_cache.py +56 -56
  18. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/tests/test_db.py +48 -48
  19. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/tests/test_fixtures.py +6 -6
  20. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/tests/test_model.py +1 -1
  21. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/tests/test_serializer.py +11 -11
  22. risclog_sqlalchemy-9.1/src/risclog.sqlalchemy.egg-info/PKG-INFO +451 -0
  23. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog.sqlalchemy.egg-info/SOURCES.txt +6 -10
  24. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog.sqlalchemy.egg-info/requires.txt +2 -9
  25. risclog_sqlalchemy-9.1/uv.lock +881 -0
  26. risclog.sqlalchemy-8.0/PKG-INFO +0 -434
  27. risclog.sqlalchemy-8.0/pyproject.toml +0 -60
  28. risclog.sqlalchemy-8.0/requirements.txt +0 -3
  29. risclog.sqlalchemy-8.0/setup.py +0 -79
  30. risclog.sqlalchemy-8.0/src/risclog/__init__.py +0 -1
  31. risclog.sqlalchemy-8.0/src/risclog.sqlalchemy.egg-info/PKG-INFO +0 -434
  32. risclog.sqlalchemy-8.0/src/risclog.sqlalchemy.egg-info/namespace_packages.txt +0 -1
  33. risclog.sqlalchemy-8.0/src/risclog.sqlalchemy.egg-info/not-zip-safe +0 -1
  34. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/COPYRIGHT.rst +0 -0
  35. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/LICENSE.txt +0 -0
  36. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/README.rst +0 -0
  37. {risclog.sqlalchemy-8.0/doc → risclog_sqlalchemy-9.1/docs}/about.txt +0 -0
  38. {risclog.sqlalchemy-8.0/doc → risclog_sqlalchemy-9.1/docs}/api.txt +0 -0
  39. {risclog.sqlalchemy-8.0/doc → risclog_sqlalchemy-9.1/docs}/changes.txt +0 -0
  40. {risclog.sqlalchemy-8.0/doc → risclog_sqlalchemy-9.1/docs}/index.txt +0 -0
  41. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/setup.cfg +0 -0
  42. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/__init__.py +0 -0
  43. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/functions.py +0 -0
  44. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/tests/__init__.py +0 -0
  45. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog/sqlalchemy/tests/fixtures/alembic/script.py.mako +0 -0
  46. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog.sqlalchemy.egg-info/dependency_links.txt +0 -0
  47. {risclog.sqlalchemy-8.0 → risclog_sqlalchemy-9.1}/src/risclog.sqlalchemy.egg-info/top_level.txt +0 -0
@@ -2,7 +2,19 @@
2
2
  Change log for risclog.sqlalchemy
3
3
  =================================
4
4
 
5
- 8.0 (2025-02-12)
5
+ 9.1 (2026-10-09)
6
+ ================
7
+
8
+ - deps: Drop support for Python 3.10 and 3.11.
9
+
10
+
11
+ 9.0 (2026-08-24)
12
+ ================
13
+
14
+ - deps: Switch to uv, pyproject.toml and PEP-420 namespace package.
15
+
16
+
17
+ 8.0 (2025-12-02)
6
18
  ================
7
19
 
8
20
  - Add compatability to sqlalchemy 2. Break with compatability to sqlalchemy < 1.4.
@@ -24,7 +24,7 @@ Developing risclog.sqlalchemy
24
24
  Running tests
25
25
  =============
26
26
 
27
- Simply run `./pytest` in the root of the repository.
27
+ Simply run `uv run pytest` in the root of the repository.
28
28
 
29
29
 
30
30
  Documentation
@@ -0,0 +1,451 @@
1
+ Metadata-Version: 2.4
2
+ Name: risclog.sqlalchemy
3
+ Version: 9.1
4
+ Summary: Encapsulate sqlalchemy modelling infrastructure.
5
+ Author-email: gocept <mail@gocept.com>
6
+ License: ZPL 2.1
7
+ Project-URL: Homepage, https://github.com/gocept/risclog.sqlalchemy
8
+ Keywords: sqlalchemy,alembic,model,infrastructure,utility
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Framework :: Pyramid
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved
13
+ Classifier: License :: OSI Approved :: Zope Public License
14
+ Classifier: Natural Language :: English
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: Implementation
20
+ Classifier: Programming Language :: Python :: Implementation :: CPython
21
+ Classifier: Topic :: Database
22
+ Classifier: Topic :: Software Development :: Libraries
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Requires-Python: >=3.12
25
+ Description-Content-Type: text/x-rst
26
+ License-File: LICENSE.txt
27
+ Requires-Dist: SQLAlchemy>=1.4
28
+ Requires-Dist: alembic>=0.7
29
+ Requires-Dist: importlib_resources
30
+ Requires-Dist: pytz
31
+ Requires-Dist: setuptools>=84.0.0
32
+ Requires-Dist: transaction
33
+ Requires-Dist: zope.component>=4.0.1
34
+ Requires-Dist: zope.interface
35
+ Requires-Dist: zope.sqlalchemy>=1.3
36
+ Provides-Extra: test
37
+ Requires-Dist: gocept.testdb; extra == "test"
38
+ Provides-Extra: pyramid
39
+ Requires-Dist: pyramid; extra == "pyramid"
40
+ Dynamic: license-file
41
+
42
+ ==================
43
+ risclog.sqlalchemy
44
+ ==================
45
+
46
+ risclog.sqlalchemy encapsulates `sqlalchemy`_ modelling infrastructure. It
47
+ eases the setup of (multi-)database environments and the usage of sqlalchemy
48
+ models by providing often used functionality on special classes.
49
+
50
+ This package is compatible with Python version 3.7 up to 3.11.
51
+
52
+ .. _`sqlalchemy`: http://www.sqlalchemy.org
53
+
54
+ =============================
55
+ Developing risclog.sqlalchemy
56
+ =============================
57
+
58
+ :Author:
59
+ `gocept <http://gocept.com/>`_ <mail@gocept.com>
60
+
61
+ :Outdated Online documentation:
62
+ https://pythonhosted.org/risclog.sqlalchemy/
63
+
64
+ :PyPI page:
65
+ https://pypi.org/project/risclog.sqlalchemy/
66
+
67
+ :Issue tracker:
68
+ https://github.com/gocept/risclog.sqlalchemy/issues/
69
+
70
+ :Source code:
71
+ https://github.com/gocept/risclog.sqlalchemy
72
+
73
+ :Current change log:
74
+ https://github.com/gocept/risclog.sqlalchemy/blob/master/CHANGES.rst
75
+
76
+
77
+ Running tests
78
+ =============
79
+
80
+ Simply run `uv run pytest` in the root of the repository.
81
+
82
+
83
+ Documentation
84
+ =============
85
+
86
+ In order to build the Sphinx documentation, run the following command with a
87
+ python, where ``sphinx`` is installed::
88
+
89
+ $ python setup.py build_sphinx
90
+
91
+
92
+ In order to upload the Sphinx documentation, run the following command with a
93
+ python, where ``sphinx-pypi-upload`` is installed::
94
+
95
+ $ python setup.py upload_sphinx
96
+
97
+ =================================
98
+ Change log for risclog.sqlalchemy
99
+ =================================
100
+
101
+ 9.1 (2026-10-09)
102
+ ================
103
+
104
+ - deps: Drop support for Python 3.10 and 3.11.
105
+
106
+
107
+ 9.0 (2026-08-24)
108
+ ================
109
+
110
+ - deps: Switch to uv, pyproject.toml and PEP-420 namespace package.
111
+
112
+
113
+ 8.0 (2025-12-02)
114
+ ================
115
+
116
+ - Add compatability to sqlalchemy 2. Break with compatability to sqlalchemy < 1.4.
117
+
118
+
119
+ 7.2 (2024-04-19)
120
+ ================
121
+
122
+ - Add json encoder for `datetime.time` objects.
123
+
124
+
125
+ 7.1 (2024-03-22)
126
+ ================
127
+
128
+ - Fix `sqlalchemy` 1.3 compatibility in `Database.empty()`.
129
+
130
+
131
+ 7.0 (2024-03-21)
132
+ ================
133
+
134
+ - Introduce new `RoutingSession` method `execute_with_bind()` to execute
135
+ statements with a specific bind.
136
+ - `RoutingSession.using_bind()` is now deprecated and kept for backward
137
+ compatibility.
138
+ Instead of a new session instance, it now returns a shim that maps a
139
+ minimal subset of session methods to the original session instance.
140
+ This change was necessary because the previous implementation of creating
141
+ a new session instance and copying all the original session's state
142
+ proved unstable when used with SQLAlchemy 1.4. (One reason being the new
143
+ autobegin feature of sessions changing interactions with `zope.sqlalchemy`.)
144
+
145
+
146
+ 6.1 (2024-03-12)
147
+ ================
148
+
149
+ - Add json encoder for `uuid.UUID` objects.
150
+
151
+ - Add `risclog.sqlalchemy.interfaces.Deleted` event which is fired when an
152
+ object is deleted from the database.
153
+
154
+
155
+ 6.0 (2023-09-26)
156
+ ================
157
+
158
+ - Introduce `ModelCache` that reduces the number of DB requests when dealing
159
+ with huge amounts of sqlalchemy models.
160
+
161
+ - Allow specifying `keep_session` and `expire_on_commit`.
162
+
163
+ - Drop support for Python 3.6.
164
+
165
+ - Drop support for SQLAlchemy 1.0 and 1.1.
166
+
167
+ - Add support for Python 3.10 and 3.11.
168
+
169
+ - Restrict supported SQLALchemy to < 2.
170
+
171
+
172
+ 5.1 (2021-04-28)
173
+ ================
174
+
175
+ Features
176
+ --------
177
+
178
+ - Ensure compatibility with ``SQLAlchemy >= 1.4``.
179
+
180
+ Other changes
181
+ -------------
182
+
183
+ - Use github actions as CI.
184
+
185
+
186
+ 5.0 (2020-11-03)
187
+ ================
188
+
189
+ Backward incompatible changes
190
+ -----------------------------
191
+
192
+ - Drop support for Python 2.
193
+
194
+ - Drop the ``python2`` extra in ``setup.py``.
195
+
196
+ Features
197
+ --------
198
+
199
+ - No longer constraint to ``zope.component < 4.4.1`` (introduced in 3.0).
200
+
201
+
202
+ 4.0 (2020-02-17)
203
+ ================
204
+
205
+ Backward incompatible changes
206
+ -----------------------------
207
+
208
+ - Add support for ``zope.sqlalchemy >= 1.3`` by requiring at least this version.
209
+ (Older versions only supported ``zope.sqlalchemy <= 1.2``.)
210
+
211
+ - Drop support for PyPy, PyPy3, Python 3.4 and 3.5.
212
+
213
+ Other changes
214
+ -------------
215
+
216
+ - Add support for Python 3.7, 3.8, 3.9a3.
217
+
218
+ - Migrate to Github.
219
+
220
+
221
+ 3.0 (2018-01-16)
222
+ ================
223
+
224
+ - Drop support for Python 3.3.
225
+
226
+ - Reintroduce `RoutingSession.using_bind` as it is needed for executing queries
227
+ in multi database environments. It was removed in version `2.0`.
228
+
229
+ - Pin to ``zope.component < 4.4.1`` for now as we are using a private variable
230
+ from this package which has been removed lately.
231
+
232
+
233
+ 2.3 (2017-04-06)
234
+ ================
235
+
236
+ - Add the fixture ``.fixtures.database__selenium_testing`` to switch SQLAlchemy
237
+ session handling to into the same way the live server does it. Using this
238
+ fixture leads to `DetachedInstanceError` exceptions when using a database
239
+ object after the commit. It has to be fetched again from the database.
240
+
241
+ - Omit files from sdist which are related to buildout, testing or mercurial.
242
+
243
+ 2.2 (2017-01-12)
244
+ ================
245
+
246
+ - Support Python 3.6 and PyPy3.
247
+
248
+ - Fix `setup.py` to no longer use absolute paths.
249
+
250
+
251
+ 2.1 (2016-01-25)
252
+ ================
253
+
254
+ - Add compatibility to `pypy`.
255
+
256
+ Also removed explicit dependency to `psycopg2` as it's a PostgreSQL specific
257
+ dependency and not compatible with pypy. You will need `psycopg2cffi` in
258
+ order to run `risclog.sqlalchemy` with `pypy`.
259
+
260
+
261
+ 2.0 (2015-12-18)
262
+ ================
263
+
264
+ - Removed ``RoutingSession.using_bind``, require SQLAlchemy >= 1.0. (#13968)
265
+
266
+ - Updated API calls to alembic, require alembic >= 0.7. (#13968)
267
+
268
+ - Added documentation. (#13952)
269
+
270
+
271
+ 1.8 (2015-09-29)
272
+ ================
273
+
274
+ - Officially supporting Python 3.3 up to 3.5.
275
+
276
+ - Set maximum supported version numbers of ``alembic`` and ``SQLALchemy``
277
+ in `setup.py`
278
+
279
+
280
+ 1.7.1 (2014-10-15)
281
+ ==================
282
+
283
+ - Fix bug in testing mode detection so it works with sqlite, too.
284
+
285
+
286
+ 1.7 (2014-07-29)
287
+ ================
288
+
289
+ - Have ``.model.Object.create`` use the ``**kw`` constructor instead of
290
+ performing setattr itself.
291
+
292
+ - Made commit in db.empty optional.
293
+
294
+
295
+ 1.6 (2014-06-23)
296
+ ================
297
+
298
+ - Make test setup/teardown a bit more independent from the IDatabase utility.
299
+ - Made pyramid dependent code optional, because it is an optional requirement.
300
+
301
+
302
+ 1.5.1 (2014-03-31)
303
+ ==================
304
+
305
+ - Moved the project to bitbucket.org and prepared for public release.
306
+
307
+
308
+ 1.5 (2014-03-06)
309
+ ================
310
+
311
+ - Adjust test dependency for external projects, so pyramid is not required.
312
+ (#1458)
313
+
314
+
315
+ 1.4 (2014-01-27)
316
+ ================
317
+
318
+ - Do not truncate `spatial_ref_sys` when emptying entire database. (#13144)
319
+
320
+
321
+ 1.3 (2013-12-18)
322
+ ================
323
+
324
+ - Do not truncate `alembic_versions` when emptying entire database (using
325
+ `db.empty(engine)`)
326
+
327
+ - Fix create_defaults, so it can be used with multiple engines. (#1172)
328
+
329
+
330
+ 1.2 (2013-12-13)
331
+ ================
332
+
333
+ - Fixed setup.py
334
+
335
+
336
+ 1.1 (2013-12-13)
337
+ ================
338
+
339
+ - Allow ``.db.Database.empty()`` to not restart sequences. (This can be
340
+ necassary if the user is not allowed to call `ALTER SEQUENCE`.)
341
+
342
+ - Create factory for JSON renderer, so it can be customized via arguments.
343
+ (#1037)
344
+
345
+
346
+ 1.0 (2013-12-11)
347
+ ================
348
+
349
+ - CAUTION: Backward incompatible changes to provide multiple database
350
+ support. You need to change:
351
+
352
+ * Use the ``pyramid`` extra to use the pyramid serializers and call
353
+ ``.serializer.patch()`` by yourself.
354
+
355
+ * Changes in `.model`:
356
+
357
+ + Use `.model.declarative_base(cls)` to register a class as SQLALchemy
358
+ ``declarative_base``.
359
+
360
+ + Use your own declarative_base as `.model.Object` has been dropped.
361
+
362
+ + Create your own `ReflectedObject` as `.model.ReflectedObject` has been
363
+ dropped.
364
+
365
+ * Changes in `.db.Database`:
366
+
367
+ + To get an instance use `.db.get_database(testing=<True|False>)`.
368
+
369
+ + To register a database with the utility use ``register_engine``.
370
+
371
+ + ``empty`` now expects to get the engine as first argument and allows to
372
+ cadcade via (``cascade=True``).
373
+
374
+
375
+ + ``_verify`` was removed, use ``_verify_engine`` now.
376
+
377
+ + ``setup_utility`` was removed, it is now done in ``__init__``.
378
+
379
+ + To access former ``engine``` attribute use ``get_engine``.
380
+
381
+ + ``close`` was renamed to ``drop_engine``.
382
+
383
+ + To create all tables for a database use ``create_all``.
384
+
385
+ * Changes in `.testing`:
386
+
387
+ + ``setUpDB`` lost its first argument as it was not used.
388
+
389
+ + ``setUp`` now expects a dict or ``None``, see its docstring.
390
+
391
+ - Provide a way to insert default values for new created models. (#1137)
392
+
393
+ - Added support for schema migrations with alembic.
394
+
395
+ - Dropped support for `Python 2.6`.
396
+
397
+ - Added convenience functions to create `py.test` database fixtures.
398
+
399
+ - Declared `pyramid` as test dependency so tests only need the ``test``
400
+ extra.
401
+
402
+ - Declared testing dependency on `plone.testing[test]` since we use
403
+ `plone.testing.zca` which imports that ``test`` extra's dependencies.
404
+
405
+
406
+ 0.6 (2013-06-27)
407
+ ================
408
+
409
+ - Added convenience methods on `.db.Database` for teardown in tests.
410
+
411
+ - Updated to Buildout 2.
412
+
413
+ - Using py.test as testrunner.
414
+
415
+ - Added Python 3.3 compatibility.
416
+
417
+
418
+ 0.5 (2013-06-14)
419
+ ================
420
+
421
+ - Add Database methods for setting up a database utility and emptying tables.
422
+
423
+ - Add testing layer that sets up a database utility (requires plone.testing).
424
+
425
+
426
+ 0.4 (2013-06-07)
427
+ ================
428
+
429
+ - Add helper to provide transparent json encoding of sqlalchemy mapped objects,
430
+ dates, datetimes and decimals. (#39)
431
+
432
+ - Add `create_defaults` class method on base model which can be used to create
433
+ test data into the database.
434
+
435
+
436
+ 0.3 (2013-06-04)
437
+ ================
438
+
439
+ - Repair db setup for reflected and unreflected objects.
440
+
441
+
442
+ 0.2 (2013-06-04)
443
+ ================
444
+
445
+ - Add unreflected Object model next to the reflected Object model.
446
+
447
+
448
+ 0.1 (2013-06-03)
449
+ ================
450
+
451
+ initial release
@@ -4,20 +4,20 @@ import sys
4
4
  # If extensions (or modules to document with autodoc) are in another directory,
5
5
  # add these directories to sys.path here. If the directory is relative to the
6
6
  # documentation root, use os.path.abspath to make it absolute, like shown here.
7
- sys.path.insert(0, os.path.abspath('_themes'))
7
+ sys.path.insert(0, os.path.abspath("_themes"))
8
8
  extensions = []
9
9
 
10
- source_suffix = '.txt'
11
- master_doc = 'index'
12
- exclude_patterns = ['_build']
10
+ source_suffix = ".txt"
11
+ master_doc = "index"
12
+ exclude_patterns = ["_build"]
13
13
 
14
- project = u'risclog.sqlalchemy'
15
- copyright = u"""\
14
+ project = "risclog.sqlalchemy"
15
+ copyright = """\
16
16
  2011 - 2017 Zope Foundation and Contributors.
17
17
  <a href="http://sphinx.pocoo.org/">Sphinx</a>-Theme adapted from
18
18
  <a href="http://jinja.pocoo.org/docs/">Jinja</a>
19
19
  """
20
- version = '2.0' # XXX determine automatically
20
+ version = "2.0" # XXX determine automatically
21
21
  release = version
22
22
 
23
- pygments_style = 'sphinx'
23
+ pygments_style = "sphinx"
@@ -0,0 +1,107 @@
1
+ [build-system]
2
+ requires = ["setuptools>=84.0.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "risclog.sqlalchemy"
7
+ version = "9.1"
8
+ description = "Encapsulate sqlalchemy modelling infrastructure."
9
+ keywords = ["sqlalchemy", "alembic", "model", "infrastructure", "utility"]
10
+ requires-python = ">=3.12"
11
+ authors = [{ name = "gocept", email = "mail@gocept.com" }]
12
+ license = { text = "ZPL 2.1" }
13
+ urls = { Homepage = "https://github.com/gocept/risclog.sqlalchemy" }
14
+ dynamic = ["readme"]
15
+ classifiers = [
16
+ "Development Status :: 5 - Production/Stable",
17
+ "Framework :: Pyramid",
18
+ "Intended Audience :: Developers",
19
+ "License :: OSI Approved",
20
+ "License :: OSI Approved :: Zope Public License",
21
+ "Natural Language :: English",
22
+ "Operating System :: OS Independent",
23
+ "Programming Language :: Python",
24
+ "Programming Language :: Python :: 3",
25
+ "Programming Language :: Python :: 3.12",
26
+ "Programming Language :: Python :: Implementation",
27
+ "Programming Language :: Python :: Implementation :: CPython",
28
+ "Topic :: Database",
29
+ "Topic :: Software Development :: Libraries",
30
+ "Topic :: Software Development :: Libraries :: Python Modules",
31
+ ]
32
+ dependencies = [
33
+ "SQLAlchemy >= 1.4",
34
+ "alembic >= 0.7",
35
+ "importlib_resources",
36
+ "pytz",
37
+ "setuptools>=84.0.0",
38
+ "transaction",
39
+ "zope.component >= 4.0.1",
40
+ "zope.interface",
41
+ "zope.sqlalchemy >= 1.3",
42
+ ]
43
+
44
+ [project.optional-dependencies]
45
+ test = ["gocept.testdb"]
46
+ pyramid = ["pyramid"]
47
+
48
+ [dependency-groups]
49
+ dev = [
50
+ "risclog.sqlalchemy[test]",
51
+ "mock",
52
+ "pyramid",
53
+ "pytest",
54
+ "psycopg[binary]",
55
+ "greenlet",
56
+ "pytest-cov",
57
+ ]
58
+
59
+ [tool.setuptools]
60
+ include-package-data = true
61
+
62
+ [tool.setuptools.packages.find]
63
+ where = ["src"]
64
+ include = ["risclog.*"]
65
+
66
+ [tool.setuptools.dynamic]
67
+ readme = { file = ["README.rst", "HACKING.rst", "CHANGES.rst"], content-type = "text/x-rst" }
68
+
69
+ [tool.coverage.run]
70
+ relative_files = true
71
+ parallel = true
72
+ branch = true
73
+ source = ["risclog.sqlalchemy"]
74
+
75
+ [tool.coverage.paths]
76
+ source = ["src", ".pytest/*/site-packages"]
77
+
78
+ [tool.coverage.html]
79
+ directory = "coverage-report"
80
+
81
+ [tool.coverage.report]
82
+ precision = 2
83
+ show_missing = true
84
+ skip_covered = true
85
+ exclude_lines = [
86
+ # a more strict default pragma
87
+ "\\# pragma: no cover\\b",
88
+
89
+ # allow defensive code
90
+ "^\\s*raise AssertionError\\b",
91
+ "^\\s*raise NotImplementedError\\b",
92
+ "^\\s*return NotImplemented\\b",
93
+ "^\\s*raise$",
94
+
95
+ # typing-related code
96
+ "^if (False|TYPE_CHECKING):",
97
+ ": \\.\\.\\.(\\s*#.*)?$",
98
+ "^ +\\.\\.\\.$",
99
+ "-> ['\"]?NoReturn['\"]?:",
100
+ ]
101
+
102
+ [tool.ruff]
103
+ target-version = "py312"
104
+ line-length = 79
105
+
106
+ [tool.check-manifest]
107
+ ignore-bad-ideas = ["*.mo"]