lots of changes

This commit is contained in:
Jesse Bannon 2022-11-15 13:06:44 -08:00
parent 415e10ae90
commit 34ea7ab4f2
6 changed files with 11 additions and 16 deletions

View file

@ -38,12 +38,7 @@ jobs:
- name: Build Wheel - name: Build Wheel
run: | run: |
# Build wheel and copy to docker dir make docker_stage
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/
- name: Save Python build cache - name: Save Python build cache
uses: actions/cache@v3 uses: actions/cache@v3

1
.gitignore vendored
View file

@ -141,3 +141,4 @@ dmypy.json
docker/*.whl docker/*.whl
docker/root/*.whl docker/root/*.whl
docker/root/defaults/examples

View file

@ -1,8 +1,11 @@
wheel: clean wheel: clean
python setup.py bdist_wheel pip3 install build
docker: wheel python3 -m build
docker_stage: wheel
cp dist/*.whl docker/root/ 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/ sudo docker build --no-cache -t ytdl-sub:0.1 docker/
docs: docs:
sphinx-build -a -b html docs docs/_html sphinx-build -a -b html docs docs/_html
@ -14,6 +17,8 @@ clean:
src/ytdl_sub.egg-info/ \ src/ytdl_sub.egg-info/ \
docs/_html/ \ docs/_html/ \
.coverage \ .coverage \
docker/root/*.whl \
docker/root/defaults/examples \
coverage.xml coverage.xml
.PHONY: wheel docker docs clean .PHONY: wheel docker docs clean

View file

@ -21,8 +21,7 @@ RUN apk update --no-cache && \
apk del \ apk del \
g++ \ g++ \
make \ make \
py3-setuptools \ py3-setuptools
py3-pip
############################################################################### ###############################################################################
# CONTAINER CONFIGS # CONTAINER CONFIGS

View file

@ -49,6 +49,5 @@ docs =
sphinx==4.5.0 sphinx==4.5.0
sphinx-rtd-theme==1.0.0 sphinx-rtd-theme==1.0.0
build = build =
setuptools build
wheel

View file

@ -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