Skip to content

Commit

Permalink
Merge pull request #59 from linw1995/dependabot/weekly_check
Browse files Browse the repository at this point in the history
chore: change requirements.txt loc
  • Loading branch information
linw1995 authored Oct 11, 2024
2 parents 4cc65bd + 8621794 commit 84a7618
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build:

python:
install:
- requirements: ./requirements-docs.txt
- requirements: ./scripts/requirements-docs.txt
- path: .

sphinx:
Expand Down
19 changes: 14 additions & 5 deletions scripts/export_requirements_txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from pathlib import Path

Format = enum.Enum("Format", "requirements setuppy")
BASE_DIR = Path(__file__).parent


def fix_end_of_file(text):
Expand All @@ -30,18 +31,26 @@ def pdm_export(args, filename, format: Format):


pdm_export(
args=["--prod"], filename="requirements-mini.txt", format=Format.requirements
args=["--prod"],
filename=BASE_DIR / "requirements-mini.txt",
format=Format.requirements,
)
pdm_export(
args=[
"--prod",
"-G:all",
],
filename="requirements.txt",
filename=BASE_DIR / "requirements.txt",
format=Format.requirements,
)
pdm_export(args=["-G:all"], filename="requirements-dev.txt", format=Format.requirements)
pdm_export(
args=["-G", "docs"], filename="requirements-docs.txt", format=Format.requirements
args=["-G:all"],
filename=BASE_DIR / "requirements-dev.txt",
format=Format.requirements,
)
pdm_export(
args=["-G", "docs"],
filename=BASE_DIR / "requirements-docs.txt",
format=Format.requirements,
)
# pdm_export(args=[], filename="setup.py", format=Format.setuppy)
# pdm_export(args=[], filename=BASE_DIR / "setup.py", format=Format.setuppy)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 84a7618

Please sign in to comment.