Comments (10)
Opps that was a typo lol, editing that.
from install-poetry.
A PR for this is very welcome 👏 Thanks @linkous8
from install-poetry.
Unfortunately, implementing this was not as straight forward as I thought it would be, the tests are all blowing up when run in my local repo: https://github.com/linkous8/install-poetry/actions/runs/994929613
Do you have any recommendations where I might be going wrong? If not, I can close out the PR to remove the needless clutter
from install-poetry.
Do they pass if you undo the changes? Or do they possibly fail because you're running the tests in a fork? 🙂
To give you some context: The reason I ended up setting the POETRY_HOME
variable was because the Github action runners are inconsistent. If I remember correctly mac runners sometimes use ~/.local
and sometime uses ~/Library/Application
.
I can take a better look at it tomorrow if that doesn't help you 👍
from install-poetry.
Might be a good idea to comment out most of the tests when experimenting btw 🙂 I usually just keep one or two until I get it to work then comment the rest back in - otherwise it takes forever
from install-poetry.
In the final test run it looks like the condition isn't working
python3: can't open file 'default': [Errno 2] No such file or directory
Looks like it's just setting "default"
from install-poetry.
Right, I have a conditional to set the path variable but its not working correctly for some reason:
from install-poetry.
@linkous8 why not make the default an empty string?
poetry-home:
description: "The Poetry installation path"
required: false
default: ""
if [ -z "$poetry_home" ]; then
if [ "$os" == "Windows" ]; then
path="C:/Users/runneradmin/AppData/Roaming/Python/Scripts/"
else
path="$HOME/.local/"
fi
else
path="$poetry_home_path"
fi
from install-poetry.
That seems sensible 🙂
Would this make sense @miigotu
if [ -z "$poetry_home" ]; then
if [ "$os" == "Windows" ]; then
path="C:/Users/runneradmin/AppData/Roaming/Python/Scripts/"
else
path="$HOME/.local/"
fi
else
path="$poetry_home_path"
fi
Or does the second path="$HOME/.local/"
have a purpose?
from install-poetry.
Opted for an alternative approach to caching, I no longer need support for this
from install-poetry.
Related Issues (20)
- poetry: command not found HOT 2
- 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 4
- 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 9
- Virtual environment created in wrong location
- Calling poetry via CMake script on Windows HOT 4
- Update docs for Windows Server 2019 HOT 1
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.