Skip to content

Commit

Permalink
Use clobbing to hide pycrdt (#5)
Browse files Browse the repository at this point in the history
Co-authored-by: Frédéric Collonval <[email protected]>
  • Loading branch information
fcollonval and fcollonval authored Feb 20, 2025
1 parent b6a2ac3 commit f212915
Show file tree
Hide file tree
Showing 30 changed files with 20 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ Cargo.lock
/site
/dist
_pycrdt.*.pyd
_datalayer_pycrdt.*.pyd
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Version history

## 0.10.11

- Use clobbing to hide pycrdt

## 0.10.10

- Add transaction attribute to events.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pycrdt"
version = "0.10.10"
version = "0.10.11"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Homepage = "https://github.com/datalayer-externals/pycrdt"
[tool.maturin]
features = ["pyo3/extension-module"]
python-source = "python"
module-name = "datalayer_pycrdt._pycrdt"
module-name = "pycrdt._pycrdt"

[tool.ruff]
line-length = 100
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from functools import partial

import pytest
from datalayer_pycrdt import Array, Doc, Map, Text, Transaction
from pycrdt import Array, Doc, Map, Text


def callback(events, event):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_awareness.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pytest
from anyio import create_task_group, sleep
from datalayer_pycrdt import Awareness, Doc, Encoder, YMessageType, create_awareness_message, read_message
from pycrdt import Awareness, Doc, Encoder, YMessageType, create_awareness_message, read_message

pytestmark = pytest.mark.anyio

Expand Down
2 changes: 1 addition & 1 deletion tests/test_doc.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from functools import partial

import pytest
from datalayer_pycrdt import Array, Doc, Map, Text
from pycrdt import Array, Doc, Map, Text


def callback(events, event):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from functools import partial

import pytest
from datalayer_pycrdt import Array, Doc, Map, Text, Transaction
from pycrdt import Array, Doc, Map, Text


def callback(events, event):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Tuple

import pytest
from datalayer_pycrdt import Array, Doc, Text
from pycrdt import Array, Doc, Text
from pydantic import BaseModel, ValidationError


Expand Down
4 changes: 2 additions & 2 deletions tests/test_sync.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import pytest
from anyio import TASK_STATUS_IGNORED, create_memory_object_stream, create_task_group, sleep
from anyio.abc import TaskStatus
from datalayer_pycrdt import (
from pycrdt import (
Array,
Doc,
create_sync_message,
create_update_message,
handle_sync_message,
)
from datalayer_pycrdt._sync import Decoder, write_var_uint
from pycrdt._sync import Decoder, write_var_uint

pytestmark = pytest.mark.anyio

Expand Down
2 changes: 1 addition & 1 deletion tests/test_text.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re

import pytest
from datalayer_pycrdt import Array, Doc, Map, Text
from pycrdt import Array, Doc, Map, Text

hello = "Hello"
world = ", World"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest
from anyio import CapacityLimiter, to_thread
from datalayer_pycrdt import Doc, Text
from pycrdt import Doc, Text

pytestmark = pytest.mark.anyio

Expand Down
4 changes: 2 additions & 2 deletions tests/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import pytest
from anyio import create_task_group, fail_after, sleep, to_thread
from datalayer_pycrdt import Array, Doc, Map, Text
from datalayer_pycrdt._base import hash_origin
from pycrdt import Array, Doc, Map, Text
from pycrdt._base import hash_origin

if sys.version_info < (3, 11):
from exceptiongroup import ExceptionGroup # pragma: no cover
Expand Down
2 changes: 1 addition & 1 deletion tests/test_undo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from datalayer_pycrdt import Array, Doc, Map, Text, UndoManager
from pycrdt import Array, Doc, Map, Text, UndoManager


def undo_redo(data, undo_manager, val0, val1, val3):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_update.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datalayer_pycrdt import Doc, Map, Text, get_state, get_update, merge_updates
from pycrdt import Doc, Map, Text, get_state, get_update, merge_updates


def test_update():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_xml.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from datalayer_pycrdt import Array, Doc, Map, XmlElement, XmlFragment, XmlText
from pycrdt import Array, Doc, Map, XmlElement, XmlFragment, XmlText


def test_plain_text():
Expand Down

0 comments on commit f212915

Please sign in to comment.