Skip to content
New issue

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

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

Already on GitHub? # to your account

Ability to override --data-dir for scenarios when proxy.py is running as a user with no home directory #1389

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

abhinavsingh
Copy link
Owner

@abhinavsingh abhinavsingh commented Apr 18, 2024

@abhinavsingh abhinavsingh added the bot:chronographer:skip PR using this label is exempted from CHANGELOG management label Apr 18, 2024
@@ -188,7 +188,7 @@ jobs:
- name: Set the expected dist artifact names
id: artifact-name
run: |
print('::set-output name=sdist::proxy.py-${{
print('::set-output name=sdist::proxy_py-${{
Copy link
Owner Author

Choose a reason for hiding this comment

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

@webknjaz Apologies for tagging you again, but wanted to highlight this change as I am unsure what upstream changes might have caused this. Somehow generated .tar.gz name has suddenly changed

Copy link
Contributor

Choose a reason for hiding this comment

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

@abhinavsingh no need to apologize :) This update has been widely noticed across many projects lately. setuptools made updates to the sdist base name normalization code in one of the recent releases which resulted in underscores appearing in place of . or -. This would've been more stable if setuptools was pinned for the build env (I don't think I implemented this in my earlier PRs but I tend to do this in my other projects).

Here's the corresponding change log entry upstream: https://setuptools.pypa.io/en/latest/history.html#v69-3-0.

Copy link
Contributor

Choose a reason for hiding this comment

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

@abhinavsingh while I'm here, I also noticed the use of ::set-output GHA workflow command syntax which has been deprecated for a while. The new way is appending to a file path provided to by the ${GITHUB_OUTPUT} environment variable. For example: https://github.com/cherrypy/cheroot/blob/3591a1c/.github/workflows/ci-cd.yml#L309-L327.

Copy link
Owner Author

Choose a reason for hiding this comment

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

@webknjaz You are a charm. Thank you for providing links and insights, I'll dig into them 🙏

@abhinavsingh abhinavsingh merged commit c24862b into develop Apr 18, 2024
52 checks passed
@abhinavsingh abhinavsingh deleted the data-dir-flag branch April 18, 2024 03:34
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bot:chronographer:skip PR using this label is exempted from CHANGELOG management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEFAULT_DATA_DIRECTORY_PATH Should be configurable
2 participants