Commit baaa725 1 parent f12fc5d commit baaa725 Copy full SHA for baaa725
File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 64
64
- name : Publish to Github Packages
65
65
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
66
66
run : |
67
+ python -m pip install setuptools_scm
67
68
./set_dev_version.sh
68
69
echo "registry=https://npm.pkg.github.com/wq" > .npmrc
69
70
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
@@ -72,10 +73,10 @@ jobs:
72
73
npm publish
73
74
pip :
74
75
name : Python Package
75
- runs-on : ubuntu-20 .04
76
+ runs-on : ubuntu-22 .04
76
77
strategy :
77
78
matrix :
78
- python-version : ["3.10 "]
79
+ python-version : ["3.11 "]
79
80
node-version : [18]
80
81
steps :
81
82
- uses : actions/checkout@v2
@@ -92,10 +93,10 @@ jobs:
92
93
- name : Install dependencies
93
94
run : |
94
95
python -m pip install --upgrade pip
95
- python -m pip install wheel
96
+ python -m pip install build
96
97
- name : Build Python Wheel
97
98
run : |
98
- python setup.py bdist_wheel
99
+ python -m build
99
100
python -m pip install `ls dist/*.whl`
100
101
- uses : actions/upload-artifact@v3
101
102
with :
Original file line number Diff line number Diff line change 4
4
* .tgz
5
5
.eggs
6
6
/dist /
7
- /static /
8
7
/build /
9
- /wq /__init__.py
10
8
node_modules
11
9
version.js
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- VERSION=` python3 setup.py --version | \
2
+ set -e
3
+ VERSION=` python3 -m setuptools_scm | \
3
4
sed s/\. dev/-dev/ | \
4
5
sed s/+/./ | \
5
6
sed " s/\.d[0-9]\{8\}$//" | \
You can’t perform that action at this time.
0 commit comments