Skip to content

Commit 6b670ef

Browse files
committed
Re-add publishing the sdist
@jlaine and @hmaarrfk are responsible for maintaining this format.
1 parent 3186956 commit 6b670ef

3 files changed

Lines changed: 40 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ on:
44
types: [published]
55
workflow_dispatch:
66
jobs:
7+
package-source:
8+
runs-on: ubuntu-24.04
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-python@v5
12+
with:
13+
python-version: "3.13"
14+
- name: Build source package
15+
run: |
16+
pip install setuptools cython
17+
python scripts/fetch-vendor.py --config-file scripts/ffmpeg-7.1.json /tmp/vendor
18+
PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig python setup.py sdist
19+
- name: Upload source package
20+
uses: actions/upload-artifact@v4
21+
with:
22+
name: dist-source
23+
path: dist/
24+
725
package-wheel:
826
runs-on: ${{ matrix.os }}
927
strategy:
@@ -64,7 +82,7 @@ jobs:
6482

6583
publish:
6684
runs-on: ubuntu-latest
67-
needs: [package-wheel]
85+
needs: [package-source, package-wheel]
6886
steps:
6987
- uses: actions/checkout@v4
7088
- uses: actions/download-artifact@v4

MANIFEST.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include *.txt *.md
2+
recursive-include av *.pyx *.pxd
3+
recursive-include docs *.rst *.py
4+
recursive-include examples *.py
5+
recursive-include include *.pxd *.h
6+
recursive-include src/av *.c *.h
7+
recursive-include tests *.py

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,23 @@ conda install av -c conda-forge
3232
See the [Conda install][conda-install] docs to get started with (mini)Conda.
3333

3434

35+
Alternative installation methods
36+
--------------------------------
37+
38+
Due to the complexity of the dependencies, PyAV is not always the easiest Python package to install from source. If you want to use your existing ffmpeg (must be the correct major version), the source version of PyAV is on [PyPI][pypi]:
39+
40+
> [!WARNING]
41+
> You must be in a posix env, and have the correct version of ffmpeg installed on your system.
42+
43+
```bash
44+
pip install av --no-binary av
45+
```
46+
47+
3548
Installing From Source
3649
----------------------
3750

38-
Here's how to build PyAV from source source. You must use [MSYS2](https://www.msys2.org/) when using Windows.
51+
Here's how to build PyAV from source. You must use [MSYS2](https://www.msys2.org/) when using Windows.
3952

4053
```bash
4154
git clone https://github.com/PyAV-Org/PyAV.git

0 commit comments

Comments
 (0)