Skip to content

Commit a6f9c39

Browse files
committed
build and publish wheels
1 parent 3cb9ad7 commit a6f9c39

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/build-test-lint.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
pip install black
2929
sudo pip install flake8
3030
sudo pip install pip-audit
31+
sudo pip install build
3132
pip install -r requirements.txt -r requirements/dev.txt
3233
working-directory: xero-python
3334

@@ -40,7 +41,7 @@ jobs:
4041
working-directory: xero-python
4142

4243
- name: Build package
43-
run: python setup.py sdist
44+
run: python -m build
4445
working-directory: xero-python
4546

4647
- name: Set up Node environment

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python -m venv venv
3030
source venv/bin/activate
3131
pip install --upgrade pip
32-
sudo pip install twine
32+
sudo pip install build twine
3333
working-directory: xero-python
3434

3535
- name: Fetch Latest release number
@@ -43,7 +43,7 @@ jobs:
4343
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
4444

4545
- name: Build Package
46-
run: python setup.py sdist
46+
run: python -m build
4747
working-directory: xero-python
4848

4949
- name: Publish to PyPi

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
python-dateutil>=2.7
33
urllib3
44
certifi
5-
setuptools>=75.1.0

0 commit comments

Comments
 (0)