Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
122a000
WIP
hacklschorsch Feb 16, 2023
190520f
WIP
hacklschorsch Feb 16, 2023
73f9d19
Oops, wrong license copypasta
hacklschorsch Feb 16, 2023
07027a8
Clean up
hacklschorsch Feb 16, 2023
d825799
Begin a tahoe-lafs package as dependency with plain buildPythonPackage
hacklschorsch Feb 23, 2023
55a1100
First successful build w/o mach-nix
hacklschorsch Mar 2, 2023
fa760e0
a thing worked
hacklschorsch Mar 9, 2023
41932f9
... next step: Use our twisted package and see if it fixes the tests.
hacklschorsch Mar 9, 2023
53a12bd
White space
hacklschorsch Mar 16, 2023
3a0e444
flake.nix and flake.lock - with new python-challenge-bypass-ristretto
hacklschorsch Mar 16, 2023
016b356
[pairing] upgrade Twisted to 22.10.0
exarkun Mar 16, 2023
4a03a7d
move packages into the python packageOverrides section
exarkun Mar 16, 2023
02fc33b
Give the test environment the last test dependency it needs
exarkun Mar 16, 2023
be266d6
Move the tahoe-lafs expression into its own source file
exarkun Mar 16, 2023
76aad82
Switch to a source build for pycddl
exarkun Mar 16, 2023
5dc6711
Remove some vestigial mach-nix metadata
exarkun Mar 16, 2023
34c173d
indentation improvements
exarkun Mar 16, 2023
3233e27
Take postPatch from the Tahoe-LAFS buildArgs
exarkun Mar 16, 2023
4906896
use the correct name / attribute for the tahoe-lafs source
exarkun Mar 16, 2023
da6a53c
Set the nix package version so it agrees with the Python package version
exarkun Mar 16, 2023
5331c06
Merge remote-tracking branch 'origin/main' into un-mach
exarkun Mar 16, 2023
62f6488
Less mach-nix still
hacklschorsch Mar 30, 2023
bb7d40a
Merge remote-tracking branch 'hacklschorsch/un-mach' into un-mach
hacklschorsch Mar 30, 2023
b431750
Merge branch 'flake-compat' into un-mach
hacklschorsch Mar 30, 2023
6ef2dce
Expose our python using passthru
hacklschorsch Apr 6, 2023
9452ccb
Throw some more mach-nix out
hacklschorsch Apr 6, 2023
dfd1b41
Remove more mach
hacklschorsch Apr 6, 2023
0538bd4
Add flake8-isort package
hacklschorsch Apr 13, 2023
33b54d5
Add flake8-black package
hacklschorsch Apr 13, 2023
b1c68f8
Update nixpkgs 22.05 -> 22.11
hacklschorsch Apr 13, 2023
fe6539f
Add mypy-zope package that might work - or not
hacklschorsch Apr 13, 2023
ed60347
Add types-PyYAML package
hacklschorsch Apr 13, 2023
320e320
Newer python-cryptography brings its own type annotations
hacklschorsch Apr 13, 2023
e4da2da
Correct openapi spec validator package name
hacklschorsch Apr 13, 2023
4174908
Put correct version mypy-zope into package
hacklschorsch Apr 13, 2023
9eeac76
Turn on the ZKAPAuthorizer test suite
exarkun Apr 27, 2023
3bee946
Make it work with Tahoe-LAFS 1.18
exarkun Apr 27, 2023
63a52fb
Merge remote-tracking branch 'origin/451.some-logging-testing-incompa…
exarkun Apr 27, 2023
ac99bc4
Merge remote-tracking branch 'origin/main' into un-mach
exarkun Apr 27, 2023
87eaad0
update contributor docs
exarkun Apr 27, 2023
c02fcba
Get test and runtime dependencies into the devShell
exarkun Apr 27, 2023
db03f78
deduplicate more dependency declarations
exarkun Apr 27, 2023
1c7b642
remove commented out stuff
exarkun Apr 27, 2023
e7eb145
remove unused requirements files
exarkun Apr 27, 2023
3e31c27
put lint tools in the devShell
exarkun Apr 27, 2023
40130ed
slightly reduce duplication
exarkun Apr 27, 2023
e217cbd
fix tabs
exarkun Apr 27, 2023
22e6a95
deal with our conflicting dropin.cache file
exarkun Apr 27, 2023
cc86cd7
push the test running back into the special test outputs
exarkun Apr 27, 2023
145fed1
note we have to package some stuff ourselves
exarkun Apr 28, 2023
d3dff95
note about ignoring challenge-bypass-ristretto here
exarkun Apr 28, 2023
84584bb
whitespace
exarkun Apr 28, 2023
67ace19
we can check the other weird-ish module name that should work
exarkun Apr 28, 2023
d242f05
This is unused.
exarkun Apr 28, 2023
82e8e67
nixpkgs now includes a new-enough twisted
exarkun Apr 28, 2023
9ac76fd
Fix type errors
exarkun Apr 28, 2023
c114c57
Override Hypothesis so we can pick a specific version
exarkun May 1, 2023
4712620
speed up the build / fix some errors
exarkun May 1, 2023
bbc01f7
work around hypothesis#3630
exarkun May 1, 2023
fab91e3
leave a note about our autobahn patch
exarkun May 2, 2023
fef93f5
Merge remote-tracking branch 'origin/main' into un-mach
exarkun May 2, 2023
57e2151
try to debug the hang on CI
exarkun May 2, 2023
a9b618b
if we have to build for these steps, cache the results
exarkun May 2, 2023
c3806c3
group operations properly
exarkun May 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -381,22 +381,26 @@ jobs:
- run:
name: "Check Black"
command: |
nix run .#black -- --check --diff src
source .circleci/lib.sh
cache_if_able nix run -v .#black -- --check --diff src

- run:
name: "Check isort"
command: |
nix run .#isort -- --check --diff src
source .circleci/lib.sh
cache_if_able nix run .#isort -- --check --diff src

- run:
name: "Check flake8"
command: |
nix run .#flake8 -- src
source .circleci/lib.sh
cache_if_able nix run .#flake8 -- src

- run:
name: "Run Type Checks"
command: |
nix run .#mypy -- src
source .circleci/lib.sh
cache_if_able nix run .#mypy -- src


# A job that merges all of the coverage data and generates a report.
Expand Down
22 changes: 18 additions & 4 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,28 @@ Updating Dependencies
Python Dependencies
...................

We use `mach-nix <https://github.com/DavHau/mach-nix/>`_ to build python packages.
It uses a snapshot of PyPI to expose python dependencies to nix,
We use Nix to build python packages.
We take a snapshot of our Python dependencies from nixpkgs,
thus our python depedencies (on nix) are automatically pinned.
To update the PyPI snapshot (and thus our python dependencies), run
To do a minor nixpkgs update (and thus a python dependency update),
run

.. code:: shell

nix flake lock --update-input pypi-deps-db
nix flake lock --update-input nixpkgs

To do a major nixpkgs update (and thus a python dependency update),
edit ``flake.nix`` and change this line::

.. code:: nix

nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-22.11";

Change the ``ref`` query argument to a suitable value.
Then run the minor update command above.

For dependencies or versions of dependencies that are required but not available from nixpkgs,
we maintain our own packages in the ``nix/`` directory.

tahoe-lafs
..........
Expand Down
128 changes: 92 additions & 36 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading