Skip to content

Commit

Permalink
uses build instead of invoking setup.py directly (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophkloeffel authored Oct 14, 2024
1 parent c65c94b commit 1461bd9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel requests
python3 -m pip install --upgrade pip
python3 -m pip install build
- name:
run: |
make package
- name: Archive wheel files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
path: "dist/trlc-*.whl"
Expand All @@ -40,7 +40,7 @@ jobs:
id-token: write
steps:
- name: Download wheel files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: wheels
path: dist
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ docs:

package:
@git clean -xdf
@python3 setup.py sdist bdist_wheel
@python3 -m build

upload-main: package
python3 -m twine upload --repository pypi dist/*
Expand Down
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ pycodestyle==2.12.0
pylint==3.2.4
coverage>=7.2
sphinx>=7.0
build>=1.2.0
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
"Topic :: Software Development",
],
entry_points={
"console_scripts": [
"trlc = trlc.trlc:main",
],
"console_scripts": ["trlc = trlc.trlc:main"],
},
)

0 comments on commit 1461bd9

Please sign in to comment.