diff --git a/build-deb.sh b/build-deb.sh index ae64d1d..4ee65f2 100755 --- a/build-deb.sh +++ b/build-deb.sh @@ -18,6 +18,7 @@ DEB_DIR=$BUILD_DIR/$PROJECT rm -rf "${BUILD_DIR:?}/"* +pip3 install -r requirements.txt python3 setup.py sdist mkdir -p "$DEB_DIR/src/etc/torch" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..07de284 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..22f8b86 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +pip~=20.2.4 +setuptools~=50.3.2 +stdeb3~=0.9.0.post2 +paho-mqtt~=1.5.1 +stem>=1.8.0 diff --git a/requires.txt b/requires.txt deleted file mode 100644 index 3844b4a..0000000 --- a/requires.txt +++ /dev/null @@ -1,3 +0,0 @@ -setuptools>=50.3.2 -stem>=1.8.0 -paho-mqtt>=1.5.1 \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..22aa3c9 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,24 @@ +[metadata] +name = torch-agent +version = attrib: torch_agent.__version__ +author = Benjamin Dweck +author_email = bjdweck@gmail.com +description = TORch: Illuminate the Way to your Node +url = https://git.rudefox.io/bj/torch-agent +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + +[options] +packages = find: +install_requires = + paho-mqtt~=1.5.1 + setuptools~=50.3.1 + pip~=20.2.3 + stem + +[options.entry_points] +console_scripts = torch-agent=torch_agent.torch_agent:main + +[options.packages.find] +exclude=test diff --git a/setup.py b/setup.py index 4db95e5..f187f2c 100644 --- a/setup.py +++ b/setup.py @@ -1,30 +1,4 @@ #!/usr/bin/env python3 import setuptools -import torch_agent -with open("README.md", "r") as fh: - long_description = fh.read() - -setuptools.setup( - name="torch-agent", - version=torch_agent.__version__, - author="B.J. Dweck", - author_email="bjdweck@gmail.com", - description="TORch: Illuminate the Way to your Node", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://git.rudefox.io/bj/torch-agent", - packages=setuptools.find_packages(), - install_requires=[ - 'stem', - 'paho-mqtt>=1.5.1', - ], - entry_points={ - 'console_scripts': ['torch-agent=torch_agent.torch_agent:main'], - }, - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - ], - python_requires='>=3.6', -) +setuptools.setup()