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

feat: Migrate to poetry #2214

Merged
merged 21 commits into from
Aug 7, 2023
Merged

Conversation

tushar5526
Copy link
Contributor

@tushar5526 tushar5526 commented May 17, 2023

Closes #2150

@vercel
Copy link

vercel bot commented May 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 3, 2023 6:45pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 3, 2023 6:45pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 3, 2023 6:45pm

@vercel
Copy link

vercel bot commented May 17, 2023

@tushar5526 is attempting to deploy a commit to the Flagsmith Team on Vercel.

A member of the Team first needs to authorize it.

@tushar5526 tushar5526 marked this pull request as draft May 17, 2023 17:06
@tushar5526
Copy link
Contributor Author

Do you also want Dockerfile.redhat-ubi to be migrated as well ?

@dabeeeenster
Copy link
Contributor

Do you also want Dockerfile.redhat-ubi to be migrated as well ?

Yes please! Also the Dockerfile in the root of the repo which is our main file

@dabeeeenster
Copy link
Contributor

Great thanks! cc @matthewelwell there are also a few ECS related Github actions that we need to update

@dabeeeenster
Copy link
Contributor

Also the makefile

@github-actions
Copy link
Contributor

github-actions bot commented May 17, 2023

Uffizzi Preview deployment-32543 was deleted.

@tushar5526
Copy link
Contributor Author

Hey @dabeeeenster the PR is ready for review and I would need the following information as well.

[tool.poetry]
name = "y"
version = "0.1.0"
description = ""
authors = ["Your Name [email protected]"]
readme = "README.md"
License

@tushar5526
Copy link
Contributor Author

Fixed the falling tests. It seems 2 GHAs need approvals before they can run.

@tushar5526 tushar5526 requested a review from matthewelwell May 24, 2023 18:43
@gagantrivedi
Copy link
Member

Fixed the falling tests. It seems 2 GHAs need approvals before they can run.

Hi @tushar5526 those two action are deployment related - we can skip them for now

@tushar5526
Copy link
Contributor Author

@khvn26 Thank you for the detailed feedback.

Few things to notice in recent commits.

@tushar5526
Copy link
Contributor Author

I have switched to ~ requirements. We can keep switching to caret requirements moving forward.

Copy link
Member

@khvn26 khvn26 left a comment

Choose a reason for hiding this comment

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

This looks good to me. Great job, @tushar5526 🚀

@matthewelwell
Copy link
Contributor

Reviewing the list here, it seems there are a few major version upgrades still (I'm making the assumption that pyproject.toml generated versions are File 1). Of those, I think google-auth is the only one that's concerning as I think we're requiring that directly?

@tushar5526
Copy link
Contributor Author

Reviewing the list here, it seems there are a few major version upgrades still (I'm making the assumption that pyproject.toml generated versions are File 1). Of those, I think google-auth is the only one that's concerning as I think we're requiring that directly?

Yes your assumption is right.

google-api-python-client==1.12.5
    # via -r requirements.in
google-auth==1.23.0
    # via
    #   google-api-core
    #   google-api-python-client
    #   google-auth-httplib2

google-api-python-client is constrained using ~ and google-auth is not listed as a core dependency in requirements.in file, hence the version bump 🤔

Here is the dependency tree for google-api-python-client if it helps
Screenshot 2023-08-02 at 8 32 38 PM

@matthewelwell
Copy link
Contributor

@tushar5526 can you rebase and let's get this merged 🙌

@tushar5526
Copy link
Contributor Author

@tushar5526 can you rebase and let's get this merged 🙌

Squash the commits as well?

@matthewelwell
Copy link
Contributor

Squash the commits as well?

Up to you, we will squash and merge the PR so it's not necessary to squash commits. You can just merge the main branch in rather than rebase if that's easier.

@tushar5526
Copy link
Contributor Author

Squash the commits as well?

Up to you, we will squash and merge the PR so it's not necessary to squash commits. You can just merge the main branch in rather than rebase if that's easier.

Yes, you can squash them then! I have merged the main branch.

@matthewelwell matthewelwell merged commit 0754071 into Flagsmith:main Aug 7, 2023
@tushar5526 tushar5526 deleted the poetry-migrate branch August 7, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to Poetry
5 participants