Skip to content

Commit

Permalink
Drop zipapp builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nbraud committed Aug 11, 2024
1 parent ebb5397 commit 1187dfd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
31 changes: 1 addition & 30 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Lint_task:
- mypy --version
- bork run lint

Zipapp_bootstrap_task:
alias: Zipapp bootstraps
Linux_task:
persistent_worker: &linuxes
isolation:
container:
Expand All @@ -27,34 +26,6 @@ Zipapp_bootstrap_task:
- image: python:3.11-slim
- image: python:3.12-slim
- image: python:3.13-rc-slim
setup_script:
- pip install -U --upgrade-strategy eager pip 'setuptools>61'
- cp -r . /tmp/bork-pristine
- cp -r /tmp/bork-pristine /tmp/pass1
- cp -r /tmp/bork-pristine /tmp/pass2
- cp -r /tmp/bork-pristine /tmp/pass3
# Make sure Bork can build itself.
pass_1_script:
- cd /tmp/pass1
- python3 --version
- pip install . .[test]
- bork build
# Make sure the Bork zipapp from Pass 1 can build Bork.
pass_2_script:
- cd /tmp/pass2
- cp /tmp/pass1/dist/bork-*.pyz /tmp/bork-pass1.pyz
- python3 /tmp/bork-pass1.pyz build
# Make sure the Bork zipapp built from Pass 2 can build Bork.
# ime with other self-building software, this is prone to blowing up.
pass_3_script:
- cd /tmp/pass3
- cp /tmp/pass2/dist/bork-*.pyz /tmp/bork-pass2.pyz
- python3 /tmp/bork-pass2.pyz build
- '[ -e ./dist/bork-*.pyz ]'


Linux_task:
persistent_worker: *linuxes
install_script:
- apt-get update
- apt-get install -y git
Expand Down
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,10 @@ packages = ["bork"]
[tool.setuptools.dynamic]
version = {attr = "bork.__version__"}

[tool.bork.zipapp]
enabled = true
main = "bork.cli:main"

[tool.bork.release]
pypi = true
github = true
github_repository = "duckinator/bork"
strip_zipapp_version = true

[tool.bork.aliases]
lint = [
Expand Down

0 comments on commit 1187dfd

Please sign in to comment.