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

[DEV] update to v1.2.0rc2 #71

Merged
merged 6 commits into from
Aug 31, 2022
Merged

[DEV] update to v1.2.0rc2 #71

merged 6 commits into from
Aug 31, 2022

Conversation

xylar
Copy link
Contributor

@xylar xylar commented Aug 30, 2022

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

closes #67

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.

Here's what I've got...

For recipe:

  • Selectors are suggested to take a <two spaces>#<one space>[<expression>] form. See lines [39, 51]

@xylar
Copy link
Contributor Author

xylar commented Aug 30, 2022

@conda-forge-admin, please rerender

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@xylar
Copy link
Contributor Author

xylar commented Aug 30, 2022

I don't see any reason this won't have the same circular dependency problem as in #67 :-(

@xylar xylar mentioned this pull request Aug 30, 2022
@xylar
Copy link
Contributor Author

xylar commented Aug 30, 2022

I'm including a patch for python-poetry/poetry#5980. Without that one, we can't make any headway here.

@xylar
Copy link
Contributor Author

xylar commented Aug 30, 2022

@maresb, any objection to me merging this including the patch to remove poetry-plugin-export? I think this is a decent intermediate solution even though python-poetry/poetry#5980 is still being debated.

@maresb
Copy link
Contributor

maresb commented Aug 30, 2022

I feel pretty uneasy about it. I commented about it some minutes ago, but I'm not finding it.

@maresb
Copy link
Contributor

maresb commented Aug 30, 2022

Ah, I wrote it in #70 (comment)

@drhagen
Copy link

drhagen commented Aug 30, 2022

I am willing to test this build in various circumstances and report back, but I can't find instructions on how to install from a build. Is that possible?

@maresb
Copy link
Contributor

maresb commented Aug 30, 2022

@drhagen, it's a bit tricky. I just enabled an option for the GitHub Actions jobs to store the outputs as artifacts. Once it finishes, you should be able to download the package as a .tar.bz2 and mamba install it.

Thanks! It's much appreciated.

@xylar xylar mentioned this pull request Aug 31, 2022
3 tasks
conda-forge.yml Outdated Show resolved Hide resolved
@xylar
Copy link
Contributor Author

xylar commented Aug 31, 2022

@maresb, can you now provide instructions on downloading the build artifacts? I couldn't figure it out.

@maresb
Copy link
Contributor

maresb commented Aug 31, 2022

Ah, sorry, I forgot to rerender!

@maresb
Copy link
Contributor

maresb commented Aug 31, 2022

@conda-forge-admin, please rerender

@maresb
Copy link
Contributor

maresb commented Aug 31, 2022

If you open the logs there should be an obvious option to download artifacts, when the artifacts actually build.

@maresb
Copy link
Contributor

maresb commented Aug 31, 2022

See "1 artifact produced":
image

@xylar
Copy link
Contributor Author

xylar commented Aug 31, 2022

@maresb I'm not sure how much it will help with #72 but what do you see as the downside of merging this PR (1.2.0rc2) with the patch to remove poetry-plugin-export? I agree that merging #72 with that patch is probably too risky but it seems like few folks are using the dev version and those who are won't be surprised if it's a little experimental. It would probably help @drhagen to be able to play around with it.

@maresb
Copy link
Contributor

maresb commented Aug 31, 2022

Ah, right, that makes sense. I was getting confused between the main release branch and the dev prerelease branch. I agree that rc2 is experimental, so we can break. Let's merge!

@xylar xylar merged commit f7b27a4 into conda-forge:dev Aug 31, 2022
@xylar xylar deleted the 1.2.0rc2 branch August 31, 2022 11:18
@xylar xylar mentioned this pull request Aug 31, 2022
5 tasks
@drhagen
Copy link

drhagen commented Aug 31, 2022

Installing this release was quite the trip, but in the end was possible with this Mambaforge command:

conda install --channel "conda-forge/label/poetry_dev" --channel "conda-forge/label/cleo_dev" poetry=1.2.0rc2

I tested the following Poetry commands and everything seems to be working fine:

  • poetry install from an existing lock file
  • poetry lock; poetry install from an existing lock file
  • poetry install in a repo with no poetry.lock file
  • poetry lock; poetry install in a repo with no poetry.lock file
  • poetry run nox in a project with Nox

I did these tests both in the base environment as well as in a project-specific environment, because Poetry behaves differently when it is in a Conda environment.

The base environment worked exactly as expected.

Strangely, Poetry seems to ignore the conda environment and make its own environment. It does not look like this code changed in 1.2.0, and it does the same thing if I install rc2 from pip or install 1.1.14. This either broke a long time ago or I am doing something wrong.

Also, if I do poetry export, I get a The command "export" does not exist. error as one would expect given the patch.

@maresb
Copy link
Contributor

maresb commented Aug 31, 2022

Installing this release was quite the trip

Ya, I wrote instructions in #64

Strangely, Poetry seems to ignore the conda environment and make its own environment.

I work mostly Dockerized, and I usually run

poetry config virtualenvs.create false

which prevents virtualenv creation.

@xylar
Copy link
Contributor Author

xylar commented Aug 31, 2022

@drhagen, thanks for this testing!

Sorry the installation gave you trouble but it's true that it's tricky to install dev packages, particularly like here with dev dependencies.

Also, if I do poetry export, I get a The command "export" does not exist. error as one would expect given the patch.

Is that no longer true if you manually install poetry-plugin-export?

@xylar
Copy link
Contributor Author

xylar commented Aug 31, 2022

To answer my own question, it seems to work. I will work on getting conda-forge/poetry-plugin-export-feedstock#4 to build so we have the "right" version of poetry-plugin-export to install alongside poetry 1.2.0rc2.

@xylar
Copy link
Contributor Author

xylar commented Aug 31, 2022

@maresb, how are you feeling at this point about moving forward with a patched 1.2.0? Still feeling like it's better not to have 1.2.0 at all?

@xylar
Copy link
Contributor Author

xylar commented Aug 31, 2022

I guess the answer is that we're still blocked by not having a compatible release of cleo, so no worries for now.

@maresb
Copy link
Contributor

maresb commented Aug 31, 2022

In general I feel very reluctant to patch non-Conda-specific functionality in the packages we're building. I worry that it might cause more confusion than it solves, but that's just my opinion.

If the cleo issue clears up, perhaps it'd be worthwhile to seek another opinion from someone wiser and more experienced than me, like ocefpaf.

@xylar
Copy link
Contributor Author

xylar commented Aug 31, 2022

I understand that. I see this case as being a little different because pip/pypi support circular dependencies whereas conda doesn't and we're trying to get around it. Even so, there's certainly a high risk of confusion or unintended consequences.

I worry that there will be a great deal of confusion and frustration if we just say folks can't use poetry 1.2.0. But we can see.

We can certainly ask ocefpaf when the time comes. I think he would agree with my assessment that he's not necessarily the most cautious person when it comes to this kind of thing. I think he'd be okay with patching and dealing with the consequences. But we can certainly ask.

@maresb
Copy link
Contributor

maresb commented Aug 31, 2022

I think he's be okay with patching and dealing with the consequences.

It's more than I'd personally want to take on, but since you seem motivated I certainly don't want to stop you. 😄

@drhagen
Copy link

drhagen commented Aug 31, 2022

Also, if I do poetry export, I get a The command "export" does not exist. error as one would expect given the patch.

Is that no longer true if you manually install poetry-plugin-export?

poetry export works fine if I conda install poetry-plugin-export.

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.

4 participants