Use newer ditto/update python (#240)

* feat: use newer ditto/update python

* fix: use right executor

* sec: fix deps
This commit is contained in:
Alessandro Pezzè 2024-05-07 21:23:56 +02:00 committed by GitHub
parent af1cc9a0d3
commit 0df322c83e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 19 deletions

View File

@ -1,29 +1,29 @@
version: 2.1
executors:
python36:
python3:
docker:
- image: cimg/python:3.6.15
- image: cimg/python:3.12.3
commands:
ditto-transform:
description: Run Ditto in order to transform the BASE_URL instead of http://localhost
steps:
- run:
name: Install requirements.txt
command: pip install --user -r requirements.txt
name: Install Ditto
command: pip install --user 'pokeapi-ditto==1.0.2'
- run:
name: Transform api-data's JSON files to have the correct BASE_URL instead of http://localhost
command: bash -x scripts/transform.sh
jobs:
test:
executor: python36
executor: python3
steps:
- checkout
- ditto-transform
build-and-deploy:
executor: python36
executor: python3
steps:
- checkout
- ditto-transform

View File

@ -1,11 +0,0 @@
certifi==2018.8.24
chardet==3.0.4
genson==1.0.1
idna==2.7
multidict==4.4.2
odictliteral==1.0.0
pokeapi-ditto==0.6.1
requests==2.20.0
tqdm==4.26.0
urllib3==1.24.2
yarl==1.2.6

View File

@ -34,8 +34,8 @@ git branch -D "$BRANCH_NAME" || true
git branch "$BRANCH_NAME"
git checkout "$BRANCH_NAME"
pip install -r requirements.txt
rm -r ./data
pip install 'pokeapi-ditto==1.0.2'
rm -rf ./data
ditto clone --src-url http://localhost/ --dest-dir ./data
# (╯°□°)╯ *always* assume magikarp failed and grab it again #clowntown
ditto clone --src-url http://localhost/ --dest-dir ./data --select pokemon/129