feat: Update Makefile and downloader.py
- Update `NAME` variable in Makefile to `thu-learn-downloader` to reflect the new name of the project.
- Add `MAMBA`, `RUN`, and `POETRY` variables to Makefile for easier management of dependencies and running commands.
- Modify the `docs` target in Makefile to use the `RUN` variable to run the `typer` command.
- Add a new `run` target in Makefile to run the `openssl.cnf` file using the `POETRY` variable.
- Update the `setup` target in Makefile to use the `MAMBA` variable to create a new conda environment with the necessary dependencies.
- Update the `$(ASSETS)/demo.png` target in Makefile to use the `RUN` variable to run the `vhs` command.
- Update the `$(DIST_TARGET)` target in Makefile to use the `RUN` variable to run the `python -m nuitka` command.
- Update the `$(DIST_TARGET)` target in Makefile to use the `RUN` variable to run the `pyinstaller` command.
- In `downloader.py`, add a `start` parameter to the `tqdm` progress bar to start the progress from 1 instead of 0.
- In `filename.py`, update the `filename` variable to include the `homework.number` in the filename stem.

This commit updates the Makefile to improve dependency management and command execution, and modifies the `downloader.py` and `filename.py` files to fix issues and improve functionality.
1 parent f50ad51 commit 13b328946eae0f31b16fe9a53c9b3050588e3c10
@liblaf liblaf authored on 18 Nov 2023
Showing 5 changed files
View
Makefile
View
poetry.lock
View
requirements.txt
View
thu_learn_downloader/download/downloader.py
View
thu_learn_downloader/download/filename.py