Commit Graph

35 Commits

Author SHA1 Message Date
mhchia
d7fabab3e1
Noise: add compiled pb2.py 2020-02-09 13:23:12 +08:00
mhchia
ce5663705f
Merge branch 'master' into feature/porting-to-trio 2019-12-24 02:19:43 +08:00
Jason Carver
d503950179 Fix all doc build warnings 2019-11-26 17:44:33 -08:00
Jason Carver
27da312285 Splice in project template
I tried to merge it so that future updates from the template will be
much easier.

The template is hosted at:
https://github.com/ethereum/ethereum-python-project-template
2019-11-26 13:30:41 -08:00
Jason Carver
07eecb5c69 Separate release-note build from release 2019-11-25 21:44:29 +01:00
Christoph Burgdorf
02fe35663c Setup towncrier to generate release notes 2019-11-25 21:44:29 +01:00
Chih Cheng Liang
bcd7890124
Move test utilities to tools (#356)
* move test factories to libp2p/tools

* remove unused inits

* move pubsub test utils to tools

* cleanup test_interop

* fix typing libp2p/tools/utils

* add typing to pubsub utils

* fix factories typing

* fix typing for floodsub_integration_test_settings

* fix rest of the typing

* fix isort
2019-11-21 11:47:54 +08:00
Jason Carver
444929d5fc Add tool to make package for smoke test 2019-11-15 11:25:03 -08:00
Alex Stokes
01ebfa760f
Add identify protobufs to makefile 2019-11-05 17:37:43 -08:00
Dominik Muhs
3439a2c10e Add docformatter to lintroll and tox CI check 2019-10-26 12:45:26 +02:00
Dominik Muhs
87ed98d7af Add newline before docstring summary 2019-10-24 20:10:36 +02:00
Dominik Muhs
eef505f2d9 Add automatic docstring formatter and apply 2019-10-24 08:41:10 +02:00
mhchia
006002f687
Move interop tests out of tests
It is moved to the top level package `tests_interop`, to avoid circular
dependency, with the dependency moved to `tox`.
2019-09-23 22:00:40 +08:00
Alex Stokes
fd08bcf624
Add secio protobufs 2019-08-24 22:37:43 +02:00
mhchia
59b373b48a
Add plaintext.proto
Update Makefile to handle the import in `plaintext.proto`.
Import path is modified to be relative to the project root.
And we run `protoc` from where `Makefile` locates, i.e. the project
root.

Reference:
- plaintext.proto: 62b2c6c482/sec/insecure/pb/plaintext.proto
2019-08-22 22:53:46 +08:00
Alex Stokes
0f81ca42a6
Add mypy protobufs plugin and regenerate protobufs 2019-08-15 16:01:44 -07:00
Alex Stokes
61f78c8feb
Add abstraction for a cryptographic key 2019-08-14 09:00:39 -07:00
Alex Stokes
a937c6f3fa
Enable mypy in Makefile 2019-08-13 14:32:54 -07:00
Alex Stokes
69ec86c871
Remove grpc dependency 2019-08-03 11:17:28 -07:00
mhchia
0b11e32000
Remove the TODO flag for flake8 2019-08-04 00:32:32 +08:00
mhchia
727342a767
Move flake8 settings to tox.ini
And add flake8 in the Makefile.
2019-08-04 00:11:49 +08:00
mhchia
4fef80595c Skip pb files in linters
In isort, black, and flake8, respectively.

Add `format` in Makefile

Run top level packages only

With `setup.py`, to avoid running other unrelated directories.

Refactor
2019-08-03 23:34:56 +08:00
Alex Stokes
a92d933ed2 Add isort to CI check 2019-08-03 17:50:14 +08:00
Alex Stokes
2dfd7794b6
add note about protoc version and add Make command to generate protobuf files 2019-08-02 12:20:48 -07:00
Alex Stokes
da9d5cadec
Disables mypy in CI
Also moves linting to Makefile to take advantage of globbing.
2019-08-02 11:46:43 -07:00
Jason Carver
af727b97f2
Merge pull request #8 from davesque/twine
Use twine for pypi uploading per packaging docs
2018-06-07 12:02:28 -07:00
David Sanders
a9d531615d
Fix ineffectual commands in Makefile 2018-06-07 12:23:32 -06:00
David Sanders
016f48d17d
Use twine for pypi uploading per packaging docs
See here:
https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives
2018-06-06 19:35:31 -06:00
David Sanders
32c8c981f2
Remove references to deprecated "py.test" 2018-06-04 16:36:02 -06:00
Jason Carver
588b1af6ee Makefile: deploy to upstream 2018-02-28 10:29:45 -08:00
Jason Carver
a9d9fec258 add doctest by default 2018-02-07 11:14:11 -08:00
Jason Carver
f7b0f07b45 fixups: rm template filler, xfail strict, make bug 2018-02-01 13:07:33 -08:00
Jason Carver
96a371705b bugfix: run tox -elint *after* isort
otherwise tox fails, and the auto-lint never runs
2018-01-30 15:17:50 -08:00
Jason Carver
76bfefa66c add make lint-roll to locally auto de-lint 2018-01-26 19:01:36 -08:00
Jason Carver
a7955a560e init 2018-01-24 16:00:28 -08:00