Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buku: 3.7 -> 3.8 #45033

Merged
merged 6 commits into from Aug 20, 2018
Merged

buku: 3.7 -> 3.8 #45033

merged 6 commits into from Aug 20, 2018

Conversation

infinisil
Copy link
Member

Motivation for this change

Release notes:

  • A self-hosted http server, bukuserver, that exposes core functionality
    • browsable frontend on a local webhost server
    • flask default cli interface is used instead custom one
    • handle not only api but also html request
    • statistic page
    • CRUD on bookmark
    • eplaces the earlier api module
  • Import complete folder hierarchy as tags during auto-import
  • Merge tags on import even if bookmark URL exists
  • Orgfile import/export
  • Show bookmarks to be deleted before deletion
  • Merge tags during import if bookmark exists
  • Escape regex metachars in regex input

The new server component requires a bunch of new packages.

Closure size diff: 116MB -> 156MB, due to the new server component

Ping @jfrankenau @dotlambda

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@infinisil infinisil requested a review from FRidh as a code owner August 14, 2018 17:52
sha256 = "0s9s9j9xmhkzw7apqx170fyvc0f800fd4a5jfn8xvj9k6vryd32b";
};

doCheck = false;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: buku

Partial log (click to expand)

   # es,est,tes,test

similar tags:

1. es
2. est
3. news
4. tes

/nix/store/xlpj3qlqqif1mjvrkspq92w469710m2r-buku-3.8

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: buku

Partial log (click to expand)

   # es,est,tes,test

similar tags:

1. es
2. est
3. news
4. tes

/nix/store/fw5m1svsqcgfqncn8p1xdyfiq4zrb383-buku-3.8

@@ -5391,6 +5397,8 @@ in {

flask_oauthlib = callPackage ../development/python-modules/flask-oauthlib { };

flask_paginate = callPackage ../development/python-modules/flask-paginate { };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use hyphens, especially if the project itself also uses hyphens in the name.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's somewhat of a policy to prefer _ over - in nixpkgs, because using whatever the package is using gets confusing fast ("Why does foo_bar not exist, oh right it's foo-bar", "Why does bar-foo not exist, oh right it's bar_foo").

flask_api
flask_bootstrap
flask_paginate
flask_wtf
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mic92 Also look at these deps here, would be weird for some of them to have a "-"

Copy link
Member

@Mic92 Mic92 Aug 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are many counter example also in python packages and also for flask. I am not sure how consistent this was done for all flask packages, but it looks a bit messy, if the directory contains a hyphen as well as the upstream name, but we use sometimes hyphens and sometimes underscores.

@infinisil
Copy link
Member Author

@Mic92 I fixed the package attributes

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: buku

Partial log (click to expand)

   # es,est,tes,test

similar tags:

1. es
2. est
3. news
4. tes

/nix/store/l8qv8f44ipsbg7vpfsbyvzj4229dhywq-buku-3.8

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: buku

Partial log (click to expand)

   # es,est,tes,test

similar tags:

1. es
2. est
3. news
4. tes

/nix/store/x369i7rdaqhxkh36h7a0q7lclkrdmz3z-buku-3.8

@infinisil
Copy link
Member Author

@GrahamcOfBorg build buku

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: buku

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: buku

Partial log (click to expand)

   # es,est,tes,test

similar tags:

1. es
2. est
3. news
4. tes

/nix/store/l8qv8f44ipsbg7vpfsbyvzj4229dhywq-buku-3.8

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: buku

Partial log (click to expand)

   # es,est,tes,test

similar tags:

1. es
2. est
3. news
4. tes

/nix/store/x369i7rdaqhxkh36h7a0q7lclkrdmz3z-buku-3.8

sha256 = "0s9s9j9xmhkzw7apqx170fyvc0f800fd4a5jfn8xvj9k6vryd32b";
};

doCheck = !isPy3k;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed this to reflect that tests only fail with python 3, gist of the error still here: https://gist.github.com/Infinisil/5d5d425d9b1d9eceed30ca4546382900#file-error-log-L46

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: buku

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: buku

Partial log (click to expand)

/nix/store/l8qv8f44ipsbg7vpfsbyvzj4229dhywq-buku-3.8

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: buku

Partial log (click to expand)

/nix/store/x369i7rdaqhxkh36h7a0q7lclkrdmz3z-buku-3.8

@Mic92 Mic92 merged commit f520d7c into NixOS:master Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants