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

Release fix: Upload nuxeo-python-client to packages #311

Closed
wants to merge 6 commits into from

Conversation

swetayadav1
Copy link
Contributor

No description provided.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @swetayadav1 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 4 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

with:
python-version: 3.9
- run: python -m pip install -U pip setuptools wheel
- run: python setup.py bdist_wheel
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (code_refinement): Consider using build backend for building wheels.

Using modern build backends like 'build' or 'pep517' can provide better isolation and configuration management compared to 'setup.py'.

Suggested change
- run: python setup.py bdist_wheel
- run: python -m pip install build
- run: python -m build --wheel

- uses: actions/setup-python@v5
with:
python-version: 3.9
- run: python setup.py sdist
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (code_refinement): Consider using modern tools for source distribution.

Similar to wheel building, using 'build' or 'pep517' for source distribution can enhance the build process.

Suggested change
- run: python setup.py sdist
- run: pip install build
- run: python -m build --sdist

with:
name: python-package-distributions
path: dist/
- run: ls -l dist
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (code_refinement): Consider removing or commenting the purpose of the 'ls' command.

If the 'ls -l dist' command is for debugging, it might be better to either remove it for cleaner CI logs or comment its purpose for clarity.

Suggested change
- run: ls -l dist
# The following command lists the contents of the 'dist' directory to verify the build artifacts:
- run: ls -l dist

python-version: 3.9

- name: Install twine
run: python -m pip install twine
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (code_refinement): Consider pinning the version of 'twine' to avoid potential future compatibility issues.

Pinning the version can ensure consistent behavior across different runs and avoid unexpected breaks due to package updates.

Suggested change
run: python -m pip install twine
run: python -m pip install twine==3.8.0

@swetayadav1 swetayadav1 closed this May 1, 2024
@swetayadav1 swetayadav1 deleted the release-fix branch May 1, 2024 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant