Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 302f3b9

Browse files
committed
initial commit
0 parents  commit 302f3b9

15 files changed

+774
-0
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
schedule:
6+
interval: 'daily'
7+
ignore:
8+
- dependency-name: 'actions/*'

.github/workflows/debug.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Run Debug
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
tests:
8+
name: Python ${{ matrix.python-version }} • ${{ matrix.os }}
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
# python-version: [3.7, 3.8, 3.9, "3.10"]
13+
# os: [ubuntu-latest, macos-latest, windows-latest]
14+
python-version: [3.9]
15+
os: [ubuntu-latest]
16+
exclude:
17+
- os: macos-latest
18+
python-version: 3.7
19+
- os: windows-latest
20+
python-version: 3.7
21+
- os: macos-latest
22+
python-version: 3.8
23+
- os: windows-latest
24+
python-version: 3.8
25+
- os: macos-latest
26+
python-version: 3.9
27+
- os: windows-latest
28+
python-version: 3.9
29+
30+
steps:
31+
- run: echo ${{github.ref}}
32+
33+
- uses: actions/checkout@v2
34+
35+
- name: Setup Python ${{ matrix.python-version }}
36+
uses: actions/setup-python@v2
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
architecture: ${{ matrix.arch }}
40+
41+
- name: Setup Python dependencies
42+
run: |
43+
python -m pip install -U pip build pytest pytest-github-actions-annotate-failures
44+
45+
- name: Install ffmpegio-plugin-static-ffmpeg package
46+
run: pip install -q .
47+
48+
- name: Run tests
49+
run: python tests/test_avistreams.py

.github/workflows/test_n_pub.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
tests:
12+
name: Python ${{ matrix.python-version }} • ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
python-version: [3.7, 3.8, 3.9, "3.10"]
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
# python-version: [3.7, 3.8, 3.9]
19+
# os: [windows-latest]
20+
exclude:
21+
- os: macos-latest
22+
python-version: 3.7
23+
- os: windows-latest
24+
python-version: 3.7
25+
- os: macos-latest
26+
python-version: 3.8
27+
- os: windows-latest
28+
python-version: 3.8
29+
- os: macos-latest
30+
python-version: 3.9
31+
- os: windows-latest
32+
python-version: 3.9
33+
34+
steps:
35+
- run: echo ${{github.ref}}
36+
37+
- uses: actions/checkout@v2
38+
39+
- name: Setup Python ${{ matrix.python-version }}
40+
uses: actions/setup-python@v2
41+
with:
42+
python-version: ${{ matrix.python-version }}
43+
architecture: ${{ matrix.arch }}
44+
45+
- name: Setup Python dependencies
46+
run: |
47+
python -m pip install -U pip
48+
pip install -U build pytest pytest-github-actions-annotate-failures
49+
50+
- name: Install ffmpegio-plugin-static-ffmpeg package
51+
run: pip install -q .
52+
53+
- name: Run tests
54+
run: pytest -vv
55+
56+
distribute:
57+
name: Distribution
58+
runs-on: ubuntu-latest
59+
needs: tests
60+
if: startsWith(github.ref, 'refs/tags')
61+
steps:
62+
- uses: actions/checkout@v2
63+
64+
- name: Setup Python
65+
uses: actions/setup-python@v2
66+
with:
67+
python-version: "3.x" # Version range or exact version of a Python version to use, using SemVer's version range syntax
68+
69+
- name: Setup Python dependencies
70+
run: |
71+
python -m pip install -U pip setuptools
72+
pip install -U build
73+
74+
- name: Build a binary wheel and a source tarball
75+
run: python -m build --sdist --wheel --outdir dist/ .
76+
77+
- name: add python distribution files to release
78+
uses: softprops/action-gh-release@v1
79+
with:
80+
files: dist/*
81+
env:
82+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83+
84+
# - name: Publish distribution 📦 to Test PyPI
85+
# uses: pypa/gh-action-pypi-publish@master
86+
# with:
87+
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
88+
# repository_url: https://test.pypi.org/legacy/
89+
# skip_existing: true
90+
91+
- name: Publish distribution 📦 to PyPI
92+
uses: pypa/gh-action-pypi-publish@master
93+
with:
94+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
98+
__pypackages__/
99+
100+
# Celery stuff
101+
celerybeat-schedule
102+
celerybeat.pid
103+
104+
# SageMath parsed files
105+
*.sage.py
106+
107+
# Environments
108+
.env
109+
.venv
110+
env/
111+
venv/
112+
ENV/
113+
env.bak/
114+
venv.bak/
115+
116+
# Spyder project settings
117+
.spyderproject
118+
.spyproject
119+
120+
# Rope project settings
121+
.ropeproject
122+
123+
# mkdocs documentation
124+
/site
125+
126+
# mypy
127+
.mypy_cache/
128+
.dmypy.json
129+
dmypy.json
130+
131+
# Pyre type checker
132+
.pyre/
133+
134+
# pytype static type analyzer
135+
.pytype/
136+
137+
# Cython debug symbols
138+
cython_debug/
139+
140+
.vscode/*
141+
# !.vscode/settings.json
142+
!.vscode/tasks.json
143+
!.vscode/launch.json
144+
!.vscode/extensions.json
145+
*.code-workspace
146+
147+
# Local History for Visual Studio Code
148+
.history/
149+
150+
# GitHub page
151+
docs/
152+
!docs/.nojekyll
153+
154+
sandbox/*
155+
!sandbox/*.py

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "ffmpegio"]
2+
path = ffmpegio
3+
url = https://github.com/python-ffmpegio/python-ffmpegio

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
5+
6+
## [Unreleased]
7+
8+
- First release.
9+
10+
<!-- [Unreleased]: https://github.com/python-ffmpegio/python-ffmpegio/compare/v0.1.0...HEAD -->
11+

0 commit comments

Comments
 (0)