crate 1.0.0.dev2__tar.gz → 1.0.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.
- crate-1.0.0.dev2/CHANGES.txt → crate-1.0.1/CHANGES.rst +32 -14
- {crate-1.0.0.dev2 → crate-1.0.1}/DEVELOP.rst +4 -4
- {crate-1.0.0.dev2 → crate-1.0.1}/PKG-INFO +3 -3
- {crate-1.0.0.dev2 → crate-1.0.1}/README.rst +1 -1
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/index.rst +2 -2
- {crate-1.0.0.dev2 → crate-1.0.1}/setup.py +1 -1
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate/client/__init__.py +2 -1
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate.egg-info/PKG-INFO +3 -3
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate.egg-info/SOURCES.txt +1 -3
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate.egg-info/requires.txt +1 -1
- crate-1.0.0.dev2/docs/backlog.rst +0 -6
- crate-1.0.0.dev2/src/crate/testing/__init__.py +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/CONTRIBUTING.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/LICENSE +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/MANIFEST.in +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/NOTICE +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/_extra/robots.txt +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/blobs.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/by-example/blob.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/by-example/client.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/by-example/connection.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/by-example/cursor.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/by-example/http.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/by-example/https.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/by-example/index.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/conf.py +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/connect.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/data-types.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/docutils.conf +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/getting-started.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/index-all.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/other-options.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/query.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/requirements.txt +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/docs/sqlalchemy.rst +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/pyproject.toml +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/requirements.txt +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/setup.cfg +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate/client/_pep440.py +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate/client/blob.py +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate/client/connection.py +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate/client/converter.py +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate/client/cursor.py +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate/client/exceptions.py +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate/client/http.py +0 -0
- {crate-1.0.0.dev2/src/crate → crate-1.0.1/src/crate/testing}/__init__.py +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate/testing/layer.py +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate/testing/util.py +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate.egg-info/dependency_links.txt +0 -0
- {crate-1.0.0.dev2 → crate-1.0.1}/src/crate.egg-info/top_level.txt +0 -0
@@ -5,13 +5,25 @@ Changes for crate
|
|
5
5
|
Unreleased
|
6
6
|
==========
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
8
|
+
|
9
|
+
2024/11/23 1.0.1
|
10
|
+
================
|
11
|
+
|
12
|
+
- Python: Fixed "implicit namespace packages" migration by omitting
|
13
|
+
``__init__.py`` from ``crate`` namespace package, see `PEP 420`_
|
14
|
+
and `Package Discovery and Namespace Package » Finding namespace packages`_.
|
15
|
+
|
16
|
+
|
17
|
+
2024/11/05 1.0.0
|
18
|
+
================
|
19
|
+
|
20
|
+
- BREAKING CHANGE: The SQLAlchemy dialect has been split off into
|
21
|
+
the `sqlalchemy-cratedb`_ package, see notice below.
|
22
|
+
- Feature: Returned Python ``datetime`` objects are now always timezone-aware,
|
23
|
+
using UTC by default.
|
24
|
+
It may be a breaking change for some users of the library that don't expect
|
25
|
+
to receive "aware" instead of "naive" Python ``datetime`` objects from now
|
26
|
+
on, i.e. instances with or without the ``tzinfo`` attribute set.
|
15
27
|
When no ``time_zone`` information is specified when creating a database
|
16
28
|
connection or cursor, ``datetime`` objects will now use Coordinated
|
17
29
|
Universal Time (UTC), like CrateDB is storing timestamp values in this
|
@@ -19,13 +31,11 @@ Unreleased
|
|
19
31
|
This update is coming from a deprecation of Python's
|
20
32
|
``datetime.utcfromtimestamp()``, which is effectively also phasing out
|
21
33
|
the use of "naive" timestamp objects in Python, in favor of using
|
22
|
-
timezone-aware objects, also to represent datetimes in UTC.
|
23
|
-
|
24
|
-
|
25
|
-
-
|
26
|
-
|
27
|
-
- Added ``error_trace`` to string representation of an Error to relay
|
28
|
-
server stacktraces into exception messages.
|
34
|
+
timezone-aware objects, also to represent datetimes in UTC.
|
35
|
+
- Feature: Configured DB API interface attribute ``threadsafety = 1``,
|
36
|
+
which signals "Threads may share the module, but not connections."
|
37
|
+
- Feature: Added ``error_trace`` to string representation of an Error,
|
38
|
+
to relay server stacktraces into exception messages.
|
29
39
|
- Refactoring: The module namespace ``crate.client.test_util`` has been
|
30
40
|
renamed to ``crate.testing.util``.
|
31
41
|
- Error handling: At two spots in cursor / value converter handling, where
|
@@ -35,7 +45,15 @@ Unreleased
|
|
35
45
|
namespaces" for the ``crate`` namespace package, see `PEP 420`_.
|
36
46
|
|
37
47
|
|
48
|
+
.. note::
|
49
|
+
|
50
|
+
For learning about the transition to `sqlalchemy-cratedb`_,
|
51
|
+
we recommend to read the enumeration of necessary migration steps
|
52
|
+
at `Migrate from crate.client to sqlalchemy-cratedb`_.
|
53
|
+
|
54
|
+
|
38
55
|
.. _Migrate from crate.client to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
|
56
|
+
.. _Package Discovery and Namespace Package » Finding namespace packages: https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#namespace-packages
|
39
57
|
.. _PEP 420: https://peps.python.org/pep-0420/
|
40
58
|
.. _sqlalchemy-cratedb: https://pypi.org/project/sqlalchemy-cratedb/
|
41
59
|
|
@@ -104,7 +104,7 @@ Renew certificates
|
|
104
104
|
==================
|
105
105
|
|
106
106
|
For conducting TLS connectivity tests, there are a few X.509 certificates at
|
107
|
-
`
|
107
|
+
`tests/assets/pki/*.pem`_. In order to renew them, follow the instructions
|
108
108
|
within the README file in this folder.
|
109
109
|
|
110
110
|
|
@@ -121,7 +121,7 @@ In the release branch:
|
|
121
121
|
|
122
122
|
- Update ``__version__`` in ``src/crate/client/__init__.py``
|
123
123
|
|
124
|
-
- Add a section for the new version in the ``CHANGES.
|
124
|
+
- Add a section for the new version in the ``CHANGES.rst`` file
|
125
125
|
|
126
126
|
- Commit your changes with a message like "prepare release x.y.z"
|
127
127
|
|
@@ -130,7 +130,7 @@ In the release branch:
|
|
130
130
|
- Create a tag by running ``./devtools/create_tag.sh``. This will trigger a
|
131
131
|
Github action which releases the new version to PyPi.
|
132
132
|
|
133
|
-
On
|
133
|
+
On branch ``main``:
|
134
134
|
|
135
135
|
- Update the release notes to reflect the release
|
136
136
|
|
@@ -171,7 +171,7 @@ nothing special you need to do to get the live docs to update.
|
|
171
171
|
.. _Read the Docs: http://readthedocs.org
|
172
172
|
.. _ReStructuredText: http://docutils.sourceforge.net/rst.html
|
173
173
|
.. _Sphinx: http://sphinx-doc.org/
|
174
|
-
..
|
174
|
+
.. _tests/assets/pki/*.pem: https://github.com/crate/crate-python/tree/main/tests/assets/pki
|
175
175
|
.. _tox: http://testrun.org/tox/latest/
|
176
176
|
.. _twine: https://pypi.python.org/pypi/twine
|
177
177
|
.. _useful command-line options for zope-testrunner: https://pypi.org/project/zope.testrunner/#some-useful-command-line-options-to-get-you-started
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: crate
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.1
|
4
4
|
Summary: CrateDB Python Client
|
5
5
|
Home-page: https://github.com/crate/crate-python
|
6
6
|
Author: Crate.io
|
@@ -39,7 +39,7 @@ Requires-Dist: backports.zoneinfo<1; python_version < "3.9" and extra == "test"
|
|
39
39
|
Requires-Dist: certifi; extra == "test"
|
40
40
|
Requires-Dist: createcoverage<2,>=1; extra == "test"
|
41
41
|
Requires-Dist: mypy<1.14; extra == "test"
|
42
|
-
Requires-Dist: poethepoet<0.
|
42
|
+
Requires-Dist: poethepoet<0.31; extra == "test"
|
43
43
|
Requires-Dist: ruff<0.8; extra == "test"
|
44
44
|
Requires-Dist: stopit<2,>=1.1.2; extra == "test"
|
45
45
|
Requires-Dist: tox<5,>=3; extra == "test"
|
@@ -56,7 +56,7 @@ CrateDB Python Client
|
|
56
56
|
:target: https://github.com/crate/crate-python/actions?workflow=Tests
|
57
57
|
:alt: Build status
|
58
58
|
|
59
|
-
.. image:: https://codecov.io/gh/crate/crate-python/branch/
|
59
|
+
.. image:: https://codecov.io/gh/crate/crate-python/branch/main/graph/badge.svg
|
60
60
|
:target: https://app.codecov.io/gh/crate/crate-python
|
61
61
|
:alt: Coverage
|
62
62
|
|
@@ -6,7 +6,7 @@ CrateDB Python Client
|
|
6
6
|
:target: https://github.com/crate/crate-python/actions?workflow=Tests
|
7
7
|
:alt: Build status
|
8
8
|
|
9
|
-
.. image:: https://codecov.io/gh/crate/crate-python/branch/
|
9
|
+
.. image:: https://codecov.io/gh/crate/crate-python/branch/main/graph/badge.svg
|
10
10
|
:target: https://app.codecov.io/gh/crate/crate-python
|
11
11
|
:alt: Coverage
|
12
12
|
|
@@ -174,12 +174,12 @@ The project is licensed under the terms of the Apache 2.0 license, like
|
|
174
174
|
.. _CrateDB source: https://github.com/crate/crate
|
175
175
|
.. _Create an issue: https://github.com/crate/crate-python/issues
|
176
176
|
.. _Dask: https://en.wikipedia.org/wiki/Dask_(software)
|
177
|
-
.. _development sandbox: https://github.com/crate/crate-python/blob/
|
177
|
+
.. _development sandbox: https://github.com/crate/crate-python/blob/main/DEVELOP.rst
|
178
178
|
.. _cratedb-examples repository: https://github.com/crate/cratedb-examples
|
179
179
|
.. _FIWARE QuantumLeap data historian: https://github.com/orchestracities/ngsi-timeseries-api
|
180
180
|
.. _GeoJSON: https://geojson.org/
|
181
181
|
.. _GeoJSON geometry objects: https://tools.ietf.org/html/rfc7946#section-3.1
|
182
|
-
.. _LICENSE: https://github.com/crate/crate-python/blob/
|
182
|
+
.. _LICENSE: https://github.com/crate/crate-python/blob/main/LICENSE
|
183
183
|
.. _managed on GitHub: https://github.com/crate/crate-python
|
184
184
|
.. _migrate to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
|
185
185
|
.. _pandas: https://en.wikipedia.org/wiki/Pandas_(software)
|
@@ -29,8 +29,9 @@ __all__ = [
|
|
29
29
|
|
30
30
|
# version string read from setup.py using a regex. Take care not to break the
|
31
31
|
# regex!
|
32
|
-
__version__ = "1.0.
|
32
|
+
__version__ = "1.0.1"
|
33
33
|
|
34
|
+
# codeql[py/unused-global-variable]
|
34
35
|
apilevel = "2.0"
|
35
36
|
threadsafety = 1
|
36
37
|
paramstyle = "qmark"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: crate
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.1
|
4
4
|
Summary: CrateDB Python Client
|
5
5
|
Home-page: https://github.com/crate/crate-python
|
6
6
|
Author: Crate.io
|
@@ -39,7 +39,7 @@ Requires-Dist: backports.zoneinfo<1; python_version < "3.9" and extra == "test"
|
|
39
39
|
Requires-Dist: certifi; extra == "test"
|
40
40
|
Requires-Dist: createcoverage<2,>=1; extra == "test"
|
41
41
|
Requires-Dist: mypy<1.14; extra == "test"
|
42
|
-
Requires-Dist: poethepoet<0.
|
42
|
+
Requires-Dist: poethepoet<0.31; extra == "test"
|
43
43
|
Requires-Dist: ruff<0.8; extra == "test"
|
44
44
|
Requires-Dist: stopit<2,>=1.1.2; extra == "test"
|
45
45
|
Requires-Dist: tox<5,>=3; extra == "test"
|
@@ -56,7 +56,7 @@ CrateDB Python Client
|
|
56
56
|
:target: https://github.com/crate/crate-python/actions?workflow=Tests
|
57
57
|
:alt: Build status
|
58
58
|
|
59
|
-
.. image:: https://codecov.io/gh/crate/crate-python/branch/
|
59
|
+
.. image:: https://codecov.io/gh/crate/crate-python/branch/main/graph/badge.svg
|
60
60
|
:target: https://app.codecov.io/gh/crate/crate-python
|
61
61
|
:alt: Coverage
|
62
62
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
CHANGES.
|
1
|
+
CHANGES.rst
|
2
2
|
CONTRIBUTING.rst
|
3
3
|
DEVELOP.rst
|
4
4
|
LICENSE
|
@@ -8,7 +8,6 @@ README.rst
|
|
8
8
|
pyproject.toml
|
9
9
|
requirements.txt
|
10
10
|
setup.py
|
11
|
-
docs/backlog.rst
|
12
11
|
docs/blobs.rst
|
13
12
|
docs/conf.py
|
14
13
|
docs/connect.rst
|
@@ -29,7 +28,6 @@ docs/by-example/cursor.rst
|
|
29
28
|
docs/by-example/http.rst
|
30
29
|
docs/by-example/https.rst
|
31
30
|
docs/by-example/index.rst
|
32
|
-
src/crate/__init__.py
|
33
31
|
src/crate.egg-info/PKG-INFO
|
34
32
|
src/crate.egg-info/SOURCES.txt
|
35
33
|
src/crate.egg-info/dependency_links.txt
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|