diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2cdfe5d..30ff144 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,14 +23,15 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install build wheel twine + pip install setuptools wheel twine build toml - name: Build package - run: python setup.py sdist bdist_wheel + run: | + python -m build --sdist --wheel --outdir dist/ - name: Check if package version already exists run: | - PACKAGE_NAME=$(python setup.py --name) + PACKAGE_NAME=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['name'])") PACKAGE_VERSION=${{ github.event.inputs.version }} if twine check dist/*; then if pip install $PACKAGE_NAME==$PACKAGE_VERSION; then diff --git a/setup.py b/setup.py deleted file mode 100644 index 1b84e79..0000000 --- a/setup.py +++ /dev/null @@ -1,33 +0,0 @@ -from setuptools import setup, find_packages - -setup( - name="async-substrate-interface", - version="1.0.0rc1", - description="Asyncio library for interacting with substrate.", - long_description=open("README.md").read(), - long_description_content_type="text/markdown", - author="Opentensor Foundation", - author_email="benhimes@opentensor.dev", - url="https://github.com/opentensor/async-substrate-interface", - packages=find_packages(), - install_requires=[ - "asyncstdlib~=3.13.0", - "bittensor-wallet>=2.1.3", - "bt-decode==0.4.0", - "scalecodec==1.2.11", - "websockets>=14.1", - "xxhash", - ], - python_requires=">=3.9,<3.13", - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "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 :: Only", - ], -)