Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: use pathlib for paths #47581

Merged
merged 1 commit into from
May 2, 2023
Merged

Conversation

VoltrexKeyva
Copy link
Member

Use Python's pathlib library for paths and related operations instead of os.path.

Refs: #47323 (comment) #47323 (comment)

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. labels Apr 16, 2023
@VoltrexKeyva VoltrexKeyva added the python PRs and issues that require attention from people who are familiar with Python. label Apr 16, 2023
configure.py Outdated Show resolved Hide resolved
@targos
Copy link
Member

targos commented Apr 17, 2023

@nodejs/python

configure.py Outdated Show resolved Hide resolved
@Trott Trott added request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Apr 18, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 18, 2023
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@VoltrexKeyva VoltrexKeyva added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 21, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 21, 2023
@nodejs-github-bot
Copy link
Collaborator

@VoltrexKeyva VoltrexKeyva added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 21, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 21, 2023
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@cclauss
Copy link
Contributor

cclauss commented Apr 22, 2023

@VoltrexKeyva Can you please create a pull request for all the non-pathlib changes so we can see if we can get that one to pass the tests and land first?

@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 2, 2023
@nodejs-github-bot
Copy link
Collaborator

@VoltrexKeyva
Copy link
Member Author

@cclauss fortunately there are no failures, should we land this now?

@cclauss
Copy link
Contributor

cclauss commented May 2, 2023

Nice! Two approvals are above.

@VoltrexKeyva VoltrexKeyva added the commit-queue Add this label to land a pull request using GitHub Actions. label May 2, 2023
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels May 2, 2023
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/47581
✔  Done loading data for nodejs/node/pull/47581
----------------------------------- PR info ------------------------------------
Title      build: use pathlib for paths (#47581)
Author     Mohammed Keyvanzadeh  (@VoltrexKeyva)
Branch     VoltrexKeyva:use-pathlib -> nodejs:main
Labels     build, python, author ready, needs-ci
Commits    1
 - build: use pathlib for paths
Committers 1
 - Mohammed Keyvanzadeh 
PR-URL: https://github.com/nodejs/node/pull/47581
Reviewed-By: Yagiz Nizipli 
Reviewed-By: Christian Clauss 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/47581
Reviewed-By: Yagiz Nizipli 
Reviewed-By: Christian Clauss 
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last review:
   ⚠  - build: use pathlib for paths
   ℹ  This PR was created on Sun, 16 Apr 2023 14:21:56 GMT
   ✔  Approvals: 2
   ✔  - Yagiz Nizipli (@anonrig): https://github.com/nodejs/node/pull/47581#pullrequestreview-1388073872
   ✔  - Christian Clauss (@cclauss): https://github.com/nodejs/node/pull/47581#pullrequestreview-1388196158
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2023-05-02T14:23:08Z: https://ci.nodejs.org/job/node-test-pull-request/51578/
- Querying data for job/node-test-pull-request/51578/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/4863726456

@VoltrexKeyva
Copy link
Member Author

@cclauss this'll need an approval again, as new changes invalidates the older approvals.

@cclauss cclauss self-requested a review May 2, 2023 19:06
@VoltrexKeyva VoltrexKeyva added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels May 2, 2023
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 2, 2023
@nodejs-github-bot nodejs-github-bot merged commit d2156f1 into nodejs:main May 2, 2023
@nodejs-github-bot
Copy link
Collaborator

Landed in d2156f1

@cclauss
Copy link
Contributor

cclauss commented May 2, 2023

Rock & Roll... Thanks for doing this!

@VoltrexKeyva VoltrexKeyva deleted the use-pathlib branch May 2, 2023 20:00
targos pushed a commit that referenced this pull request May 3, 2023
Use Python's `pathlib` library for paths and related operations
instead of `os.path`.

Refs: #47323 (comment) #47323 (comment)
PR-URL: #47581
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
@targos targos mentioned this pull request May 3, 2023
targos pushed a commit that referenced this pull request May 3, 2023
Use Python's `pathlib` library for paths and related operations
instead of `os.path`.

Refs: #47323 (comment) #47323 (comment)
PR-URL: #47581
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
danielleadams pushed a commit that referenced this pull request Jul 6, 2023
Use Python's `pathlib` library for paths and related operations
instead of `os.path`.

Refs: #47323 (comment) #47323 (comment)
PR-URL: #47581
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
MoLow pushed a commit to MoLow/node that referenced this pull request Jul 6, 2023
Use Python's `pathlib` library for paths and related operations
instead of `os.path`.

Refs: nodejs#47323 (comment) nodejs#47323 (comment)
PR-URL: nodejs#47581
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
@@ -1766,39 +1768,39 @@ def icu_download(path):
icu_config['variables']['icu_full_canned'] = 1
# --with-icu-source processing
# now, check that they didn't pass --with-icu-source=deps/icu
elif with_icu_source and os.path.abspath(icu_full_path) == os.path.abspath(with_icu_source):
elif with_icu_source and Path(icu_full_path).resolve() == Path(with_icu_source).resolve():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch! icu_full_path can actually be a URL here, and so this change breaks Windows downloading completely. Not good..

@srl295 srl295 added the i18n-api Issues and PRs related to the i18n implementation. label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. build Issues and PRs related to build files or the CI. i18n-api Issues and PRs related to the i18n implementation. needs-ci PRs that need a full CI run. python PRs and issues that require attention from people who are familiar with Python.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants