-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix requirement being used before installing #53
Conversation
Reviewer's Guide by SourceryThis pull request fixes an issue where a requirement was being used before installation. The main change involves modifying the setup.py file to dynamically derive the version number instead of importing it from the package. File-Level Changes
Tips
|
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.
Hey @n0n1m - I've reviewed your changes - here's some feedback:
Overall Comments:
- The version derivation logic seems overly complex for this use case. Consider simplifying it unless there's a specific need for handling pre-release versions and git integration.
- Please provide proper attribution and ensure compliance with the license for the code borrowed from discord.py. Avoid using terms like 'stolen' in comments.
- It would be helpful to explain the rationale behind this change in the PR description. Why was this complex version derivation necessary?
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟡 Security: 1 issue found
- 🟢 Testing: all looks good
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
@n0n1m Thank you for your work! |
the problem is it is used before being installed |
just try |
it should fix an issue |
also @bleudev, did you publish this commit to pypi? |
No, i will publish new version when i will done new README. |
@Alexandr153 Can you try this? If the problem will be solved, we can close your PR. |
You already closed it. Also you closed issue by merging this PR |
I have tested PyPI version and this version in brand new venv. PyPI one threw this error and this installed fine |
In fact, PyPI version doesn't install even with requests installed |
That's why I think you should change version number to 0.2.1 (or smth) and publish it |
Fixes #51
Summary by Sourcery
Fix the requirement of using the package version before installation by introducing a function to derive the version dynamically from the source code.
Bug Fixes: