-
Notifications
You must be signed in to change notification settings - Fork 14
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 for NpmVersionRange.from_native and README #34
Conversation
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.
Excellent catch!
Thanks... can you add a test or two?
Done !! |
@keshav-space codestyle tests are failing. Please run |
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.
Really nice catch! I've added some suggestions for you to consider
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.
Looks good! Just a few changes to go
@keshav-space LGTM! |
README: - Import `versions` instead of `version` - Use relative path to execute `configure` script version_range: - `NpmVersionRange.form_native` should generate tuple of `VersionConstraint` - Fixes: aboutcode-org#35 test_version_range: - Add test for NpmVersionRange.from_native Signed-off-by: keshav-space <[email protected]>
1e46e46
to
fd9d341
Compare
- codestyle test for `etc`, will be handled by `skeleton` - see: aboutcode-org/skeleton#54 Signed-off-by: keshav-space <[email protected]>
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.
LGTM. Thanks!
Merging!
1. Fix
README
versions
insteadversion
2. Fix
NpmVersionRange
NpmVersionRange.from_native was returning a
tuple
containinglist of VersionConstraint
Instead it must return a
tuple
containingVersionConstraint
NpmVersionRange.from_native("^1.0.2")
would returnconstraints
asFixes:
NpmVersionRange.from_native
isn't returning constraints as intended #353. Add test for
NpmVersionRange
test_NpmVersionRange_from_native_with_compatible_with_version_operator
test_NpmVersionRange_from_native_with_approximately_equal_to_operator
4. Don't do black codestyle test for
docs
andetc
etc
to be handled byskeleton
Signed-off-by: keshav-space [email protected]