Browse Source

Upgraded build system to setup.cfg

master
B.J. Dweck 1 year ago
parent
commit
05c9ae8d6e
6 changed files with 34 additions and 30 deletions
  1. +1
    -0
      build-deb.sh
  2. +3
    -0
      pyproject.toml
  3. +5
    -0
      requirements.txt
  4. +0
    -3
      requires.txt
  5. +24
    -0
      setup.cfg
  6. +1
    -27
      setup.py

+ 1
- 0
build-deb.sh View File

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

+ 3
- 0
pyproject.toml View File

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

+ 5
- 0
requirements.txt 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

+ 0
- 3
requires.txt View File

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

+ 24
- 0
setup.cfg View File

@ -0,0 +1,24 @@
[metadata]
name = torch-agent
version = attrib: torch_agent.__version__
author = Benjamin Dweck
author_email = [email protected]
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

+ 1
- 27
setup.py View File

@ -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="[email protected]",
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()

Loading…
Cancel
Save