Comments (7)
May I ask about the status of this feature? I see the issue was closed, but I'm not sure if the feature was implemented.
PS - thanks for creating this plugin. I'm a recent convert to the Poetry ecosystem, it's awesome.
from install-poetry.
Yes, it's doable. I will try and send you PR. Anyways the plugins are a new feature and don't expect it to stabilize soon.
from install-poetry.
I'd be happy to attempt a PR!
Quick question: what is the purpose of main.sh
, should that be updated too? It appears to duplicate the installation script in action.yml
, and I'm not sure if/how it gets invoked.
EDIT: Ah, it's explained in scripts/README.md . So, looks like just action.yml
should be updated with new features.
from install-poetry.
Thanks for bringing this up @pbk0 👏
I just have a few questions, in case you already know:
- What happens when you run
poetry plugin add <plugin>
? Does it make changes to the lockfile or does it start a process separate from the normalpoetry install
? - How can I test plugin installation locally? I tried this, without luck:
❯ poetry self update --preview
Updating Poetry to 1.2.0a2
Updating dependencies
Resolving dependencies... (4.3s)
Package operations: 0 installs, 1 update, 0 removals
- Updating charset-normalizer (2.0.5 -> 2.0.6)
Updating the poetry script
Poetry (1.2.0a2) is installed now. Great!
❯ poetry plugin add poetry-version-plugin
The command "plugin" is not defined.
from install-poetry.
Can you make sure if you have multiple poetry installations? (try which/where poetry
)
Also, I am assuming the poetry installation is isolated. I faced some issues with stale poetry installations. So maybe clean things up and then try installing 1.2.0a2
Below script might be useful
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py > get-poetry.py
python get-poetry.py --uninstall
rm get-poetry.py
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py > install-poetry.py
python install-poetry.py --uninstall
python install-poetry.py --version 1.2.0a2
rm install-poetry.py
poetry --version
BTW the plugin gets installed in isolation alongside isolated poetry installation and it does not mess up with local installations lockfile.
How can I test plugin installation locally? I tried this, without luck:
If I am correct this can happen only if poetry is installed via pip
instead of install-poetry.py
script
from install-poetry.
I think you were right about dual installations, got it to work now 👍
So the solution would just be something like specifying:
- uses: snok/install-poetry@v1
with:
version: 1.2.0a2
plugins: |
poetry-plugin-a
poetry-plugin-b
or
- uses: snok/install-poetry@v1
with:
version: 1.2.0a2
plugins: poetry-plugin-a, poetry-plugin-b
or
- uses: snok/install-poetry@v1
with:
version: 1.2.0a2
plugins: poetry-plugin-a poetry-plugin-b
Where the plugins
inputs should be parsed as a list, and installed in main.sh
by running poetry plugin add {parsed list}
?
That sounds doable 👍
Would you be interested in creating a PR for this @pbk0?
from install-poetry.
The feature was not implemented, so re-opening 👍 I don't have time to implement this currently, but a PR is very welcome 🙂
from install-poetry.
Related Issues (20)
- Skip poetry install step with cache hit HOT 10
- Poetry fails on matrix strategies combinations HOT 4
- Add env: section to parse envs that are used in each poetry call HOT 1
- .venv caching is not working using composable actions? HOT 3
- urllib.error.URLError: <urlopen error unknown url type: https> HOT 4
- Error: `GLIBC_2.34' not found HOT 2
- poetry: command not found - When running multiple self-hosted runners on the same machine. HOT 3
- The `with` `virtualenvs-in-project` setting does not seem to work for me HOT 5
- Cache not found HOT 3
- Does not respect POETRY_HOME HOT 2
- Actions started failing recently. HOT 15
- Shared Library Error (libpython3.8.so.1.0) on builds using runner with python 3.9 or above HOT 1
- Poetry Requires Python 3.8+ HOT 3
- $VENV not set on Poetry installation cache restore HOT 3
- How to change working-directory ? HOT 5
- Install poetry in self-hosted github runner to allow different python versions HOT 8
- Virtual environment created in wrong location
- Calling poetry via CMake script on Windows HOT 4
- Update docs for Windows Server 2019 HOT 1
- poetry installation failed when installing with default settings HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from install-poetry.