Archisman Karmakar commited on
Commit
1105e8e
·
1 Parent(s): 8712ebe

Update deploy_to_HF_space.yml

Browse files
.github/workflows/deploy_to_HF_space.yml CHANGED
@@ -29,38 +29,40 @@ jobs:
29
  sudo apt-get update
30
  sudo xargs -a packages.txt apt-get install -y
31
 
 
 
32
  # - name: Rename Poetry files to ingore
33
  # run: |
34
  # mv pyproject.toml pyproject.toml.ignore
35
  # mv poetry.lock poetry.lock.ignore
36
 
37
- - name: Upgrade pip
38
- run: python -m pip install --upgrade pip
39
 
40
- - name: Install & configure Poetry
41
- run: |
42
- # - name: Disable Poetry virtualenv creation
43
- curl -sSL https://install.python-poetry.org | python3 -
44
- echo "$HOME/.local/bin" >> $GITHUB_PATH
45
 
46
- # pip install --upgrade poetry --upgrade-strategy eager
47
- poetry config virtualenvs.create false
48
- poetry --version
49
- poetry add poetry-plugin-export
50
- poetry self add poetry-plugin-export
51
 
52
 
53
- - name: Install dependencies
54
- run: |
55
- # pip install poetry
56
- # pip install --upgrade poetry --upgrade-strategy eager
57
- poetry --version
58
- # poetry install --no-root
59
- poetry export -f requirements.txt --without-hashes --output requirements.txt
60
 
61
- pip install -r requirements.txt
62
 
63
- # if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
64
 
65
  # - name: Rename Poetry files to original
66
  # run: |
 
29
  sudo apt-get update
30
  sudo xargs -a packages.txt apt-get install -y
31
 
32
+ # USE THIS IF YOU WANT TO AVOID DOCKER
33
+
34
  # - name: Rename Poetry files to ingore
35
  # run: |
36
  # mv pyproject.toml pyproject.toml.ignore
37
  # mv poetry.lock poetry.lock.ignore
38
 
39
+ # - name: Upgrade pip
40
+ # run: python -m pip install --upgrade pip
41
 
42
+ # - name: Install & configure Poetry
43
+ # run: |
44
+ # # - name: Disable Poetry virtualenv creation
45
+ # curl -sSL https://install.python-poetry.org | python3 -
46
+ # echo "$HOME/.local/bin" >> $GITHUB_PATH
47
 
48
+ # # pip install --upgrade poetry --upgrade-strategy eager
49
+ # poetry config virtualenvs.create false
50
+ # poetry --version
51
+ # poetry add poetry-plugin-export
52
+ # poetry self add poetry-plugin-export
53
 
54
 
55
+ # - name: Install dependencies
56
+ # run: |
57
+ # # pip install poetry
58
+ # # pip install --upgrade poetry --upgrade-strategy eager
59
+ # poetry --version
60
+ # # poetry install --no-root
61
+ # poetry export -f requirements.txt --without-hashes --output requirements.txt
62
 
63
+ # pip install -r requirements.txt
64
 
65
+ # # if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
66
 
67
  # - name: Rename Poetry files to original
68
  # run: |