Code Monkey home page Code Monkey logo

Comments (15)

nazq avatar nazq commented on May 25, 2024 1

Looked at the new pkg and the PKG-INFO has this

Requires-Dist: mypy (==1.)
Requires-Dist: poetry (>=1.2,<2.0)
Requires-Dist: tomlkit (==0.
)

which should be fine. Only thing is that since mypy doesn't use semver I forget what their strategy is for a major release change

from poetry-multiproject-plugin.

nazq avatar nazq commented on May 25, 2024 1

all seems to work fine now. Many thanks for the quick turnaround David

from poetry-multiproject-plugin.

nazq avatar nazq commented on May 25, 2024

I'm trying the poetry config system-site-packages = false, need to see if that has other unintended side effects

from poetry-multiproject-plugin.

DavidVujic avatar DavidVujic commented on May 25, 2024

Thank you for reporting this @nazq!

This is a bug, and should be fixed. I'll look at it right away.

from poetry-multiproject-plugin.

nazq avatar nazq commented on May 25, 2024

appreciate that. as an fyi the system-site-packages = false didn't quite work

from poetry-multiproject-plugin.

nazq avatar nazq commented on May 25, 2024

Thank you for reporting this @nazq!

This is a bug, and should be fixed. I'll look at it right away.

What are your thoughts on how to fix this ?

from poetry-multiproject-plugin.

DavidVujic avatar DavidVujic commented on May 25, 2024

Out of curiosity, how do you add the multiproject-plugin to Poetry? I think that I had thought of it as not disturbing the project specific dependencies, because it being installed in a Poetry-specific virtual environment.

from poetry-multiproject-plugin.

nazq avatar nazq commented on May 25, 2024

let me try one more thing (might still not work for our CI/CD but worth a try). I'll do the following:-

  • Clear proj .venv .tox envs
  • Clear all base env packages
  • Create a py-build env and only install poetry and the two plugins (plus my own)
  • Then poetry install using poetry from the build-env in my proj to create the venv

... should take a few mins

from poetry-multiproject-plugin.

nazq avatar nazq commented on May 25, 2024

Out of curiosity, how do you add the multiproject-plugin to Poetry? I think that I had thought of it as not disturbing the project specific dependencies, because it being installed in a Poetry-specific virtual environment.

We're not able to use the poetry self add poetry-multiproject-plugin style for poetry in a corp env as we use an internal pypi. So I have to pip install them

from poetry-multiproject-plugin.

nazq avatar nazq commented on May 25, 2024

ok so that works and I now have a mypy 1.8.0 in the proj env. This will allow me to proceed locally but I se difficulties in creating the py-build venv in our bespoke CI/CD. So some progress

from poetry-multiproject-plugin.

DavidVujic avatar DavidVujic commented on May 25, 2024

That would explain it, thank you! MyPy is included because of the check-project command. But I think it should be fine for the multiproject plugin to allow any version (i.e. "*").

from poetry-multiproject-plugin.

nazq avatar nazq commented on May 25, 2024

that would be perfect. I'll upgrade straight away

from poetry-multiproject-plugin.

nazq avatar nazq commented on May 25, 2024

I see the new version. Many thanks, will give it a try

from poetry-multiproject-plugin.

DavidVujic avatar DavidVujic commented on May 25, 2024

Great!

I think this problem will re-appear when MyPy releases newer versions, since I am including a lock file (with fixed versions). A possible solution is to exclude the lock file from the deployed package.

from poetry-multiproject-plugin.

DavidVujic avatar DavidVujic commented on May 25, 2024

@nazq

A suggestion, would it be possible to install the plugin with pip but into the separate Poetry environment? Something like:

$POETRY_HOME/bin/pip install --user poetry-multiproject-plugin

https://python-poetry.org/docs/plugins/#with-pip

from poetry-multiproject-plugin.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.