-
Notifications
You must be signed in to change notification settings - Fork 2
py38: issues fixing #45
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
Changes from 5 commits
5fcff48
0ea6770
1870ebf
c19fa9f
274befb
3674ce8
291547e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -12,6 +12,9 @@ Please Contribute to this project by forking [hckr](https://github.com/pateash/h | |||||
|
|
||||||
| Please feel free to provide any suggestion for new utility in [Issues](https://github.com/pateash/hckr/issues) | ||||||
|
|
||||||
| ## Python | ||||||
| * Use python3.8 in development | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider changing the list marker style for consistency. Markdownlint flagged the use of asterisks for list items. Consider using dashes for list items to maintain consistency throughout the document. - * Use python3.8 in development
+ - Use python3.8 in developmentCommittable suggestion
Suggested change
ToolsMarkdownlint
|
||||||
|
|
||||||
| ## Publishing to Pypi | ||||||
| * Once we publish a release, Publish workflow [publish.yml](.github%2Fworkflows%2Fpublish.yml) automatically publishes a version to [PyPi](https://pypi.org/p/hckr) | ||||||
| workflow will automatically create next tag using dynamic version defined in [__about__.py](src%2Fhckr%2F__about__.py) | ||||||
|
|
@@ -29,3 +32,4 @@ pre-commit install | |||||
| ```shell | ||||||
| make pypi-clean | ||||||
| ``` | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,3 @@ sphinx-click | |
| shibuya | ||
| sphinx-notfound-page | ||
| sphinx-copybutton | ||
| tomli | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,23 +39,19 @@ dependencies = [ | |
| "pyarrow", # For saving data in Parquet format. | ||
| "fastavro", # For handling Avro file format. | ||
| "requests", | ||
| "tomli" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tip Codebase Verification Re-evaluate the necessity of The
Analysis chainVerify the re-addition of The Verify the purpose of The Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify the necessity of `tomli` in dependencies.
# Test: Search for `tomli` usage in the project. Expect: References to `tomli` usage.
rg --type py 'tomli'
Length of output: 161 Script: #!/bin/bash
# Description: Verify the purpose of `docs/hatch-env-docs-requirements-sync.py`.
# Output the first 20 lines of the file to understand its purpose.
head -n 20 docs/hatch-env-docs-requirements-sync.py
Length of output: 952 |
||
| ] | ||
|
|
||
| [project.urls] | ||
| Documentation = "https://hckr.readthedocs.io" | ||
| Issues = "https://github.com/pateash/hckr/issues" | ||
| Source = "https://github.com/pateash/hckr" | ||
|
|
||
| [tool.hatch.env] | ||
| requires = [ | ||
| "hatch-pip-compile" | ||
| ] | ||
| # to make sure the default env is in same repo ( for Intellij to refer ) | ||
| [tool.hatch.envs.default] | ||
| type = "pip-compile" | ||
| type = "virtual" | ||
| path = "venv" | ||
| # using hatch-pip-compile to generate requirements hashes for depandabot | ||
| pip-compile-hashes = true | ||
| python = "python3.8" | ||
|
|
||
| [tool.hatch.envs.default.scripts] | ||
| deps = "echo 'Syncing Default Dependencies\n=========================='" | ||
|
|
@@ -122,9 +118,9 @@ dependencies = [ | |
| "shibuya", | ||
| "sphinx-notfound-page", | ||
| "sphinx-copybutton", | ||
| "tomli" | ||
| ] | ||
| [tool.hatch.envs.docs.scripts] | ||
| # --pre-build makes sure we get latest changes even if we modify something in | ||
| docs = "sphinx-autobuild -a --port=0 --open-browser docs/source docs/build --watch src/hckr --pre-build 'rm -rf docs/build'" | ||
| deps = "echo 'Syncing Docs Dependencies\n============='" | ||
| docs-deps = "python docs/hatch-env-docs-requirements-sync.py" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
Codebase Verification
Incompatibility with Python 3.8 detected.
The dependencies
sphinx-autobuildandsphinxrequire Python >= 3.9, which means they are not compatible with Python 3.8. Therefore, updating the GitHub Actions workflow to use Python 3.8 will lead to compatibility issues.sphinx-autobuildrequires Python >= 3.9sphinxrequires Python >= 3.9Please update the Python version in the GitHub Actions workflow to a compatible version (e.g., Python 3.9 or higher).
Analysis chain
Updated Python version in GitHub Actions workflows.
The Python version has been updated to 3.8. Verify that all dependencies and scripts are compatible with this version to avoid runtime issues.
Also applies to: 48-48
Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 43
Script:
Length of output: 2053
Script:
Length of output: 2273