Skip to content

Commit 24e8172

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

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
python -m venv venv
2626
source venv/bin/activate
2727
pip install --upgrade pip
28-
pip install black
28+
pip install black build
2929
sudo pip install flake8
3030
sudo pip install pip-audit
3131
pip install -r requirements.txt -r requirements/dev.txt
@@ -40,7 +40,7 @@ jobs:
4040
working-directory: xero-python
4141

4242
- name: Build package
43-
run: python setup.py sdist
43+
run: python -m build
4444
working-directory: xero-python
4545

4646
- 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)