Upgraded build system to setup.cfg

master
B.J. Dweck 2020-10-20 00:26:43 +02:00
parent 64b9698010
commit 05c9ae8d6e
6 changed files with 34 additions and 30 deletions

View File

@ -18,6 +18,7 @@ DEB_DIR=$BUILD_DIR/$PROJECT
rm -rf "${BUILD_DIR:?}/"* rm -rf "${BUILD_DIR:?}/"*
pip3 install -r requirements.txt
python3 setup.py sdist python3 setup.py sdist
mkdir -p "$DEB_DIR/src/etc/torch" mkdir -p "$DEB_DIR/src/etc/torch"

3
pyproject.toml Normal file
View File

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

5
requirements.txt Normal file
View File

@ -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

View File

@ -1,3 +0,0 @@
setuptools>=50.3.2
stem>=1.8.0
paho-mqtt>=1.5.1

24
setup.cfg Normal file
View File

@ -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

View File

@ -1,30 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import setuptools import setuptools
import torch_agent
with open("README.md", "r") as fh: setuptools.setup()
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',
)