Skip to content

Commit baaa725

Browse files
committed
replace setup.py with pyproject.toml
1 parent f12fc5d commit baaa725

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/test.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
- name: Publish to Github Packages
6565
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
6666
run: |
67+
python -m pip install setuptools_scm
6768
./set_dev_version.sh
6869
echo "registry=https://npm.pkg.github.com/wq" > .npmrc
6970
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
@@ -72,10 +73,10 @@ jobs:
7273
npm publish
7374
pip:
7475
name: Python Package
75-
runs-on: ubuntu-20.04
76+
runs-on: ubuntu-22.04
7677
strategy:
7778
matrix:
78-
python-version: ["3.10"]
79+
python-version: ["3.11"]
7980
node-version: [18]
8081
steps:
8182
- uses: actions/checkout@v2
@@ -92,10 +93,10 @@ jobs:
9293
- name: Install dependencies
9394
run: |
9495
python -m pip install --upgrade pip
95-
python -m pip install wheel
96+
python -m pip install build
9697
- name: Build Python Wheel
9798
run: |
98-
python setup.py bdist_wheel
99+
python -m build
99100
python -m pip install `ls dist/*.whl`
100101
- uses: actions/upload-artifact@v3
101102
with:

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
*.tgz
55
.eggs
66
/dist/
7-
/static/
87
/build/
9-
/wq/__init__.py
108
node_modules
119
version.js

set_dev_version.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
2-
VERSION=`python3 setup.py --version | \
2+
set -e
3+
VERSION=`python3 -m setuptools_scm | \
34
sed s/\.dev/-dev/ | \
45
sed s/+/./ | \
56
sed "s/\.d[0-9]\{8\}$//" | \

0 commit comments

Comments
 (0)