Skip to content

Commit 94bbcc4

Browse files
committed
initial commit
0 parents  commit 94bbcc4

File tree

11 files changed

+780
-0
lines changed

11 files changed

+780
-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/test_n_pub.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
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: Setup Python ${{ matrix.python-version }}
42+
uses: actions/setup-python@v2
43+
with:
44+
python-version: ${{ matrix.python-version }}
45+
architecture: ${{ matrix.arch }}
46+
47+
- name: Setup Python dependencies
48+
run: |
49+
python -m pip install -U pip
50+
pip install -U build pytest pytest-github-actions-annotate-failures
51+
pip install -U numpy
52+
53+
- name: Install ffmpegio_downloader package
54+
run: pip install -q .
55+
56+
- name: Run tests
57+
run: pytest -vv
58+
59+
distribute:
60+
name: Distribution
61+
runs-on: ubuntu-latest
62+
needs: tests
63+
if: startsWith(github.ref, 'refs/tags')
64+
steps:
65+
- uses: actions/checkout@v2
66+
67+
- name: Setup Python
68+
uses: actions/setup-python@v2
69+
with:
70+
python-version: "3.x" # Version range or exact version of a Python version to use, using SemVer's version range syntax
71+
72+
- name: Setup Python dependencies
73+
run: |
74+
python -m pip install -U pip setuptools
75+
pip install -U build
76+
77+
- name: Build a binary wheel and a source tarball
78+
run: python -m build --sdist --wheel --outdir dist/ .
79+
80+
- name: add python distribution files to release
81+
uses: softprops/action-gh-release@v1
82+
with:
83+
files: dist/*
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
87+
# - name: Publish distribution 📦 to Test PyPI
88+
# uses: pypa/gh-action-pypi-publish@master
89+
# with:
90+
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
91+
# repository_url: https://test.pypi.org/legacy/
92+
# skip_existing: true
93+
94+
- name: Publish distribution 📦 to PyPI
95+
uses: pypa/gh-action-pypi-publish@master
96+
with:
97+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
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+
tests/*.7z
155+
tests/*.tar.xz
156+
tests/*/
157+
tests/7z

0 commit comments

Comments
 (0)