Bug#1098664: afew: diff for NMU version 3.0.1.post63-0.1 (3/3)
From
David Bremner@21:1/5 to
All on Sat Mar 15 18:40:01 2025
[continued from previous message]
python3 -m venv env
source ./env/bin/activate
- pip install setuptools pytest dkimpy
+ pip install setuptools setuptools_scm pytest dkimpy
ln -s /usr/lib/python3/dist-packages/notmuch ./env/lib/python*/site-packages
+ - name: flake8 lint
+ run: |
+ source ./env/bin/activate
+ flake8 --ignore=E501,W504 afew/
- name: Tests
run: |
source ./env/bin/activate
@@ -38,20 +46,9 @@
run: |
source ./env/bin/activate
python setup.py install
- - name: Generate coverage report
- run: |
- source ./env/bin/activate
- pip install pytest-cov
- pytest --cov=./ --cov-report=xml
- - name: Upload coverage to Codecov
- uses: codecov/codecov-action@v1
- with:
- file: ./coverage.xml
- flags: unittests
- name: codecov-umbrella
- fail_ci_if_error: true
- name: Docs
run: |
source ./env/bin/activate
pip install sphinx
- python setup.py build_sphinx -b html,man
+ sphinx-build -b html docs $(mktemp -d)
+ sphinx-build -b man docs $(mktemp -d)
diff -Nru afew-3.0.1/.github/workflows/release.yml afew-3.0.1.post63/.github/workflows/release.yml
--- afew-3.0.1/.github/workflows/release.yml 1969-12-31 20:00:00.000000000 -0400
+++ afew-3.0.1.post63/.github/workflows/release.yml 2025-03-15 10:46:03.000000000 -0300
@@ -0,0 +1,31 @@
+name: Release
+
+on:
+ release:
+ types:
+ - published
+
+jobs:
+ release:
+ needs: [build-ubuntu]
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: '3.x'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install setuptools setuptools_scm wheel twine
+ - name: Build and publish (testpypi)
+ env:
+ TWINE_USERNAME: __token__
+ TWINE_PASSWORD: ${{ secrets.testpypi_token }}
+ TWINE_REPOSITORY: testpypi
+ run: |
+ python setup.py sdist
+ twine upload dist/*
diff -Nru afew-3.0.1/NEWS.md