Skip to content

Commit 2395577

Browse files
author
Andrew Brookins
committed
Include editable self-reference in requirements.in
1 parent ec94f9a commit 2395577

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env: env/bin/activate
2020

2121
env/bin/activate: requirements.txt
2222
test -d env || python3.8 -m venv env
23-
. env/bin/activate; pip install --upgrade pip; pip install pip-tools wheel; pip-sync requirements.txt requirements-dev.txt; pip install -e .
23+
. env/bin/activate; pip install --upgrade pip; pip install pip-tools wheel; pip-sync requirements.txt requirements-dev.txt
2424
touch env/bin/activate
2525

2626
mypy: env

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ Before installing dependencies, activate the virtualenv:
4848

4949
source env/bin/activate
5050

51-
Install the app and its dependencies by running the following command from the
51+
Install the app and its dependencies by running the following commands from the
5252
base directory of the project:
5353

54-
pip install -e .
54+
pip install --upgrade pip
55+
pip install wheel pip-tools
56+
pip-sync requirements.txt requirements-dev.txt
5557

5658
### Redis
5759

@@ -158,7 +160,7 @@ To do, first activate the project's virtual environment:
158160
Then run the `flask` command:
159161

160162
$ FLASK_APP=redisolar flask run --port=8001
161-
163+
162164
## Running tests
163165

164166
You can run `make test` to run the unit tests. Doing so will build
@@ -169,7 +171,7 @@ a virtualenv automatically if you have not already done so.
169171
You can run individual tests by calling `pytest` manually. To do, first activate the project's virtual environment:
170172

171173
$ source env/bin/activate
172-
174+
173175
Then run `pytest` with whatever options you want. For example, here is how you
174176
run a specific test:
175177

@@ -189,14 +191,14 @@ You might see an error like this (or many of them) when you try to run the
189191
tests:
190192

191193
ERROR tests/scripts/test_update_if_lowest.py::test_update_if_lowest_unchanged - redis.exceptions.ConnectionError: Error 61 connecting to localhost:6379. Connection refused.
192-
194+
193195
The error is telling you that Redis is not running on port 6379. Make sure
194196
you've started Redis -- exactly how to do so depends on your operation system
195197
and the way you installed Redis. For example, if you installed via Homebrew on a
196198
Mac, the command is:
197199

198-
brew services start redis
199-
200+
brew services start redis
201+
200202
### Why do I get an "Authentication required" error when I try to run the tests/dev server?
201203

202204
Your Redis instance requires a username and/or password to connect. First, find

requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ click==7.1.1
1010
redistimeseries==0.8.0
1111
python-dotenv==0.15.0
1212
cryptography<3.4 # Last version without a Rust dependency
13+
-e .

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#
55
# pip-compile requirements.in
66
#
7+
-e file:///Users/andrewbrookins/src/ru102py
8+
# via -r requirements.in
79
aniso8601==8.1.1
810
# via flask-restful
911
cffi==1.14.4

0 commit comments

Comments
 (0)