Skip to content

Commit be2a524

Browse files
authored
Merge branch 'master' into fix-serializer-index-errors
2 parents 63695da + ec5f292 commit be2a524

File tree

11 files changed

+556
-10
lines changed

11 files changed

+556
-10
lines changed

Makefile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,51 @@ docker_config = --settings=config.docker-compose
44
gql_compose_config = -f docker-compose.yml -f Resources/compose/docker-compose-prod-graphql.yml
55
gqlv1beta_compose_config = -f docker-compose.yml -f Resources/compose/docker-compose-prod-graphql.yml -f Resources/compose/docker-compose-prod-graphql-v1beta.yml
66

7+
# Auto-detect Python and pip commands
8+
PYTHON := $(shell which python3 2>/dev/null || which python 2>/dev/null || echo python3)
9+
PIP := $(shell which pip3 2>/dev/null || which pip 2>/dev/null || echo pip3)
10+
711
.PHONY: help
812
.SILENT:
913

1014
help:
1115
@grep -E '^[a-zA-Z_-]+:.*?# .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?# "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
1216

1317
install: # Install base requirements to run project
14-
pip install -r requirements.txt
18+
$(PIP) install -r requirements.txt
1519

1620
dev-install: # Install developer requirements + base requirements
17-
pip install -r test-requirements.txt
21+
$(PIP) install -r test-requirements.txt
1822

1923
setup: # Set up the project database
20-
python manage.py migrate ${local_config}
24+
$(PYTHON) manage.py migrate ${local_config}
2125

2226
build-db: # Build database
23-
echo "from data.v2.build import build_all; build_all()" | python manage.py shell ${local_config}
27+
echo "from data.v2.build import build_all; build_all()" | $(PYTHON) manage.py shell ${local_config}
2428

2529
wipe-sqlite-db: # Delete's the project database
2630
rm -rf db.sqlite3
2731

2832
serve: # Run the project locally
29-
python manage.py runserver ${local_config}
33+
$(PYTHON) manage.py runserver ${local_config}
3034

3135
test: # Run tests
32-
python manage.py test ${local_config}
36+
$(PYTHON) manage.py test ${local_config}
3337

3438
clean: # Remove any pyc files
3539
find . -type f -name '*.pyc' -delete
3640

3741
migrate: # Run any outstanding migrations
38-
python manage.py migrate ${local_config}
42+
$(PYTHON) manage.py migrate ${local_config}
3943

4044
make-migrations: # Create migrations files if schema has changed
41-
python manage.py makemigrations ${local_config}
45+
$(PYTHON) manage.py makemigrations ${local_config}
4246

4347
shell: # Load a shell
44-
python manage.py shell ${local_config}
48+
$(PYTHON) manage.py shell ${local_config}
4549

4650
openapi-generate:
47-
python manage.py spectacular --color --file openapi.yml ${local_config}
51+
$(PYTHON) manage.py spectacular --color --file openapi.yml ${local_config}
4852

4953
docker-up: # (Docker) Create services/volumes/networks
5054
docker compose up -d

data/v2/csv/pokedex_version_groups.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ pokedex_id,version_group_id
3838
31,25
3939
32,26
4040
33,27
41+
34,30

data/v2/csv/pokedexes.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ id,region_id,identifier,is_main_series
3131
31,10,paldea,1
3232
32,10,kitakami,1
3333
33,10,blueberry,1
34+
34,6,lumiose-city,1

data/v2/csv/pokemon.csv

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,3 +1301,29 @@ id,identifier,species_id,height,weight,base_experience,order,is_default
13011301
10275,ogerpon-cornerstone-mask,1017,12,398,275,,0
13021302
10276,terapagos-terastal,1024,3,160,90,,0
13031303
10277,terapagos-stellar,1024,17,770,90,,0
1304+
10278,clefable-mega,36,17,423,,,0
1305+
10279,victreebel-mega,71,45,1255,,,0
1306+
10280,starmie-mega,121,23,800,,,0
1307+
10281,dragonite-mega,149,55,2900,,,0
1308+
10282,meganium-mega,154,24,2010,,,0
1309+
10283,feraligatr-mega,160,23,1088,,,0
1310+
10284,skarmory-mega,227,17,404,,,0
1311+
10285,froslass-mega,478,26,296,,,0
1312+
10286,emboar-mega,500,18,1803,,,0
1313+
10287,excadrill-mega,530,9,600,,,0
1314+
10288,scolipede-mega,545,32,2305,,,0
1315+
10289,scrafty-mega,560,11,310,,,0
1316+
10290,eelektross-mega,604,30,1800,,,0
1317+
10291,chandelure-mega,609,25,696,,,0
1318+
10292,chesnaught-mega,652,16,900,,,0
1319+
10293,delphox-mega,655,15,390,,,0
1320+
10294,greninja-mega,658,15,400,,,0
1321+
10295,pyroar-mega,668,15,933,,,0
1322+
10296,floette-mega,670,2,1008,,,0
1323+
10297,malamar-mega,687,29,698,,,0
1324+
10298,barbaracle-mega,689,22,1000,,,0
1325+
10299,dragalge-mega,691,21,1003,,,0
1326+
10300,hawlucha-mega,701,10,250,,,0
1327+
10301,zygarde-mega,718,77,6100,,,0
1328+
10302,drampa-mega,780,30,2405,,,0
1329+
10303,falinks-mega,870,16,990,,,0

0 commit comments

Comments
 (0)