Skip to content

Commit

Permalink
Refactor protopy package setup
Browse files Browse the repository at this point in the history
  • Loading branch information
noreplydev committed Oct 16, 2024
1 parent 41ffe73 commit 1781d7a
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/protopy/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build
protopy.egg-info
__pycache__
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import time
import json
import os
from protopy.agent.transporters.mqtt import on_message_factory
from protopy.agent.bifrost import register, pub_monitor, gen_action_endpoint
from .transporters.mqtt import on_message_factory
from .bifrost import register, pub_monitor, gen_action_endpoint

class ProtoAgent:
def __init__(self, agent_name):
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions packages/protopy/protofy/agent/transporters/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .mqtt import *
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from protopy.agent.bifrost import gen_action_endpoint
from ..bifrost import gen_action_endpoint

def on_message_factory(agent_name, handlers):
def on_message(client, userdata, message):
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 6 additions & 2 deletions packages/protopy/setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
from setuptools import setup, find_packages

setup(
name="protopy",
version="0.1",
name="protofy",
version="0.1.3",
packages=find_packages(),
install_requires=[
"paho-mqtt>=2.1.0",
"requests>=2.32.3"
],
)

0 comments on commit 1781d7a

Please sign in to comment.