From dafca7065ddec7bfeda53b1b7d7951556a82e0f2 Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Tue, 4 Nov 2025 20:23:32 -0800 Subject: [PATCH 1/2] fix missing classifiers --- .github/workflows/e2e-subtensor-tests.yml | 7 ----- pyproject.toml | 34 ++++++++++++----------- 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/.github/workflows/e2e-subtensor-tests.yml b/.github/workflows/e2e-subtensor-tests.yml index 77568a1f4..6c71b18bb 100644 --- a/.github/workflows/e2e-subtensor-tests.yml +++ b/.github/workflows/e2e-subtensor-tests.yml @@ -84,12 +84,6 @@ jobs: with: python-version: 3.13 - - name: install dependencies - run: | - uv venv .venv - source .venv/bin/activate - uv pip install .[dev] - - name: Download Cached Docker Image uses: actions/download-artifact@v4 with: @@ -100,5 +94,4 @@ jobs: - name: Run tests run: | - source .venv/bin/activate uv run pytest ${{ matrix.test-file }} -s diff --git a/pyproject.toml b/pyproject.toml index 476479fe9..46a147878 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,22 @@ authors = [ license = { file = "LICENSE" } scripts = { btcli = "bittensor_cli.cli:main" } requires-python = ">=3.9,<3.15" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3 :: Only", + "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", + "Programming Language :: Python :: 3.14", + "Topic :: Scientific/Engineering", + "Topic :: Scientific/Engineering :: Mathematics", + "Topic :: Scientific/Engineering :: Artificial Intelligence", + "Topic :: Utilities" +] dependencies = [ "wheel", "async-substrate-interface>=1.5.2", @@ -37,6 +53,8 @@ dependencies = [ cuda = [ "torch>=1.13.1,<3.0", ] + +[dependency-groups] dev = [ "pytest", "pytest-asyncio", @@ -48,22 +66,6 @@ dev = [ homepage = "https://github.com/opentensor/btcli" Repository = "https://github.com/opentensor/btcli" -[tool.flit.metadata] -classifiers = [ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: End Users/Desktop", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Topic :: Scientific/Engineering", - "Topic :: Scientific/Engineering :: Mathematics", - "Topic :: Scientific/Engineering :: Artificial Intelligence", - "Topic :: Utilities" -] - [tool.setuptools] package-dir = {"bittensor_cli" = "bittensor_cli"} include-package-data = true From 2f75af0a29e6dea0c251927388e3f02913672cd4 Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Tue, 4 Nov 2025 20:36:37 -0800 Subject: [PATCH 2/2] migrate to flit --- MANIFEST.in | 1 - pyproject.toml | 13 ++++--------- 2 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 867b5bcef..000000000 --- a/MANIFEST.in +++ /dev/null @@ -1 +0,0 @@ -recursive-include bittensor_cli/src/bittensor/templates * diff --git a/pyproject.toml b/pyproject.toml index 46a147878..ab96878aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=70.0.0", "wheel"] -build-backend = "setuptools.build_meta" +requires = ["flit_core >=3.11,<4"] +build-backend = "flit_core.buildapi" [project] name = "bittensor-cli" @@ -10,13 +10,12 @@ readme = "README.md" authors = [ {name = "bittensor.com"} ] -license = { file = "LICENSE" } +license = "MIT" scripts = { btcli = "bittensor_cli.cli:main" } -requires-python = ">=3.9,<3.15" +requires-python = ">=3.9" classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: End Users/Desktop", - "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", @@ -65,7 +64,3 @@ dev = [ # more details can be found here homepage = "https://github.com/opentensor/btcli" Repository = "https://github.com/opentensor/btcli" - -[tool.setuptools] -package-dir = {"bittensor_cli" = "bittensor_cli"} -include-package-data = true