1
0
Fork 0

Update pip.yml

This commit is contained in:
Nick Sweeting 2023-11-03 19:12:19 -07:00 committed by GitHub
parent c6e5a565c0
commit 5ce77d3d0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,27 +9,33 @@ jobs:
build: build:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
permissions:
id-token: write
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
fetch-depth: 1 fetch-depth: 1
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v1 uses: actions/setup-python@v4
with: with:
python-version: 3.11 python-version: 3.11
architecture: x64 architecture: x64
- name: Build Python Package - uses: pdm-project/setup-pdm@v3
- name: Install dependencies
run: pdm install --fail-fast --no-lock --group :all --no-self
- name: Build package
run: | run: |
pip3 install --upgrade pip setuptools wheel rm ./dist/archivebox-*.whl
rm -Rf pip_dist/*.whl pdm build
python3 setup.py \
sdist --dist-dir=./pip_dist \ - name: Install from build
bdist_wheel --dist-dir=./pip_dist \ run: pip install ./dist/archivebox-*.whl
egg_info --egg-base=./pip_dist
pip install pip_dist/archivebox-*.whl
- name: Add some links to test - name: Add some links to test
run: | run: |
@ -39,6 +45,9 @@ jobs:
archivebox version archivebox version
archivebox status archivebox status
- name: Publish package distributions to PyPI
run: pdm publish --no-build
# - name: Push build to PyPI # - name: Push build to PyPI
# run: | # run: |
# cd pip_dist/ # cd pip_dist/