Skip to content

Commit f06a488

Browse files
authored
Merge pull request #10 from opentensor/feat/thewhaleking/pyproject-toml
Update build/release to use pyproject.toml
2 parents ad195e7 + 67accb4 commit f06a488

File tree

2 files changed

+4
-36
lines changed

2 files changed

+4
-36
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
pip install build wheel twine
26+
pip install setuptools wheel twine build toml
2727
2828
- name: Build package
29-
run: python setup.py sdist bdist_wheel
29+
run: |
30+
python -m build --sdist --wheel --outdir dist/
3031
3132
- name: Check if package version already exists
3233
run: |
33-
PACKAGE_NAME=$(python setup.py --name)
34+
PACKAGE_NAME=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['name'])")
3435
PACKAGE_VERSION=${{ github.event.inputs.version }}
3536
if twine check dist/*; then
3637
if pip install $PACKAGE_NAME==$PACKAGE_VERSION; then

setup.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)