Commit graph

42 commits

Author SHA1 Message Date
Jonathan Zernik
058240841d
Use python venv (#1920)
* Automatically install requirements.txt in setup

* Remove extra copy of requirements.txt in dockerfile
2021-12-29 18:48:53 -08:00
Jonathan Zernik
b1087394f2
Add long description to setup.cfg (#1828) 2021-11-27 22:23:02 -08:00
Jonathan Zernik
805f5aea62
Fix package python sdist for pypi (#1796) 2021-11-11 02:59:51 -08:00
Jonathan Zernik
3f9a67a439
Change description in setup.py (#1497) 2021-10-04 19:20:12 -07:00
Jonathan Zernik
508a4cb423
Remove libpq-dev as requirement for standard install (#1442) 2021-09-29 12:37:04 -07:00
Jonathan Zernik
4922e82a38
Remove commented line from setup.py (#1408) 2021-09-24 09:01:32 -07:00
Jonathan Zernik
7bd75bea50
Move mypy protobuf to dev requirements (#1374)
* Move mypy-protobuf to dev requirements

* Remove install_requires from setup.py and fix pinned version of sqlalchemy
2021-09-20 22:24:52 -07:00
Jonathan Zernik
f587acc095
Use typedconfig with repr function (#1255)
* Use typedconfig with repr function

* Pin version of typedconfig in requirements.txt
2021-09-09 18:06:14 -07:00
Jonathan Zernik
8c8a039ba2
Use socks5 proxy for outbound connection when available (#1226)
* Use socks5 proxy for outbound connection when available

* Remove log lines in peer client for tox proxy
2021-09-08 12:13:12 -07:00
Jonathan Zernik
49ed12e84a
Use newer version of squeaklib with new inv struct (#1198)
* Use newer version of squeaklib with new inv struct

* Refactor peer message handler

* Use constants for inv types from new version of squeaklib
2021-09-05 16:19:14 -07:00
Jonathan Zernik
76ad744936
Updrage squeaklib to 0.7.1 (#1194)
* Updrage squeaklib to 0.7.1

* Add case to handle secret key msg in peer msg handler

* Add fields for custom price and use custom price to profile table

* Got itest working with new profile fields

* Use default values for profile struct constructor

* Fix db migration to use use profile columns

* Got itest passing for set use custom price

* Show custom price or default price in profile page

* Change wording of selling with price in profile page

* Got set use custom price toggle working in configure profile dialog
2021-09-05 12:30:58 -07:00
Jonathan Zernik
26fced200d
Upgrade squeaklib to version 7 (#1188)
* Use newer version of squeaklib with decryption key outside squeak object

* Remove todo comment about clearing decryption key before insert squeak in db
2021-09-04 16:58:33 -07:00
Jonathan Zernik
620cdae96c
Add license headers (#1080)
* Add pre-commit hook for license headers

* Configure pre-commit hook for license headers only for python

* Add license headers to python files
2021-08-27 18:31:53 -07:00
Jonathan Zernik
40ee4b70f9
Use newer version of squeaklib with fixed repr (#1035) 2021-08-22 23:46:43 -07:00
Jonathan Zernik
9023131112
Add subscribe msg (#1016)
* Added subscribe message and send after connection handshake

* Added new squeak worker

* Got itest working for subscribe squeaks peer message

* Update peer squeak subscriptions on follow profile changed.

* Remove sync squeaks worker
2021-08-22 01:46:05 -07:00
Jonathan Zernik
f652915355
Use tcp peer connection (#900)
* Got basic tcp connection working

* Got passing itest for open tcp connection

* Got most of protocol working. still need to send offer correctly

* Got offer from peer over tcp connectrion

* Got single squeak download working on tcp connection

* Remove rpc peer client

* Remove old rpc clients

* Remove old squeak client modules

* Got sharesqueaks peer message working

* Remove peer rpc server

* Remove server rpc fixtures

* Remove old itests

* Remove old sync modules

* Run worker background task to keep peers synced

* Add peer connection worker

* Add test for disconnect peer

* Remove old itest util

* Delete old peer rpc client helpers.

* Handle insert duplicate received offer

* Use more specific exception handling for duplicate offer insert
2021-07-09 21:07:46 -07:00
Jonathan Zernik
8178a114b8
Pin version of sqlalchemy (#890) 2021-03-18 20:58:24 -04:00
Jonathan Zernik
80d7eb1878
Update squeaklib version and use new make squeak function (#594) 2021-01-10 19:28:56 -08:00
Jonathan Zernik
c39dbb44f1
Improve squeaknode entrypoint command (#583)
* Improve squeaknode entrypoint command

* Fix pargser in main module
2021-01-08 14:17:43 -08:00
Jonathan Zernik
f263dd60dd
Create main.yml (#554)
* Create main.yml

Add the yaml file for the github action

* Update main.yml

Try build and push docker image

* Update main.yml

Fix image tag

* Update main.yml

Specify platforms in docker build action

* Upgrade pip in dockerfile

* Pin version of grpcio in requirements.txt

* Install pip requirements with only-binary

* Change grpcio version

* Remove only-binary option for pip install

* Update main.yml

cache docker layers

* Update main.yml

Push version tags to dockerhub

* Update main.yml

export and import cache to local

* Update main.yml

Fix image name
2021-01-03 21:00:49 -08:00
Jonathan Zernik
173130ab31
Use mypy precommit hook (#537)
* Add mypy precommit hook

* Add mypy precommit hook
2021-01-01 21:39:33 -08:00
Jonathan Zernik
22f6b4fc3c
Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
Jonathan Zernik
0c9e3c0788
Fix install_requires (#523) 2020-12-28 00:57:37 -08:00
Jonathan Zernik
1d8b25dcae
Use semantic versioning (#522) 2020-12-28 00:34:17 -08:00
Jonathan Zernik
62f21874f1
Autoformat python code with tox command (#510) 2020-12-26 02:01:22 -08:00
Jonathan Zernik
0a5a54554c
Use data classes instead of namedtuples (#508)
* Build mypy files for protos in tox env

* Include mypy check in make test

* Improve building offer from remote peer download

* Remove old methods from peer task
2020-12-26 01:00:58 -08:00
Jonathan Zernik
00fc72514f
Use squeaklib with ptlc (#502)
* Rename secret_key

* More work to convert to using PTLC

* Updated most code for PTLC

* More work to use ptlc with secret key

* Got itest passing

* Remove unused import

* Use version 0.5.0 of squeaklib

* Added simple unit test for squeak controller

* Use modular addition subtraction for secret key nonce tweak

* Move util to core folder

* Store secret key as hex in database

* Store nonce as hex in db
2020-12-25 20:17:54 -08:00
Jonathan Zernik
99ddc2df77
Rename to squeaknode (#342)
* Rename squeakserver to squeaknode and get itest passing

* Fix itest dockerfile

* Rename more squeakserver to squeaknode

* Rename database from squeakserver to squeaknode

* Update readme

* Remove frontend/build from git

* Rename squeakserver to squeaknode in tox and main
2020-10-29 14:35:17 -04:00
Jonathan Zernik
cd4caa0447
Ignore generated python pb2 files (#328)
* Got setup.py install working I think

* Got setup.py build working with both templates and protos

* Delete unused old proto dir inside squeakserver
2020-10-28 14:26:25 -04:00
Jonathan Zernik
8d1bb513ac
Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
Jonathan Zernik
a97b1a6cc8
Build python protos in setup (#254)
* Generate python proto files in setup.py

* Generate python protos in setup.py install

* Update readme
2020-08-20 04:41:35 -07:00
Jonathan Zernik
b88dce6146
Move main module (#252)
* Move main module out of server folder

* Check which database is used to load engine

* Remove imported lnd proto modules in lightning client
2020-08-20 00:34:14 -07:00
Jonathan Zernik
87b2a3de7d
Format imports with isort in makefile (#84) 2020-07-18 19:25:31 -07:00
Jonathan Zernik
fd2b31a2a6
Update readme (#61)
* Update readme

* Fix underlines in readme

* Fix config file reference in readme

* Use markdown for readme

* Fix markdown readme
2020-07-02 21:18:10 -07:00
Jonathan Zernik
88108f7810
Rename squeaknode to squeakserver (#28)
* Rename server entrypoint

* Updated manifest

* Moved db init.sql file

* Rename module to squeakserver
2020-06-04 17:47:49 -07:00
Jonathan Zernik
1f57374684
Remove static flask files, and rename project in setup.py (#27) 2020-06-04 17:14:38 -07:00
Jonathan Zernik
6b31583cd8
Remove flask as python dependency (#26) 2020-06-04 17:10:00 -07:00
Jonathan Zernik
b78e868f53
Connect client and server (#15)
* Remove threading from uploader.

* Create rpc_client class in client to connect to server (using grpc) and verify that the upload_squeak method in rpc_client gets calleed

* Add main class with entry point in squeaknod/server

* Added sqkserver command and service to docker-compose for test

* Add server handler class, and still trying to load rpc implementation of server proto

* Almost got server grpc proto working, now only lnd client failing with tls cert issue

* Added server service and got it working in itest, it still doesn't do anything.
2020-06-03 02:59:56 -07:00
Jonathan Zernik
6851466aed
Itest for squeaknodeclient (#3)
* Add itest for squeaknode client, not passing yet

* Got working itest with get wallet balance

* Change name of squeak node client class.
2020-03-01 00:15:24 -08:00
Jonathan Zernik
5189392f5a Remove maintainer from setup.py 2020-02-28 20:11:12 -08:00
Jonathan Zernik
35ed57cc8b Rename to squeaknode 2020-02-28 19:13:19 -08:00
Jonathan Zernik
cea55d63bd Initial commit 2020-02-22 19:33:40 -08:00