Skip to content

Commit

Permalink
hive-messaging: Renamed from hive-messagebus
Browse files Browse the repository at this point in the history
  • Loading branch information
gbenson committed Sep 11, 2024
1 parent 217a02c commit 13eec5b
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: hive-messagebus
name: hive-messaging

on:
push:
branches:
- main
- candidate
- hive-messagebus-candidate
- hive-messaging-candidate
tags:
- "hive-messagebus-[0-9]+.[0-9]+.[0-9]+"
- "hive-messaging-[0-9]+.[0-9]+.[0-9]+"

jobs:
build:
name: Build and test hive-messagebus
name: Build and test hive-messaging
runs-on: ubuntu-latest

defaults:
run:
working-directory: libs/hive-messagebus
working-directory: libs/hive-messaging

services:
rabbitmq:
Expand All @@ -42,8 +42,8 @@ jobs:
pip install --user -r ../../ci/requirements.txt
- name: Write __version__.py
if: startsWith(github.ref, 'refs/tags/hive-messagebus-')
run: ../../ci/write-version-py hive/messagebus
if: startsWith(github.ref, 'refs/tags/hive-messaging-')
run: ../../ci/write-version-py hive/messaging

- name: Lint
run: flake8
Expand All @@ -66,18 +66,18 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: libs/hive-messagebus/dist
path: libs/hive-messaging/dist

publish-to-pypi:
name: Publish hive-messagebus to PyPI
if: startsWith(github.ref, 'refs/tags/hive-messagebus-')
name: Publish hive-messaging to PyPI
if: startsWith(github.ref, 'refs/tags/hive-messaging-')
needs:
- build
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/hive-messagebus
url: https://pypi.org/p/hive-messaging

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
Expand Down
15 changes: 0 additions & 15 deletions libs/hive-messagebus/README.md

This file was deleted.

15 changes: 15 additions & 0 deletions libs/hive-messaging/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[![version badge]](https://pypi.org/project/hive-messaging/)

[version badge]: https://img.shields.io/pypi/v/hive-messaging?color=limegreen

# hive-messaging

Messaging layer for Hive.

## Installation

### With PIP

```sh
pip install hive-messaging
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "hive-messagebus"
name = "hive-messaging"
dynamic = ["version"]
authors = [{ name = "Gary Benson", email = "gary@gbenson.net" }]
description = "Messaging layer for Hive"
Expand All @@ -11,18 +11,18 @@ dependencies = [
]

[project.urls]
Homepage = "https://github.com/gbenson/hive/tree/main/libs/hive-messagebus"
Homepage = "https://github.com/gbenson/hive/tree/main/libs/hive-messaging"
Source = "https://github.com/gbenson/hive"

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools.dynamic]
version = {attr = "hive.messagebus.__version__.__version__"}
version = {attr = "hive.messaging.__version__.__version__"}

[tool.pytest.ini_options]
addopts = "--cov=hive.messagebus"
addopts = "--cov=hive.messaging"

[tool.coverage.run]
omit = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pika import PlainCredentials

from hive.config.testing import test_config_dir # noqa: F401
from hive.messagebus import DEFAULT_MESSAGE_BUS
from hive.messaging import DEFAULT_MESSAGE_BUS


@pytest.fixture
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime

from hive import messagebus as msgbus
from hive import messaging as msgbus


def test_send_to_queue(test_credentials):
Expand Down

0 comments on commit 13eec5b

Please sign in to comment.