Skip to content

Commit

Permalink
Rename pl_setup to pypdfium2_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Feb 24, 2023
1 parent 42d0f19 commit ddcc5f2
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
git config user.email "[email protected]"
git config user.name "geisserml"
git reset --hard HEAD
python3 setupsrc/pl_setup/autorelease.py --register
python3 setupsrc/pypdfium2_setup/autorelease.py --register
git checkout autorelease_tmp
- name: Get new version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_sourcebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: python3 -m pip install -U -r req/default.txt

- name: Build PDFium
run: python3 ./setupsrc/pl_setup/build_pdfium.py
run: python3 ./setupsrc/pypdfium2_setup/build_pdfium.py

- name: Install
run: PDFIUM_BINARY="sourcebuild" python3 -m pip install .
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ docs-open:
xdg-open ./docs/build/html/index.html

update-all:
python3 ./setupsrc/pl_setup/update_pdfium.py
python3 ./setupsrc/pypdfium2_setup/update_pdfium.py

setup-all:
python3 ./setupsrc/pl_setup/craft_packages.py
python3 ./setupsrc/pypdfium2_setup/craft_packages.py

check:
bash ./utilities/check.sh
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pypdfium2 includes helper classes to simplify common use cases, while the raw PD

* With a locally built PDFium binary
```bash
python3 setupsrc/pl_setup/build_pdfium.py
python3 setupsrc/pypdfium2_setup/build_pdfium.py
PDFIUM_BINARY="sourcebuild" python3 -m pip install .
```
The build script provides a few options that can be listed by calling it with `--help`.
Expand Down Expand Up @@ -634,7 +634,7 @@ The release process is fully automated using Python scripts and a CI setup for G
A new release is triggered every Monday, following the schedule of `pdfium-binaries`.
You may also trigger the workflow manually using the GitHub Actions panel or the [`gh`](https://cli.github.com/) command-line tool.
Python release scripts are located in the folder `setupsrc/pl_setup`, along with custom setup code:
Python release scripts are located in the folder `setupsrc/pypdfium2_setup`, along with custom setup code:
* `update_pdfium.py` downloads binaries and generates the bindings.
* `craft_packages.py` builds platform-specific wheel packages and a source distribution suitable for PyPI upload.
* `autorelease.py` takes care of versioning, changelog, release note generation and VCS checkin.
Expand Down Expand Up @@ -668,8 +668,8 @@ In case of necessity, you may also forego autorelease/CI and do the release manu
```
* Build the packages
```bash
python3 setupsrc/pl_setup/update_pdfium.py
python3 setupsrc/pl_setup/craft_packages.py
python3 setupsrc/pypdfium2_setup/update_pdfium.py
python3 setupsrc/pypdfium2_setup/craft_packages.py
```
* Upload to PyPI
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from pathlib import Path

sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "setupsrc"))
from pl_setup.packaging_base import (
from pypdfium2_setup.packaging_base import (
run_cmd,
SourceTree,
)
Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
)

sys.path.insert(0, join(dirname(abspath(__file__)), "setupsrc"))
from pl_setup import check_deps
from pl_setup.packaging_base import (
from pypdfium2_setup import check_deps
from pypdfium2_setup.packaging_base import (
Host,
DataTree,
BinaryTargetVar,
Expand All @@ -32,8 +32,8 @@

def install_handler():

from pl_setup import update_pdfium
from pl_setup.setup_base import mkwheel
from pypdfium2_setup import update_pdfium
from pypdfium2_setup.setup_base import mkwheel

pl_name = Host.platform
if pl_name is None:
Expand Down Expand Up @@ -75,7 +75,7 @@ def install_handler():

def packaging_handler(target):

from pl_setup.setup_base import mkwheel, SetupKws
from pypdfium2_setup.setup_base import mkwheel, SetupKws

if target == BinaryTarget_None:
setuptools.setup(**SetupKws)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
)

sys.path.insert(0, dirname(dirname(abspath(__file__))))
from pl_setup.packaging_base import (
from pypdfium2_setup.packaging_base import (
run_cmd,
set_versions,
get_version_ns,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from os.path import join, abspath, dirname

sys.path.insert(0, dirname(dirname(abspath(__file__))))
from pl_setup.packaging_base import (
from pypdfium2_setup.packaging_base import (
Host,
SB_Dir,
DataTree,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
)

sys.path.insert(0, dirname(dirname(abspath(__file__))))
from pl_setup.packaging_base import (
from pypdfium2_setup.packaging_base import (
run_cmd,
clean_artefacts,
Host,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from wheel.bdist_wheel import bdist_wheel

sys.path.insert(0, dirname(dirname(abspath(__file__))))
from pl_setup.packaging_base import (
from pypdfium2_setup.packaging_base import (
DataTree,
VerNamespace,
LibnameForSystem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from concurrent.futures import ThreadPoolExecutor

sys.path.insert(0, dirname(dirname(abspath(__file__))))
from pl_setup.packaging_base import (
from pypdfium2_setup.packaging_base import (
Host,
DataTree,
VerStatusFileName,
Expand Down
4 changes: 2 additions & 2 deletions tests_old/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import sysconfig
from pathlib import Path
from wheel.bdist_wheel import bdist_wheel
from pl_setup import (
from pypdfium2_setup import (
setup_base,
packaging_base as pkg_base,
)
from pl_setup.packaging_base import (
from pypdfium2_setup.packaging_base import (
PlatformNames,
BinaryPlatforms,
ReleaseNames,
Expand Down
4 changes: 2 additions & 2 deletions utilities/packaging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ set -v
bash utilities/clean.sh
bash utilities/check.sh

python3 setupsrc/pl_setup/update_pdfium.py
python3 setupsrc/pl_setup/craft_packages.py
python3 setupsrc/pypdfium2_setup/update_pdfium.py
python3 setupsrc/pypdfium2_setup/craft_packages.py

twine check dist/*
# ignore W002: erroneous detection of __init__.py files as duplicates
Expand Down

0 comments on commit ddcc5f2

Please sign in to comment.