Skip to content

Commit

Permalink
CI: WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pajod committed Dec 12, 2023
1 parent dc21db7 commit c7d0190
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 8 deletions.
Empty file modified .github/packaging/debian/rules
100644 → 100755
Empty file.
9 changes: 8 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ jobs:
matrix:
toxenv: [lint, docs-lint, pycodestyle, format, mypy]
python-version: [ "3.10" ]
os: ["ubuntu-latest", "windows-latest"]
os: ["ubuntu-latest"]
include:
- os: windows-latest
python-version: "3.12"
toxenv: format
- os: macos-latest
python-version: "3.12"
toxenv: docs-lint
steps:
- uses: actions/checkout@v4
- name: Using Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
- run: tox -e run-module
- run: tox -e run-entrypoint
- run: tox -e py
continue-on-error: $${{ matrix.unsupported }}
continue-on-error: ${{ matrix.unsupported }}
30 changes: 24 additions & 6 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install Dependencies
- name: Install pip Dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get -y upgrade dpkg-dev make python3-all quilt debhelper dh-python pybuild-plugin-pyproject python3-setuptools
python -m pip install --upgrade pip
python -m pip install build
- name: make dist
Expand All @@ -47,15 +46,34 @@ jobs:
(cd source/ && python -m build)
mkdir --verbose --parents upload
cp --verbose --archive source/dist/*{.tar.gz,.whl} upload/
- name: prepare deb
- name: prepare deb source dir
run: |
# why the incorrect version? because this way we can skip rewrite debian/changelog for now
mkdir --verbose --parents debian/gunicorn-21.2.0
( cd source && git archive --format=tar --prefix=unicorn-21.2.0/ HEAD | gzip) > debian/gunicorn_21.2.0.orig.tar.gz
mkdir --verbose --parents debian
( cd source/ && git archive --format=tar --prefix=gunicorn-21.2.0/ HEAD | gzip ) > debian/gunicorn_21.2.0.orig.tar.gz
( cd debian/ && tar --extract --file gunicorn_21.2.0.orig.tar.gz gunicorn-21.2.0 )
rsync -a source/.github/packaging/debian/ debian/gunicorn-21.2.0/debian
test -s debian/gunicorn-21.2.0/pyproject.toml
test -s debian/gunicorn-21.2.0/debian/control
test -x debian/gunicorn-21.2.0/debian/control
ls -l debian/gunicorn-21.2.0/
# does installing python3-distutils make sense? nope
# but that is where Debian used to patch their sysconfig prefix
- name: Install dpkg Dependencies
run: |
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y upgrade dpkg-dev make python3-all quilt debhelper dh-python pybuild-plugin-pyproject python3-setuptools python3-distutils
# print versions
apt policy python3-all
apt policy dh-python
apt policy pybuild-plugin-pyproject
apt policy python3-setuptools
apt policy python3-distutils
- name: build deb
# env:
# DEB_PYTHON_INSTALL_LAYOUT: deb_system
run: |
( cd debian/gunicorn-21.2.0 && dpkg-buildpackage --unsigned-source --unsigned-changes)
( cd debian/gunicorn-21.2.0/ && dpkg-buildpackage --unsigned-source --unsigned-changes )
cp --verbose --archive debian/*.deb upload/
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit c7d0190

Please sign in to comment.