Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3.2 - Fix breakage #46

Merged
merged 1 commit into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:

- run: |
mk python-release owner=vkottler \
repo=conntextual version=1.3.1
repo=conntextual version=1.3.2
if: |
matrix.python-version == '3.11'
&& matrix.system == 'ubuntu-latest'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
=====================================
generator=datazen
version=3.1.4
hash=3345fdf7fe9724212ccd25326d68100f
hash=a9a30cf429a319b9952628f5e462ff40
=====================================
-->

# conntextual ([1.3.1](https://pypi.org/project/conntextual/))
# conntextual ([1.3.2](https://pypi.org/project/conntextual/))

[![python](https://img.shields.io/pypi/pyversions/conntextual.svg)](https://pypi.org/project/conntextual/)
![Build Status](https://github.com/vkottler/conntextual/workflows/Python%20Package/badge.svg)
Expand Down
4 changes: 2 additions & 2 deletions conntextual/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================
# generator=datazen
# version=3.1.4
# hash=e28998387d41495187b30a46237285db
# hash=5a5bf6bcbb4a7b41af6399988074b404
# =====================================

"""
Expand All @@ -10,4 +10,4 @@

DESCRIPTION = "A network-application TUI using textual."
PKG_NAME = "conntextual"
VERSION = "1.3.1"
VERSION = "1.3.2"
6 changes: 1 addition & 5 deletions conntextual/ui/channel/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,14 @@
from conntextual.ui.channel.plot import Plot
from conntextual.ui.channel.selected import SelectedChannel
from conntextual.ui.channel.suggester import CommandSuggester
from conntextual.util import css_name

__all__ = ["ChannelEnvironmentDisplay"]
COLUMNS = ["type", "name", "value"]
DEFAULT_VALUE_COL_WIDTH = 22
STALE_THRESHOLD_NS = to_nanos(0.5)


def css_name(name: str) -> str:
"""Replace some characters that don't work in identifier values."""
return name.replace(".", "_")


class ChannelEnvironmentDisplay(Static):
"""A channel-environment interface element."""

Expand Down
3 changes: 2 additions & 1 deletion conntextual/ui/channel/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

# internal
from conntextual.ui.channel.suggester import CommandSuggester
from conntextual.util import css_name

MAX_LINES = 1000

Expand Down Expand Up @@ -86,7 +87,7 @@ def compose(self) -> ComposeResult:
"set ",
classes="command_input",
suggester=self.suggester,
id=f"{self.parent_name}-input",
id=f"{css_name(self.parent_name)}-input",
)
input_box.previous = ""
yield input_box
Expand Down
8 changes: 8 additions & 0 deletions conntextual/util.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""
A module containing miscellaneous.
"""


def css_name(name: str) -> str:
"""Replace some characters that don't work in identifier values."""
return name.replace(".", "_")
2 changes: 1 addition & 1 deletion local/variables/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
major: 1
minor: 3
patch: 1
patch: 2
entry: conntextual
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"

[project]
name = "conntextual"
version = "1.3.1"
version = "1.3.2"
description = "A network-application TUI using textual."
readme = "README.md"
requires-python = ">=3.11"
Expand Down
Loading