Skip to content

Commit

Permalink
Use setup.cfg and pyproject.toml
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Johnson <ben@binarylogic.com>
  • Loading branch information
binarylogic committed Apr 9, 2024
1 parent 0e747af commit b499c32
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 28 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
log_level = "DEBUG"
testpaths = "tests"
norecursedirs = ".git"
2 changes: 0 additions & 2 deletions pytest.ini

This file was deleted.

17 changes: 17 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[metadata]
name = trinnov-altitude
version = attr: trinnov_altitude.__version__
description = "Python client for interfacing with the Trinnov Altitude processor."
long_description = file: README.rst
long_description_content_type = text/markdown
url = https://github.com/binarylogic/py-trinnov-altitude
author = Ben Johnson
author_email = ben@binarylogic.com
licence = Apache 2.0
classifiers =
Intended Audience :: Developers
Programming Language :: Python :: 3
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Topic :: Software Development :: Libraries
Topic :: Home Automation
28 changes: 2 additions & 26 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
"""This module provides setup for pip."""
import setuptools

from setuptools import setup, find_packages

with open("README.md", "r") as fh:
long_description = fh.read()

setup(
name="trinnov-altitude",
version="0.1.0",
url="https://github.com/binarylogic/py-trinnov-altitude",
license="Apache 2.0",
author="Ben Johnson",
author_email="ben@binarylogic.com",
description="Python client for interfacing with the Trinnov Altitude processor",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
classifiers=[
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Home Automation",
],
)
setuptools.setup()
2 changes: 2 additions & 0 deletions trinnov_altitude/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
level = logging.getLevelName(log_level.upper())
log_format = "[L %(lineno)s - %(funcName)5s() ] %(message)s"
logging.basicConfig(level=level, format=log_format)

__version__ = "0.1.1"

0 comments on commit b499c32

Please sign in to comment.