From e5b4c74e59e49919b357ffc0a80d56407e01ac35 Mon Sep 17 00:00:00 2001 From: chadwhitacre <> Date: Tue, 21 Jul 2020 10:42:48 +0000 Subject: [PATCH] Add section about setting up dev env [Imported from Trac: page Python3, version 9] --- Python3.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Python3.md b/Python3.md index c91af92..5934ff6 100644 --- a/Python3.md +++ b/Python3.md @@ -6,6 +6,10 @@ * Reduce errors by relying on Python 2 behavior and tests as well as manual review. * Try to reduce grunt work. +## How to set up your development environment + +We use [tox](https://tox.readthedocs.io/en/latest/) to standardize environments across developers and CI. So first install tox (globally, probably) and then in your Tahoe-LAFS working copy run `tox -e py36 --notest` to bootstrap the `py36` virtualenv. Then activate the environment with `source .tox/py36/bin/activate` or equivalent and run `trial allmydata.test.test_python3` as a smoke test. + ## How to choose a module to port TBD, something involving core abstractions first, then dependency graph topological traversal.