-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade build to pyproject.toml and packaging.python.org GH actions
- Loading branch information
Showing
3 changed files
with
146 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,36 @@ | ||
[build-system] | ||
requires = ["setuptools >= 40.6.0", "wheel"] | ||
requires = ["setuptools>=64", "setuptools_scm>=8"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
packages = ["controlmyspa"] | ||
|
||
[tool.setuptools.package-dir] | ||
controlmyspa = "." | ||
|
||
[tool.setuptools_scm] | ||
|
||
[project] | ||
name = "controlmyspa" | ||
dynamic = ["version"] | ||
authors = [ | ||
{ name="Aarno Aukia", email="aarno@aukia.com" }, | ||
] | ||
description = "Balboa ControlMySpa™ cloud API for hot tub spa systems" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
license={text = "MIT"} | ||
keywords=["Balboa", "Controlmyspa", "Whirlpool", "API"] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Developers", | ||
] | ||
dependencies = [ | ||
"requests>2" | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/arska/controlmyspa" | ||
Issues = "https://github.com/arska/controlmyspa/issues" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,3 @@ | ||
""" | ||
controlmyspa python module manifest | ||
""" | ||
from os.path import abspath, dirname, join | ||
from setuptools import setup | ||
import setuptools | ||
|
||
|
||
def read_file(filename): | ||
"""Get the contents of a file""" | ||
here = abspath(dirname(__file__)) | ||
with open(join(here, filename), encoding="utf-8") as file: | ||
return file.read() | ||
|
||
|
||
setup( | ||
name="controlmyspa", | ||
version_config={"dirty_template": "{tag}"}, | ||
description="Get metrics and control Balboa Controlmyspa whirlpool", | ||
long_description=read_file("README.md"), | ||
long_description_content_type="text/markdown", | ||
packages=["controlmyspa"], | ||
package_dir={"controlmyspa": "."}, | ||
keywords=["Balboa", "Controlmyspa", "Whirlpool", "API"], | ||
classifiers=[ | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
], | ||
url="https://github.com/arska/controlmyspa", | ||
author="Aarno Aukia", | ||
author_email="aarno@aukia.com", | ||
license="MIT", | ||
python_requires=">=3.6", | ||
extras_require={"dev": ["tox"]}, | ||
install_requires=["requests>=2"], | ||
setup_requires=["setuptools-git-versioning"], | ||
) | ||
setuptools.setup() |