From aad1b7ca817520e5f3d039d5e93b337e1b6f4ed1 Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Sat, 25 Jun 2022 09:19:49 +0200 Subject: [PATCH] Co-authored-by: Matthew Peveler --- .gitignore | 1 + CHANGELOG => CHANGELOG.md | 0 docs/conf.py | 3 +++ docs/meta/CHANGELOG.md | 1 - docs/meta/faq.md | 2 +- make_changelog.py | 2 +- 6 files changed, 6 insertions(+), 3 deletions(-) rename CHANGELOG => CHANGELOG.md (100%) delete mode 120000 docs/meta/CHANGELOG.md diff --git a/.gitignore b/.gitignore index 48a4771fa6..f4ec295c54 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ PyPDF2_pdfLocation.txt .python-version tests/pdf_cache/ +docs/meta/CHANGELOG.md diff --git a/CHANGELOG b/CHANGELOG.md similarity index 100% rename from CHANGELOG rename to CHANGELOG.md diff --git a/docs/conf.py b/docs/conf.py index 6bc0c7a278..ec0538ce49 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,11 +10,14 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. import os +import shutil import sys sys.path.insert(0, os.path.abspath(".")) sys.path.insert(0, os.path.abspath("../")) +shutil.copyfile("../CHANGELOG.md", "meta/CHANGELOG.md") + # -- Project information ----------------------------------------------------- project = "PyPDF2" diff --git a/docs/meta/CHANGELOG.md b/docs/meta/CHANGELOG.md deleted file mode 120000 index 6fc2e33dd2..0000000000 --- a/docs/meta/CHANGELOG.md +++ /dev/null @@ -1 +0,0 @@ -../../CHANGELOG \ No newline at end of file diff --git a/docs/meta/faq.md b/docs/meta/faq.md index 4f548a8b20..462f7d4921 100644 --- a/docs/meta/faq.md +++ b/docs/meta/faq.md @@ -17,7 +17,7 @@ PyPDF2 1.27.10 supported Python 2.7 to 3.10. ## Who uses PyPDF2? -pyPdf is vendored [into]((https://github.com/Buyanbat/XacCRM/tree/ee78e8df967182f661b6494a86444501e7d89c8f/report/pyPdf)) [several](https://github.com/MyBook/calibre/tree/ca1efe3c21f6553e096dab745b3cdeb36244a5a9/src/pyPdf) [projects](https://github.com/Giacomo-De-Florio-Dev/Make_Your_PDF_Safe/tree/ec439f92243d12d54ae024668792470c6b40ee96/MakeYourPDFsafe_V1.3/PyPDF2). That +pyPdf is vendored [into](https://github.com/Buyanbat/XacCRM/tree/ee78e8df967182f661b6494a86444501e7d89c8f/report/pyPdf) [several](https://github.com/MyBook/calibre/tree/ca1efe3c21f6553e096dab745b3cdeb36244a5a9/src/pyPdf) [projects](https://github.com/Giacomo-De-Florio-Dev/Make_Your_PDF_Safe/tree/ec439f92243d12d54ae024668792470c6b40ee96/MakeYourPDFsafe_V1.3/PyPDF2). That means the code of pyPdf was copied into that project. Projects that depend on PyPDF2: diff --git a/make_changelog.py b/make_changelog.py index 0c54839d7e..bdece02699 100644 --- a/make_changelog.py +++ b/make_changelog.py @@ -145,4 +145,4 @@ def parse_commit_line(line) -> Change: if __name__ == "__main__": - main("CHANGELOG") + main("CHANGELOG.md")