Remove PIP
This commit is contained in:
parent
2bd9efab50
commit
6421bb7c65
10 changed files with 2 additions and 141 deletions
|
@ -18,7 +18,6 @@ node_modules/
|
||||||
build/
|
build/
|
||||||
dist/
|
dist/
|
||||||
deb_dist/
|
deb_dist/
|
||||||
pip_dist/
|
|
||||||
assets/
|
assets/
|
||||||
|
|
||||||
data/
|
data/
|
||||||
|
|
71
.github/workflows/pip.yml
vendored
71
.github/workflows/pip.yml
vendored
|
@ -1,71 +0,0 @@
|
||||||
name: Build Pip package
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
fetch-depth: 1
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.11
|
|
||||||
architecture: x64
|
|
||||||
|
|
||||||
- uses: pdm-project/setup-pdm@v3
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pdm install --fail-fast --no-lock --group :all --no-self
|
|
||||||
|
|
||||||
- name: Build package
|
|
||||||
run: |
|
|
||||||
rm ./dist/archivebox-*.whl
|
|
||||||
pdm build
|
|
||||||
|
|
||||||
- name: Install from build
|
|
||||||
run: pip install ./dist/archivebox-*.whl
|
|
||||||
|
|
||||||
- name: Add some links to test
|
|
||||||
run: |
|
|
||||||
mkdir data && cd data
|
|
||||||
archivebox init
|
|
||||||
archivebox add 'https://example.com'
|
|
||||||
archivebox version
|
|
||||||
archivebox status
|
|
||||||
|
|
||||||
- name: Publish package distributions to PyPI
|
|
||||||
run: pdm publish --no-build
|
|
||||||
|
|
||||||
# - name: Push build to PyPI
|
|
||||||
# run: |
|
|
||||||
# cd pip_dist/
|
|
||||||
# python3 -m twine upload --repository testpypi pip_dist/*.{whl,tar.gz}
|
|
||||||
# python3 -m twine upload --repository pypi pip_dist/*.{whl,tar.gz}
|
|
||||||
|
|
||||||
# - name: Commit built package
|
|
||||||
# run: |
|
|
||||||
# cd pip_dist/
|
|
||||||
# git config --local user.email "action@github.com"
|
|
||||||
# git config --local user.name "GitHub Action"
|
|
||||||
# git commit -m "Pip package autobuild" -a
|
|
||||||
|
|
||||||
# - name: Push build to Github
|
|
||||||
# uses: ad-m/github-push-action@master
|
|
||||||
# with:
|
|
||||||
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# repository: ArchiveBox/pip-archivebox
|
|
||||||
# branch: ${{ github.ref }}
|
|
||||||
# directory: pip_dist
|
|
||||||
|
|
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
@ -55,7 +55,6 @@ jobs:
|
||||||
- name: Install pip dependencies
|
- name: Install pip dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip setuptools wheel pytest bottle build
|
python -m pip install --upgrade pip setuptools wheel pytest bottle build
|
||||||
./bin/build_pip.sh
|
|
||||||
pdm install
|
pdm install
|
||||||
|
|
||||||
- name: Get npm cache dir
|
- name: Get npm cache dir
|
||||||
|
@ -93,7 +92,7 @@ jobs:
|
||||||
# TODO: remove this exception for windows once we get tests passing on that platform
|
# TODO: remove this exception for windows once we get tests passing on that platform
|
||||||
if: ${{ !contains(matrix.os, 'windows') }}
|
if: ${{ !contains(matrix.os, 'windows') }}
|
||||||
run: |
|
run: |
|
||||||
python -m pytest -s --basetemp=tests/out --ignore=archivebox/vendor --ignore=deb_dist --ignore=pip_dist
|
python -m pytest -s --basetemp=tests/out --ignore=archivebox/vendor --ignore=deb_dist
|
||||||
|
|
||||||
docker_tests:
|
docker_tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -33,4 +33,3 @@ output/
|
||||||
# kotovalexarian
|
# kotovalexarian
|
||||||
/deb_dist/
|
/deb_dist/
|
||||||
/docker/
|
/docker/
|
||||||
/pip_dist/
|
|
||||||
|
|
|
@ -1023,7 +1023,6 @@ Extractors take the URL of a page to archive, write their output to the filesyst
|
||||||
./bin/build.sh
|
./bin/build.sh
|
||||||
|
|
||||||
# or individually:
|
# or individually:
|
||||||
./bin/build_pip.sh
|
|
||||||
./bin/build_deb.sh
|
./bin/build_deb.sh
|
||||||
./bin/build_docker.sh
|
./bin/build_docker.sh
|
||||||
```
|
```
|
||||||
|
@ -1039,7 +1038,6 @@ Extractors take the URL of a page to archive, write their output to the filesyst
|
||||||
./bin/release.sh
|
./bin/release.sh
|
||||||
|
|
||||||
# or individually:
|
# or individually:
|
||||||
./bin/release_pip.sh
|
|
||||||
./bin/release_deb.sh
|
./bin/release_deb.sh
|
||||||
./bin/release_docker.sh
|
./bin/release_docker.sh
|
||||||
```
|
```
|
||||||
|
|
|
@ -17,7 +17,6 @@ cd "$REPO_DIR"
|
||||||
# pipenv install --dev
|
# pipenv install --dev
|
||||||
|
|
||||||
# the order matters
|
# the order matters
|
||||||
./bin/build_pip.sh
|
|
||||||
./bin/build_deb.sh
|
./bin/build_deb.sh
|
||||||
./bin/build_docker.sh
|
./bin/build_docker.sh
|
||||||
|
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
### Bash Environment Setup
|
|
||||||
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
|
||||||
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
|
|
||||||
# set -o xtrace
|
|
||||||
set -o errexit
|
|
||||||
set -o errtrace
|
|
||||||
set -o nounset
|
|
||||||
set -o pipefail
|
|
||||||
IFS=$'\n'
|
|
||||||
|
|
||||||
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )"
|
|
||||||
|
|
||||||
if [[ -f "$REPO_DIR/.venv/bin/activate" ]]; then
|
|
||||||
source "$REPO_DIR/.venv/bin/activate"
|
|
||||||
else
|
|
||||||
echo "[!] Warning: No virtualenv presesnt in $REPO_DIR/.venv, creating one now..."
|
|
||||||
python3 -m venv --system-site-packages --symlinks $REPO_DIR/.venv
|
|
||||||
fi
|
|
||||||
cd "$REPO_DIR"
|
|
||||||
|
|
||||||
echo "[*] Cleaning up build dirs"
|
|
||||||
cd "$REPO_DIR"
|
|
||||||
rm -Rf build dist
|
|
||||||
|
|
||||||
echo "[+] Building sdist, bdist_wheel, and egg_info"
|
|
||||||
rm -f archivebox/package.json
|
|
||||||
cp package.json archivebox/package.json
|
|
||||||
|
|
||||||
pdm self update
|
|
||||||
pdm install
|
|
||||||
pdm build
|
|
||||||
pdm export --without-hashes -o ./pip_dist/requirements.txt
|
|
||||||
|
|
||||||
cp dist/* ./pip_dist/
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "[√] Finished. Don't forget to commit the new sdist and wheel files in ./pip_dist/"
|
|
|
@ -20,13 +20,11 @@ cd "$REPO_DIR"
|
||||||
|
|
||||||
# Run all the build scripts
|
# Run all the build scripts
|
||||||
./bin/build_git.sh
|
./bin/build_git.sh
|
||||||
./bin/build_pip.sh
|
|
||||||
./bin/build_deb.sh
|
./bin/build_deb.sh
|
||||||
./bin/build_docker.sh
|
./bin/build_docker.sh
|
||||||
|
|
||||||
# Push relase to public repositories
|
# Push relase to public repositories
|
||||||
./bin/release_git.sh
|
./bin/release_git.sh
|
||||||
./bin/release_pip.sh
|
|
||||||
./bin/release_deb.sh
|
./bin/release_deb.sh
|
||||||
./bin/release_docker.sh
|
./bin/release_docker.sh
|
||||||
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
### Bash Environment Setup
|
|
||||||
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
|
||||||
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
|
|
||||||
# set -o xtrace
|
|
||||||
set -o errexit
|
|
||||||
set -o errtrace
|
|
||||||
set -o nounset
|
|
||||||
set -o pipefail
|
|
||||||
IFS=$'\n'
|
|
||||||
|
|
||||||
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )"
|
|
||||||
cd "$REPO_DIR"
|
|
||||||
source "$REPO_DIR/.venv/bin/activate"
|
|
||||||
|
|
||||||
echo "[^] Publishing to Test PyPI..."
|
|
||||||
pdm publish --repository testpypi
|
|
||||||
|
|
||||||
echo "[^] Publishing to PyPI..."
|
|
||||||
pdm publish --no-build
|
|
|
@ -14,4 +14,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )"
|
||||||
|
|
||||||
source "$DIR/.venv/bin/activate"
|
source "$DIR/.venv/bin/activate"
|
||||||
|
|
||||||
pytest -s --basetemp=tests/out --ignore=archivebox/vendor --ignore=deb_dist --ignore=pip_dist
|
pytest -s --basetemp=tests/out --ignore=archivebox/vendor --ignore=deb_dist
|
||||||
|
|
Loading…
Reference in a new issue