lots of changes
This commit is contained in:
parent
415e10ae90
commit
34ea7ab4f2
6 changed files with 11 additions and 16 deletions
7
.github/workflows/package.yaml
vendored
7
.github/workflows/package.yaml
vendored
|
|
@ -38,12 +38,7 @@ jobs:
|
|||
|
||||
- name: Build Wheel
|
||||
run: |
|
||||
# Build wheel and copy to docker dir
|
||||
pip install -e .[build]
|
||||
python setup.py bdist_wheel
|
||||
cp dist/*.whl docker/root
|
||||
# Copy examples to docker defaults dir
|
||||
cp -R examples docker/root/defaults/
|
||||
make docker_stage
|
||||
|
||||
- name: Save Python build cache
|
||||
uses: actions/cache@v3
|
||||
|
|
|
|||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -141,3 +141,4 @@ dmypy.json
|
|||
|
||||
docker/*.whl
|
||||
docker/root/*.whl
|
||||
docker/root/defaults/examples
|
||||
|
|
|
|||
9
Makefile
9
Makefile
|
|
@ -1,8 +1,11 @@
|
|||
|
||||
wheel: clean
|
||||
python setup.py bdist_wheel
|
||||
docker: wheel
|
||||
pip3 install build
|
||||
python3 -m build
|
||||
docker_stage: wheel
|
||||
cp dist/*.whl docker/root/
|
||||
cp -R examples docker/root/defaults/
|
||||
docker: docker_stage
|
||||
sudo docker build --no-cache -t ytdl-sub:0.1 docker/
|
||||
docs:
|
||||
sphinx-build -a -b html docs docs/_html
|
||||
|
|
@ -14,6 +17,8 @@ clean:
|
|||
src/ytdl_sub.egg-info/ \
|
||||
docs/_html/ \
|
||||
.coverage \
|
||||
docker/root/*.whl \
|
||||
docker/root/defaults/examples \
|
||||
coverage.xml
|
||||
|
||||
.PHONY: wheel docker docs clean
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@ RUN apk update --no-cache && \
|
|||
apk del \
|
||||
g++ \
|
||||
make \
|
||||
py3-setuptools \
|
||||
py3-pip
|
||||
py3-setuptools
|
||||
|
||||
###############################################################################
|
||||
# CONTAINER CONFIGS
|
||||
|
|
|
|||
|
|
@ -49,6 +49,5 @@ docs =
|
|||
sphinx==4.5.0
|
||||
sphinx-rtd-theme==1.0.0
|
||||
build =
|
||||
setuptools
|
||||
wheel
|
||||
build
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
# Uncomment to build api docs
|
||||
# sphinx-apidoc -f -o docs/source src/ytdl_sub
|
||||
sphinx-build -a -b html docs docs/_html
|
||||
|
||||
Loading…
Reference in a new issue