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

New Option --mode for "gt", "compat", and "non-pin" #239

Merged
merged 5 commits into from
Mar 29, 2021

Conversation

mapattacker
Copy link
Contributor

@mapattacker mapattacker commented Mar 29, 2021

created a new PR as I was unable to automatically update the commit to the original PR (#237).

Options:
      --mode <scheme>      Enables dynamic versioning with <compat>, <gt> or <non-pin> schemes. 
                           <compat> | e.g. Flask~=1.1.2 
                           <gt>     | e.g. Flask>=1.1.2 
                           <no-pin> | e.g. Flask 

@alan-barzilay

mapattacker and others added 5 commits March 25, 2021 17:37
* added new option for dynamic versioning

* added quotes for dynamic options

Co-authored-by: Siyang <teo_siyang@imda.gov.sg>
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 88.679% when pulling 5dc02aa on mapattacker:mode into a26ce94 on bndr:master.

@alan-barzilay alan-barzilay merged commit cb4add2 into bndr:master Mar 29, 2021
@@ -3,6 +3,11 @@
History
-------

0.4.11 (2020-03-29)
Copy link

@lieuzhenghong lieuzhenghong Mar 30, 2021

Choose a reason for hiding this comment

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

In HISTORY.rst line 6 should have the date (2021-03-29) instead of 2020

with _open(path, "w") as out_file:
logging.debug('Writing {num} requirements: {imports} to {file}'.format(
num=len(imports),
file=path,
imports=", ".join([x['name'] for x in imports])
))
fmt = '{name}=={version}'
fmt = '{name}' + symbol + '{version}'
Copy link

@lieuzhenghong lieuzhenghong Mar 30, 2021

Choose a reason for hiding this comment

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

consider f"{name}symbol{version}" instead

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.

5 participants