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

Commit c57603e

Browse files
author
Takeshi Ikuma (LSUHSC)
committed
initial commit
0 parents  commit c57603e

15 files changed

+883
-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: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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: Set up FFmpeg
36+
uses: FedericoCarboni/setup-ffmpeg@v1
37+
with:
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- name: Setup Python ${{ matrix.python-version }}
41+
uses: actions/setup-python@v2
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
architecture: ${{ matrix.arch }}
45+
46+
- name: Setup Python dependencies
47+
run: |
48+
python -m pip install -U pip build pytest pytest-github-actions-annotate-failures
49+
50+
- name: Install ffmpegio package
51+
run: pip install -q .
52+
53+
- name: Run tests
54+
run: python tests/test_avistreams.py

.github/workflows/test_n_pub.yml

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

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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.

0 commit comments

Comments
 (0)