Remove libpq-dev as requirement for standard install (#1442)

This commit is contained in:
Jonathan Zernik 2021-09-29 12:37:04 -07:00 committed by GitHub
parent 736b2af9cf
commit 508a4cb423
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View file

@ -25,7 +25,7 @@ COPY squeaknode ./squeaknode
COPY proto ./proto
COPY LICENSE MANIFEST.in README.md requirements.txt setup.cfg setup.py ./
RUN python3 setup.py install
RUN pip install .[postgres]
FROM python:3.8-slim-buster

View file

@ -8,7 +8,6 @@ Node for [Squeak protocol](https://github.com/yzernik/squeak/blob/master/docs/PR
* a bitcoin node
* an LND node
* Python 3.6 or later
* libpq-dev (`sudo apt install libpq-dev` on ubuntu)
#### Optional
* a Tor SOCKS5 proxy (you can open Tor Browser and run it in the background)
@ -43,7 +42,7 @@ Node for [Squeak protocol](https://github.com/yzernik/squeak/blob/master/docs/PR
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python setup.py install
$ pip install .
```
- Start squeaknode:
```

View file

@ -10,7 +10,6 @@ grpcio-tools==1.39.0
importlib_resources==1.4.0
mypy-protobuf==2.9
protobuf==3.17.3
psycopg2==2.9.1
PySocks==1.7.1
python-bitcoinlib==0.11.0
pyzmq==22.3.0

View file

@ -97,7 +97,10 @@ setup(
packages=find_packages(),
include_package_data=True,
zip_safe=False,
extras_require={"test": ["pytest", "coverage"]},
extras_require={
"test": ["pytest", "coverage"],
"postgres": ["psycopg2"],
},
entry_points={
'console_scripts': [
'squeaknode = squeaknode.main:main',