Jean-Paul Calderone
90e08314c2
try to shed root privileges
...
We have root on CircleCI in the docker container. We can't currently shed
them before we get inside the flake app because we can't run `nix build` as
non-root inside the nix container. :/
https://github.com/nix-community/docker-nixpkgs/issues/62
2023-07-20 10:58:10 -04:00
Jean-Paul Calderone
08e364bbab
numpy is not supported on python38 anymore
2023-07-20 09:06:05 -04:00
Jean-Paul Calderone
44502b8620
remove unused import
2023-07-19 18:09:10 -04:00
Jean-Paul Calderone
a3f50aa481
bump to the newer nixpkgs branch
2023-07-19 17:29:50 -04:00
Jean-Paul Calderone
ddfd95faff
comment tweak
2023-07-19 14:33:49 -04:00
Jean-Paul Calderone
d85f8d7caf
some more comments on the flake parts
2023-07-19 14:27:28 -04:00
Jean-Paul Calderone
b0397d3d08
Replace default.nix with a compatibility shim
...
This also means we drop our niv dependency
2023-07-19 13:57:55 -04:00
Jean-Paul Calderone
93f2a7a717
refer to non-duplicate ticket
2023-07-19 13:51:47 -04:00
Jean-Paul Calderone
e7d98e69a1
Merge remote-tracking branch 'origin/master' into 3903.nix-flake.2
2023-07-11 20:12:02 -04:00
Jean-Paul Calderone
c6daeaf4a3
Merge pull request #1313 from exarkun/4045.typechecks-vs-click
...
suppress the new click type checking errors
Also address an importlib_resources / towncrier incompatibility.
Fixes: ticket:4045
2023-07-11 20:05:19 -04:00
Jean-Paul Calderone
f354b3ad70
Merge pull request #1312 from exarkun/4044.simpler-webish-test
...
Make a TahoeLAFSSite test simpler and more reliable
Fixes: ticket:4044
2023-07-11 17:21:44 -04:00
Jean-Paul Calderone
eef52fa59f
remove unused imports
2023-07-11 16:32:33 -04:00
Jean-Paul Calderone
79512a93e7
Adjust the temp factory return type
...
BinaryIO is a subclass of IO[bytes] so it doesn't check out as
the return type of a callable we pass around.
Switch to the superclass instead.
2023-07-11 16:30:54 -04:00
Jean-Paul Calderone
c838967a54
Improve the name and type annotation of the tempfile factory
2023-07-11 16:15:56 -04:00
Jean-Paul Calderone
5553019c4e
switch to new nix profile
-based installation
2023-07-08 08:14:27 -04:00
Jean-Paul Calderone
454ab223d1
nope, we can't just do that
...
we lose permission to install stuff
2023-07-08 08:10:52 -04:00
Jean-Paul Calderone
6710d625a2
can we just run as an unprivileged user?
2023-07-08 08:08:54 -04:00
Jean-Paul Calderone
e3e223c8d6
bump to a newer nixos image
2023-07-08 08:08:47 -04:00
Jean-Paul Calderone
2f00e989d4
Merge branch '4045.typechecks-vs-click' into 3903.nix-flake.2
2023-07-08 07:58:15 -04:00
Jean-Paul Calderone
c06e3e12ba
try to work-around towncrier compatibility issue
2023-07-07 16:32:15 -04:00
Jean-Paul Calderone
dfd34cfc0b
suppress the new click mypy errors
2023-07-07 16:26:31 -04:00
Jean-Paul Calderone
3129898563
news fragment
2023-07-07 16:04:54 -04:00
Jean-Paul Calderone
4b23b779e4
Reduce the amount of test suite gymnastics with new WebishServer API
...
Instead of forcing the test suite to try to discover the location of an
unnamed temporary file, let it just assert that the file is created in the
directory specified in the temporary file factory.
2023-07-07 16:04:37 -04:00
Jean-Paul Calderone
fd05602608
Reduce the amount of test suite gymnastics with new WebishServer API
...
Instead of forcing the test suite to try to discover the location of an
unnamed temporary file, let it just assert that the file is created in the
directory specified in the temporary file factory.
2023-07-07 16:00:00 -04:00
Jean-Paul Calderone
0eb160f42c
switch to the working version of nixpkgs by default
2023-07-07 14:49:36 -04:00
Jean-Paul Calderone
f7dd63407f
move all of the Python jobs to the nixpkgs unstable branch
...
This is the only place we can get a compatible pyOpenSSL/cryptography at the moment
2023-07-07 12:17:39 -04:00
Jean-Paul Calderone
2271ca4698
add missing test dependency
2023-07-07 11:47:04 -04:00
Jean-Paul Calderone
ddf4777153
link to the ticket
2023-07-07 10:37:05 -04:00
Jean-Paul Calderone
94e608f136
more python package tweaks
...
also point nixpkgs-unstable at HEAD of a PR with a cryptography upgrade
I tried just overriding the upgrade into place but it results in infinite
recursion, I suppose because cryptography is a dependency of some of the build
tools and needs extra handling that I don't feel like figuring out for this
short-term hack. someday the upgrade will land in nixpkgs master and we can
switch back.
2023-07-07 10:02:52 -04:00
Jean-Paul Calderone
72539ddfc7
refactor the env builders a bit
2023-07-04 14:39:26 -04:00
Jean-Paul Calderone
9788e4c12f
fix the test app definition
2023-07-04 14:36:46 -04:00
Jean-Paul Calderone
3871a92890
fix another outdated comment
2023-07-04 14:36:27 -04:00
Jean-Paul Calderone
bf1db85219
slightly regularize nixpkgs handling
2023-07-04 14:20:50 -04:00
Jean-Paul Calderone
8a53175655
compatibility with newer nixpkgs that includes the fix
2023-07-04 13:52:21 -04:00
Jean-Paul Calderone
d455e3c88f
get more output from the build step
2023-07-04 13:45:01 -04:00
Jean-Paul Calderone
4b932b8699
turn off a lot of autobahn dependencies we don't need
2023-07-04 13:43:18 -04:00
Jean-Paul Calderone
35254adebf
try to make noise to avoid ci timeouts
2023-07-04 13:28:24 -04:00
Jean-Paul Calderone
f5dd14e086
use a constant nixpkgs for build environment setup
2023-07-04 13:24:33 -04:00
Jean-Paul Calderone
4646c5ea38
identify the nixpkgs input correctly
2023-07-04 13:22:37 -04:00
Jean-Paul Calderone
84eb1a3e32
still limit cores during build though
2023-07-04 13:13:16 -04:00
Jean-Paul Calderone
3d62b9d050
drop the separate build-dependencies step
...
Since we don't run the unit tests as part of the package build now we don't
need it
2023-07-04 13:12:28 -04:00
Jean-Paul Calderone
95ee3994a9
get a jmespath interpreter
2023-07-04 13:08:00 -04:00
Jean-Paul Calderone
2ddb0970a3
access to "experimental" nix commands
2023-07-04 12:50:48 -04:00
Jean-Paul Calderone
452ba6af32
try to get ci to use the flake
2023-07-04 12:48:45 -04:00
Jean-Paul Calderone
9247437535
Add a flake with some packages and apps and an overlay
2023-07-04 12:43:23 -04:00
Itamar Turner-Trauring
1b99e23b9a
Merge pull request #1308 from tahoe-lafs/4035-new-mypy
...
Upgrade to new mypy
Fixes ticket:4035
2023-06-26 15:52:42 -04:00
Itamar Turner-Trauring
a7100c749d
Specific commit
2023-06-26 11:20:46 -04:00
Itamar Turner-Trauring
a7f45ab355
If this ever does get called, make the error less obscure.
2023-06-26 11:09:32 -04:00
Itamar Turner-Trauring
5f9e784964
Better explanation
2023-06-26 09:06:28 -04:00
Itamar Turner-Trauring
992687a8b9
News fragment
2023-06-26 09:05:36 -04:00