From bd9fd81b17b10e006931a3471e1e5ebc9a0fcaba Mon Sep 17 00:00:00 2001 From: Upstream Data Date: Mon, 20 Jan 2025 08:54:14 -0700 Subject: [PATCH] version: bump version number --- .pre-commit-config.yaml | 9 +++++- poetry.lock | 24 +++++++------- pyasic/__init__.py | 4 +++ pyproject.toml | 72 ++++++++++++++++++++++++++++++----------- 4 files changed, 77 insertions(+), 32 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e389be8c..ce0f328f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,14 @@ ci: skip: - - unittest + - poetry-lock + - pytest repos: +- repo: https://github.com/python-poetry/poetry + rev: 2.0.1 + hooks: + - id: poetry-check + - id: poetry-lock + - id: poetry-install - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: diff --git a/poetry.lock b/poetry.lock index 360643b1..f9e2bc7e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.0.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.0.1 and should not be changed by hand. [[package]] name = "aiofiles" @@ -457,14 +457,14 @@ dev = ["flake8", "markdown", "twine", "wheel"] [[package]] name = "griffe" -version = "1.5.4" +version = "1.5.5" description = "Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API." optional = false python-versions = ">=3.9" groups = ["docs"] files = [ - {file = "griffe-1.5.4-py3-none-any.whl", hash = "sha256:ed33af890586a5bebc842fcb919fc694b3dc1bc55b7d9e0228de41ce566b4a1d"}, - {file = "griffe-1.5.4.tar.gz", hash = "sha256:073e78ad3e10c8378c2f798bd4ef87b92d8411e9916e157fd366a17cc4fd4e52"}, + {file = "griffe-1.5.5-py3-none-any.whl", hash = "sha256:2761b1e8876c6f1f9ab1af274df93ea6bbadd65090de5f38f4cb5cc84897c7dd"}, + {file = "griffe-1.5.5.tar.gz", hash = "sha256:35ee5b38b93d6a839098aad0f92207e6ad6b70c3e8866c08ca669275b8cba585"}, ] [package.dependencies] @@ -846,14 +846,14 @@ pyyaml = ">=5.1" [[package]] name = "mkdocs-material" -version = "9.5.49" +version = "9.5.50" description = "Documentation that simply works" optional = false python-versions = ">=3.8" groups = ["docs"] files = [ - {file = "mkdocs_material-9.5.49-py3-none-any.whl", hash = "sha256:c3c2d8176b18198435d3a3e119011922f3e11424074645c24019c2dcf08a360e"}, - {file = "mkdocs_material-9.5.49.tar.gz", hash = "sha256:3671bb282b4f53a1c72e08adbe04d2481a98f85fed392530051f80ff94a9621d"}, + {file = "mkdocs_material-9.5.50-py3-none-any.whl", hash = "sha256:f24100f234741f4d423a9d672a909d859668a4f404796be3cf035f10d6050385"}, + {file = "mkdocs_material-9.5.50.tar.gz", hash = "sha256:ae5fe16f3d7c9ccd05bb6916a7da7420cf99a9ce5e33debd9d40403a090d5825"}, ] [package.dependencies] @@ -870,7 +870,7 @@ regex = ">=2022.4" requests = ">=2.26,<3.0" [package.extras] -git = ["mkdocs-git-committers-plugin-2 (>=1.1,<2.0)", "mkdocs-git-revision-date-localized-plugin (>=1.2.4,<2.0)"] +git = ["mkdocs-git-committers-plugin-2 (>=1.1,<3)", "mkdocs-git-revision-date-localized-plugin (>=1.2.4,<2.0)"] imaging = ["cairosvg (>=2.6,<3.0)", "pillow (>=10.2,<11.0)"] recommended = ["mkdocs-minify-plugin (>=0.7,<1.0)", "mkdocs-redirects (>=1.2,<2.0)", "mkdocs-rss-plugin (>=1.6,<2.0)"] @@ -1674,14 +1674,14 @@ zstd = ["zstandard (>=0.18.0)"] [[package]] name = "virtualenv" -version = "20.28.1" +version = "20.29.1" description = "Virtual Python Environment builder" optional = false python-versions = ">=3.8" groups = ["dev"] files = [ - {file = "virtualenv-20.28.1-py3-none-any.whl", hash = "sha256:412773c85d4dab0409b83ec36f7a6499e72eaf08c80e81e9576bca61831c71cb"}, - {file = "virtualenv-20.28.1.tar.gz", hash = "sha256:5d34ab240fdb5d21549b76f9e8ff3af28252f5499fb6d6f031adac4e5a8c5329"}, + {file = "virtualenv-20.29.1-py3-none-any.whl", hash = "sha256:4e4cb403c0b0da39e13b46b1b2476e505cb0046b25f242bee80f62bf990b2779"}, + {file = "virtualenv-20.29.1.tar.gz", hash = "sha256:b8b8970138d32fb606192cb97f6cd4bb644fa486be9308fb9b63f81091b5dc35"}, ] [package.dependencies] @@ -1760,4 +1760,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.1" python-versions = "^3.9" -content-hash = "c0aa00dd5f3b52bbac53eb765be2bca2ec7f9429e835d6b2fe6bf207f2f39974" +content-hash = "a0d1e4d454da0d9d3c246a4f1047e804db5726c175071d95b7007e88689cdbf2" diff --git a/pyasic/__init__.py b/pyasic/__init__.py index 5d9b4608..cb544972 100644 --- a/pyasic/__init__.py +++ b/pyasic/__init__.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and - # limitations under the License. - # ------------------------------------------------------------------------------ +import importlib.metadata + from pyasic import settings from pyasic.config import MinerConfig from pyasic.data import MinerData @@ -22,3 +24,5 @@ from pyasic.network import MinerNetwork from pyasic.rpc import * from pyasic.ssh import * from pyasic.web import * + +__version__ = importlib.metadata.version("pyasic") diff --git a/pyproject.toml b/pyproject.toml index d0d9b43d..0113bf3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,23 +1,57 @@ -[tool.poetry] +[project] name = "pyasic" -version = "0.69.2" -description = "A simplified and standardized interface for Bitcoin ASICs." -authors = ["UpstreamData "] -repository = "https://github.com/UpstreamData/pyasic" -documentation = "https://pyasic.readthedocs.io/en/latest/" -readme = "README.md" +version = "0.70.0" -[tool.poetry.dependencies] -python = "^3.9" -httpx = ">=0.26.0" -asyncssh = ">=2.17.0" -passlib = ">=1.7.4" -pyaml = ">=23.12.0" -tomli = { version = ">=2.0.1", python = "<3.11" } -tomli-w = "^1.0.0" -aiofiles = ">=23.2.1" -betterproto = "2.0.0b7" -pydantic = "^2.9.2" +description = "A simplified and standardized interface for Bitcoin ASICs." +authors = [{name = "UpstreamData", email = "brett@upstreamdata.ca"}] +repository = "https://github.com/UpstreamData/pyasic" + +homepage = "https://docs.pyasic.org" +source = "https://github.com/UpstreamData/pyasic" +documentation = "https://docs.pyasic.org" +issues = "https://github.com/UpstreamData/pyasic/issues" +readme = {file = "README.md", content-type = "text/markdown"} +license = "Apache 2.0" +license-files = ["LICEN[CS]E.*"] + +keywords = [ + "python", + "asic", + "bitcoin", + "whatsminer", + "antminer", + "braiins-os", + "vnish", + "luxos" +] +classifiers = [ + "Development Status :: 4 - Beta", + + "Intended Audience :: Developers", + + "License :: OSI Approved :: Apache Software License", + + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", +] + +requires-python = "^3.9" +dependencies = [ + "httpx>=0.26.0", + "asyncssh>=2.17.0", + "passlib>=1.7.4", + "pyaml>=23.12.0", + "tomli (>=2.2.1,<3.0.0) ; python_version < '3.11'", + "tomli-w>=1.0.0", + "aiofiles>=23.2.1", + "betterproto==2.0.0b7", + "pydantic>=2.9.2", +] [tool.poetry.group.dev] optional = true @@ -36,7 +70,7 @@ mkdocs-material = "^9.5.39" [build-system] -requires = ["poetry-core>=1.0.0"] +requires = ["poetry-core>=2.0.0"] build-backend = "poetry.core.masonry.api" [tool.isort]