diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index c5f5a38..6e73964 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -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" @@ -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 diff --git a/Makefile b/Makefile index 7c6516c..062cc6e 100644 --- a/Makefile +++ b/Makefile @@ -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/* diff --git a/requirements_dev.txt b/requirements_dev.txt index 9b2fce1..85117e9 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -3,3 +3,4 @@ pycodestyle==2.12.0 pylint==3.2.4 coverage>=7.2 sphinx>=7.0 +build>=1.2.0 diff --git a/setup.py b/setup.py index 5b843df..758b94d 100644 --- a/setup.py +++ b/setup.py @@ -53,8 +53,6 @@ "Topic :: Software Development", ], entry_points={ - "console_scripts": [ - "trlc = trlc.trlc:main", - ], + "console_scripts": ["trlc = trlc.trlc:main"], }, )