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/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 476479fe9..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,9 +10,24 @@ 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", + "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 +52,8 @@ dependencies = [ cuda = [ "torch>=1.13.1,<3.0", ] + +[dependency-groups] dev = [ "pytest", "pytest-asyncio", @@ -47,23 +64,3 @@ dev = [ # more details can be found here 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