Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@laksh-krishna-sharma
Copy link
Contributor

What Does This PR Address?

Enhances the test_version_format() Error Message for Version Mismatches.

Fixes #949

Description

This PR enhances the test_version_format() function in tests/test_version.py by updating the error message to be more informative. The new message provides clearer guidance on resolving version mismatch issues, including a suggestion to rerun make install if needed.

@laksh-krishna-sharma
Copy link
Contributor Author

image

@kevinjqliu sir , Thanks for your feedback.

I've resolved the linter issue as indicated. I created a new PR due to some issues on my machine. I apologize for any inconvenience this may have caused. Please review the updated changes.

@kevinjqliu
Copy link
Contributor

Looks like theres another lint issue. Can you run make lint again?

@laksh-krishna-sharma
Copy link
Contributor Author

Sure, I'll run make lint again.

@laksh-krishna-sharma
Copy link
Contributor Author

image
Sir, please guide me about what I have to do to resolve this.

@kevinjqliu
Copy link
Contributor

can you try running make install first?
did you follow these steps? https://py.iceberg.apache.org/contributing/

I'm not very familiar with Windows environment

@laksh-krishna-sharma
Copy link
Contributor Author

Yes, I followed all the steps mentioned in the contribution guide and ran make install and make lint. I also resolved the issues that came up. Please review the update.

@laksh-krishna-sharma
Copy link
Contributor Author

image
While running make install, I encountered the error shown in the above screenshot.

image
image
While running make lint, I encountered the error shown in the above screenshot.

@kevinjqliu
Copy link
Contributor

That's odd, it might be due to the specific Python version on Windows. I found a similar issue python-poetry/poetry#3894 (comment)

Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

LGTM!

@kevinjqliu kevinjqliu merged commit 678facc into apache:main Aug 9, 2024
@kevinjqliu
Copy link
Contributor

Thanks for the contribution, @laksh-krishna-sharma

@laksh-krishna-sharma laksh-krishna-sharma deleted the feat/949-library-version-upgrade-fails-test-version-format branch August 9, 2024 18:12
@laksh-krishna-sharma
Copy link
Contributor Author

Thank you, @kevinjqliu I am grateful for the opportunity to contribute and for your patient guidance. I would like to work more under your guidance in this repository. I am looking to contribute more and learn from you. This being my second contribution, it has been an amazing experience, and I have learned a lot. I am excited to continue contributing and learning.

sungwy pushed a commit to sungwy/iceberg-python that referenced this pull request Dec 7, 2024
…pache#1015)

* Update test_version_format to provide a clearer error message

* Comment fix

* Add newline

* Update test_version_format to provide a clearer error message

* linter fix

---------

Co-authored-by: Fokko Driesprong <fokko@apache.org>
sungwy pushed a commit to sungwy/iceberg-python that referenced this pull request Dec 7, 2024
…pache#1015)

* Update test_version_format to provide a clearer error message

* Comment fix

* Add newline

* Update test_version_format to provide a clearer error message

* linter fix

---------

Co-authored-by: Fokko Driesprong <fokko@apache.org>
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.

[documentation] library version upgrade fails test_version_format

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.