Skip to content

Commit

Permalink
chore(poetry): change to poetry env use python3.x format (#12261)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored Oct 31, 2023
1 parent 87b9a25 commit 4369518
Show file tree
Hide file tree
Showing 48 changed files with 58 additions and 60 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/.lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
cache-dependency-path: poetry.lock
- name: Set Poetry environment
run: |
poetry env use 3.11
poetry env use python3.11
- name: Install dependencies
run: |
poetry install --no-root
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
cache-dependency-path: poetry.lock
- name: Set Poetry environment
run: |
poetry env use 3.11
poetry env use python3.11
- name: Install dependencies
run: |
poetry install --no-root
Expand Down Expand Up @@ -446,7 +446,7 @@ jobs:
cache-dependency-path: poetry.lock
- name: Set Poetry environment
run: |
poetry env use 3.11
poetry env use python3.11
- name: Install dependencies
run: |
poetry install --no-root
Expand Down Expand Up @@ -493,7 +493,7 @@ jobs:
cache-dependency-path: poetry.lock
- name: Set Poetry environment
run: |
poetry env use 3.11
poetry env use python3.11
- name: Install dependencies
run: |
poetry install --no-root
Expand Down Expand Up @@ -642,7 +642,7 @@ jobs:
cache-dependency-path: poetry.lock
- name: Set Poetry environment
run: |
poetry env use 3.11
poetry env use python3.11
- name: Install dependencies
run: |
poetry install --no-root
Expand Down Expand Up @@ -693,7 +693,7 @@ jobs:
cache-dependency-path: poetry.lock
- name: Set Poetry environment
run: |
poetry env use 3.11
poetry env use python3.11
- name: Install dependencies
run: |
poetry install --no-root
Expand Down Expand Up @@ -741,7 +741,7 @@ jobs:
cache-dependency-path: poetry.lock
- name: Set Poetry environment
run: |
poetry env use 3.11
poetry env use python3.11
- name: Install dependencies
run: |
poetry install --no-root
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/.static-type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
cache-dependency-path: poetry.lock
- name: Set Poetry environment
run: |
poetry env use 3.11
poetry env use python3.11
- name: Install dependencies
run: |
poetry install --no-root
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ jobs:
- name: Set Poetry environment
working-directory: api-python
run: |
poetry env use 3.11
poetry env use python3.11
- name: Install dependencies
working-directory: api-python
run: |
Expand Down Expand Up @@ -567,7 +567,7 @@ jobs:
- name: Set Poetry environment
working-directory: hm-spark/applications/find-taxi-top-routes
run: |
poetry env use 3.12
poetry env use python3.12
- name: Install dependencies
working-directory: hm-spark/applications/find-taxi-top-routes
run: |
Expand Down Expand Up @@ -603,7 +603,7 @@ jobs:
- name: Set Poetry environment
working-directory: hm-spark/applications/find-taxi-top-routes-sql
run: |
poetry env use 3.12
poetry env use python3.12
- name: Install dependencies
working-directory: hm-spark/applications/find-taxi-top-routes-sql
run: |
Expand Down Expand Up @@ -845,7 +845,7 @@ jobs:
- name: Set Poetry environment
working-directory: graph-neural-network
run: |
poetry env use 3.8
poetry env use python3.8
- name: Install dependencies
working-directory: graph-neural-network
run: |
Expand Down Expand Up @@ -881,7 +881,7 @@ jobs:
- name: Set Poetry environment
working-directory: convolutional-neural-network
run: |
poetry env use 3.10
poetry env use python3.10
- name: Install dependencies
working-directory: convolutional-neural-network
run: |
Expand Down Expand Up @@ -950,7 +950,7 @@ jobs:
- name: Set Poetry environment
working-directory: convolutional-neural-network
run: |
poetry env use 3.10
poetry env use python3.10
- name: Install dependencies
working-directory: convolutional-neural-network
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ poetry-env-list:
# ~/Library/Caches/pypoetry/virtualenvs
poetry env list
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-env-remove:
poetry env remove xxx
poetry-update-lock-file:
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ make kubernetes-clean
## API Server - Python

- **Flask** - Web framework
- **Flask-APScheduler** - APScheduler
- **Flask-CORS** - Cross-Origin Resource Sharing (CORS)
- **Flask-Sock** - WebSocket
- **confluent-kafka** - Kafka client
- **Gunicorn** - Python web server gateway interface (WSGI) HTTP server
- **asyncpg** - PostgreSQL client
Expand Down
2 changes: 1 addition & 1 deletion api-python/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion aws/amazon-sagemaker/pytorch-mnist/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion convolutional-neural-network/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion data-distribution-service/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion dbt/dbt_hm_postgres/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion delta-lake/read-delta-lake-by-amazon-athena/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion delta-lake/read-delta-lake-by-trino/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion delta-lake/write-to-delta-lake/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion feature-store/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion graph-neural-network/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.8
poetry env use python3.8
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-airflow/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-geopandas/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-kubeflow/pipelines/calculate/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-kubeflow/pipelines/classify-mnist/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-langchain/applications/chat-pdf/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-locust/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-mlflow/experiments/classify-mnist/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-mlflow/experiments/predict-diabetes/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-open3d/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-prefect/workflows/calculate/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-prefect/workflows/greet/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-prefect/workflows/ingest-data/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-prefect/workflows/print-platform/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-prowler/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-rasa/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.9
poetry env use python3.9
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-ray/applications/greet/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-serial/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-skypilot/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-spark/applications/analyze-coffee-customers/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-spark/applications/find-retired-people-python/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-spark/applications/find-taxi-top-routes-sql/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-spark/applications/find-taxi-top-routes/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-spark/applications/recommend-movies/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-supervision/detect-objects/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hm-xxhash/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.11
poetry env use python3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
2 changes: 1 addition & 1 deletion hugging-face/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
poetry-env-use:
poetry env use 3.10
poetry env use python3.10
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
Expand Down
Loading

0 comments on commit 4369518

Please sign in to comment.