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

Implement dynamic versioning using poetry plugin #2869

Merged
merged 5 commits into from
May 7, 2023

Conversation

andyi2it
Copy link
Contributor

@andyi2it andyi2it commented May 2, 2023

What this PR does / why we need it:
This PR adds provision to install a new poetry plugin from local, thereby dynamically setting the version from a VERSION file.
The plugin should be installed along with poetry using pip install.
The plugin would read the version from the file and dynamically use the version from it for the corresponding packages.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #2800

Type of changes
Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Release note:

NONE

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>
@andyi2it andyi2it force-pushed the poetry-plugin branch 3 times, most recently from 9fdb66c to 3d741c5 Compare May 2, 2023 09:48
Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>
Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>
@andyi2it andyi2it changed the title Poetry plugin Implement dynamic versioning using poetry plugin May 2, 2023
Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>
Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>
poetry config installer.parallel true
- name: Install poetry version plugin
run: |
pip install -e python/plugin/poetry-version-plugin
Copy link
Member

Choose a reason for hiding this comment

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

Can we install the plug-in with poetry plugin
$ poetry plugin add poetry-version-plugin

@yuzisun
Copy link
Member

yuzisun commented May 7, 2023

Discussed with @andyi2it, poetry plugin is deprecated and replaced with poetry self add, however this requires the plugin to be published, for now we have modified the plugin code so that it reads from the file instead of the way that plugin does.

@yuzisun
Copy link
Member

yuzisun commented May 7, 2023

/lgtm
/approve

@kserve-oss-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyi2it, yuzisun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@yuzisun yuzisun merged commit 8e02143 into kserve:master May 7, 2023
52 checks passed
Iamlovingit pushed a commit to Iamlovingit/kserve that referenced this pull request Oct 1, 2023
* Added poetry version plugin.

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>

* Removing tests and scripts

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>

* Added poetry plugin installation.

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>

* Fix setup-kserve script.

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>

* Added python verison 3.9 in e2e.

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>

---------

Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>
Signed-off-by: iamlovingit <freecode666@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow dynamic version extraction for poetry
3 participants