Browse Source

Can build torch-pub.exe and load config file

master
B.J. Dweck 11 months ago
parent
commit
9716f0199f
6 changed files with 81 additions and 28 deletions
  1. +3
    -0
      pyproject.toml
  2. +34
    -0
      setup.cfg
  3. +21
    -18
      setup.py
  4. +1
    -1
      test/test_integration.py
  5. +22
    -9
      torchsub/__init__.py

+ 3
- 0
pyproject.toml View File

@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

+ 34
- 0
setup.cfg View File

@ -0,0 +1,34 @@
# import setuptools
# import torchsub
#
# setuptools.setup(
# name="torchsub",
# version=torchsub.__version__,
# author='Benjamin Dweck',
# author_email='[email protected]',
# url='http://git.rudefox.io/bj/torch-subscriber-simple',
# packages=setuptools.find_packages(),
# entry_points={
# 'console_scripts': ['torch-sub=torchsub.torch_sub:main'],
# },
# classifiers=[
# "Programming Language :: Python :: 3",
# "License :: OSI Approved :: MIT License",
# ],
# )
[metadata]
name = torchsub
version = 0.0.1
[options]
packages = find:
install_requires =
paho-mqtt~=1.5.1
[options.entry_points]
console_scripts =
torch-sub=torchsub.torch_sub:main
[options.packages.find]
exclude=test

+ 21
- 18
setup.py View File

@ -1,19 +1,22 @@
from setuptools import setup
# import setuptools
# import torchsub
#
# setuptools.setup(
# name="torchsub",
# version=torchsub.__version__,
# author='Benjamin Dweck',
# author_email='[email protected]',
# url='http://git.rudefox.io/bj/torch-subscriber-simple',
# packages=setuptools.find_packages(),
# entry_points={
# 'console_scripts': ['torch-sub=torchsub.torch_sub:main'],
# },
# classifiers=[
# "Programming Language :: Python :: 3",
# "License :: OSI Approved :: MIT License",
# ],
# )
setup(
name='torch-subscriber-simple',
version='0.0.1',
packages=['torch_sub', 'torch_sub.test'],
url='http://git.rudefox.io/bj/torch-subscriber-simple',
license='MIT',
author='Benjamin Dweck',
author_email='[email protected]',
description='',
entry_points={
'console_scripts': ['torch-sub=torch_sub.torch_sub:main'],
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
],
)
import setuptools
setuptools.setup()

+ 1
- 1
test/test_integration.py View File

@ -10,7 +10,7 @@ from unittest.case import TestCase
import paho.mqtt.client as mqtt
from torch_sub import torch_sub
from torchsub import torch_sub
broker_hostname = "mqtt.example.com"
broker_port = 8883

torch_sub/__init__.py → torchsub/__init__.py View File


Loading…
Cancel
Save