Pārlūkot izejas kodu

Always invoke `python3` explicitly since that is the standard convention and stops warnings in macOS about Python 2 deprecation.

Ben Wilber 5 mēneši atpakaļ
vecāks
revīzija
c0ba6e10ac
2 mainītis faili ar 13 papildinājumiem un 11 dzēšanām
  1. 7 4
      Makefile
  2. 6 7
      README.md

+ 7 - 4
Makefile

@@ -1,4 +1,7 @@
-.PHONY: lint format test testfast ready dumpinitialdata
+.PHONY: check lint format test testfast ready dumpinitialdata
+
+check:
+	python3 manage.py check
 
 format:
 	isort --atomic --skip-glob="venv/*" grunge
@@ -9,12 +12,12 @@ lint:
 	black --check --exclude="venv/" grunge
 
 test:
-	python manage.py test
+	python3 manage.py test
 
 testfast:
-	python manage.py test --failfast
+	python3 manage.py test --failfast
 
-ready: lint testfast
+ready: check lint testfast
 
 dumpinitialdata:
 	python manage.py dumpdata --natural-foreign --natural-primary \

+ 6 - 7
README.md

@@ -72,34 +72,33 @@ When you have completed the goals then you can open a Pull Request to this main
 This application is compatible with Python 3.10 and later.  You can set up a virtual environment with:
 
 ```shell
-$ python3 -m venv venv
+$ python3 -m venv --upgrade-deps venv
 $ source venv/bin/activate
 ```
 
 ### Install dependencies
 
 ```shell
-$ pip install --upgrade pip wheel
-$ pip install --requirement=requirements.txt
+$ python3 -m pip install --requirement=requirements.txt
 ```
 
 ### Initialize the development database
 
 ```shell
-$ python manage.py migrate
-$ python manage.py loaddata initial_data
+$ python3 manage.py migrate
+$ python3 manage.py loaddata initial_data
 ```
 
 ### Add a development superuser
 
 ```shell
-$ python manage.py createsuperuser
+$ python3 manage.py createsuperuser
 ```
 
 ### Run the development server
 
 ```shell
-$ python manage.py runserver
+$ python3 manage.py runserver
 ```
 
 Log into the Django admin with your superuser account at: