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

Add md4c, pymd4c and mdpo packages #102668

Closed
wants to merge 4 commits into from
Closed

Add md4c, pymd4c and mdpo packages #102668

wants to merge 4 commits into from

Conversation

EuAndreh
Copy link

@EuAndreh EuAndreh commented Nov 3, 2020

Motivation for this change

Add mdpo package.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • 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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Execution of binary tested with:

nix-shell -I nixpkgs=. -p md4c --run 'md2html -h'
nix-shell -I nixpkgs=. -p 'python3.withPackages (p: [ p.mdpo ])' --run 'md2po --help'

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

thanks for opening your first PR to nixpkgs.

Whats the value added to nixpkgs by adding this? the package seems to be a personal project with no release management (other than uploads to pypi). https://github.com/mondeja/mdpo

@@ -2733,6 +2733,10 @@
fingerprint = "67FE 98F2 8C44 CF22 1828 E12F D57E FA62 5C9A 925F";
}];
};
euandreh = {
name = "EuAndreh";
email = "eu@euandre.org";
Copy link
Contributor

Choose a reason for hiding this comment

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

please add github (name) and githubId

pkgs/development/libraries/md4c/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/md4c/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/md4c/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/md4c/default.nix Show resolved Hide resolved
pkgs/development/python-modules/pymd4c/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/pymd4c/default.nix Outdated Show resolved Hide resolved
maintainers/maintainer-list.nix Show resolved Hide resolved
@@ -5183,6 +5185,8 @@ in {

pymc3 = callPackage ../development/python-modules/pymc3 { };

pymd4c = callPackage ../development/python-modules/pymd4c { };
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pymd4c = callPackage ../development/python-modules/pymd4c { };
pymd4c = callPackage ../development/python-modules/pymd4c {
inherit (pkgs) pkg-config;
};

@EuAndreh
Copy link
Author

EuAndreh commented Nov 3, 2020 via email

@EuAndreh
Copy link
Author

EuAndreh commented Nov 3, 2020 via email

@EuAndreh
Copy link
Author

EuAndreh commented Nov 3, 2020 via email

@jonringer
Copy link
Contributor

What are you looking for other than the pypi releases?

release tags or branches. Something that says, "I want people to package this".

@mondeja
Copy link

mondeja commented Nov 4, 2020

release tags or branches. Something that says, "I want people to package this".

Hello, I'm the maintainer of mdpo package. The release process will be updated to tags soon, but I've maintained using only PyPI because the package have been in beta status, with breaking changes even without major versions updates. I can report it here when will be updated to tags.

@EuAndreh
Copy link
Author

EuAndreh commented Nov 4, 2020 via email

@mondeja
Copy link

mondeja commented Nov 4, 2020

Done, as of v0.3.0, mdpo releases will be made through tags and it will strictly comply with semantic versioning.

@jonringer
Copy link
Contributor

Well, this is actually very re-assuring

@jonringer
Copy link
Contributor

TBH, I didn't weighted this too much when packaging it. I haven't encountered this type of discussion before, too.

The reason why I brought this up, is there's a costs in adding a package to nixpkgs (both in resources, and peoples time). The project should be "useful to many". This explanation should be added to the "motivation for this change" section of the PR template.

@EuAndreh
Copy link
Author

EuAndreh commented Nov 4, 2020 via email

@EuAndreh
Copy link
Author

EuAndreh commented Nov 4, 2020 via email

@EuAndreh
Copy link
Author

EuAndreh commented Nov 4, 2020 via email

@jonringer
Copy link
Contributor

I didn't want to tie being a package maintainer with my GitHub profile. The file says this is an optional step [0], so I chose to not add it.

I'll try to find related topic, but they are needed as we had some issues with people changing their name and not being able to find them easily

Comment on lines +2736 to +2865
euandreh = {
name = "EuAndreh";
email = "eu@euandre.org";
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
euandreh = {
name = "EuAndreh";
email = "eu@euandre.org";
};
euandreh = {
name = "EuAndreh";
email = "eu@euandre.org";
githubId = 2935736;
github = "EuAndreh";
};

Copy link
Member

Choose a reason for hiding this comment

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

@EuAndreh please take a look at jonringer's review comments.

@EuAndreh
Copy link
Author

EuAndreh commented Nov 5, 2020 via email

@EuAndreh
Copy link
Author

EuAndreh commented Nov 5, 2020 via email

@EuAndreh
Copy link
Author

EuAndreh commented Nov 25, 2020 via email

@SuperSandro2000
Copy link
Member

Sandro notifications@github.com writes:
At least pymd4c is python3.6 plus and fails to build on python27. Can you change that and check the other packages for similar version restrictions?
The change is just to use python3Packages.buildPythonPackage instead?

disabled = pythonOlder "3.6";

Otherwise it could mix and break the latest python with the version before that.

@EuAndreh
Copy link
Author

EuAndreh commented Nov 25, 2020 via email

@EuAndreh
Copy link
Author

EuAndreh commented Nov 25, 2020 via email

@EuAndreh
Copy link
Author

EuAndreh commented Nov 26, 2020 via email

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Dec 28, 2020

Result of nixpkgs-review pr 102668 run on x86_64-linux 1

5 packages built:
  • md4c
  • mdpo (python38Packages.mdpo)
  • python37Packages.mdpo
  • python37Packages.pymd4c
  • python38Packages.pymd4c

python37Packages.pymd4c.log
142:Ran 0 tests in 0.000s

python38Packages.pymd4c.log
142:Ran 0 tests in 0.000s

Please add doCheck = false; and add a pythonImportsCheck.

@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 102668 run on x86_64-darwin 1

4 packages built:
  • mdpo (python38Packages.mdpo)
  • python37Packages.mdpo
  • python37Packages.pymd4c
  • python38Packages.pymd4c

python38Packages.pymd4c.log
187:Ran 0 tests in 0.000s

python37Packages.pymd4c.log
187:Ran 0 tests in 0.000s

Add doCheck = false; and pythonImportsCheck.

@EuAndreh
Copy link
Author

EuAndreh commented Jan 16, 2021 via email

@@ -1,14 +1,22 @@
{ substituteAll, runtimeShell, jq, nix, lib }:
Copy link
Member

Choose a reason for hiding this comment

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

I think you did some mistake when rebasing. Please drop the changes to nixos-rebuild.

Comment on lines +2736 to +2865
euandreh = {
name = "EuAndreh";
email = "eu@euandre.org";
};
Copy link
Member

Choose a reason for hiding this comment

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

@EuAndreh please take a look at jonringer's review comments.

@ofborg ofborg bot removed the 6.topic: nixos label Jan 17, 2021
@EuAndreh
Copy link
Author

EuAndreh commented Jan 17, 2021 via email

@EuAndreh
Copy link
Author

EuAndreh commented Jan 17, 2021 via email

@SuperSandro2000
Copy link
Member

I'd rather not tie my contribution with my github profile.

You already did by opening this PR and if you ever rename your profile we just have a hard time finding your new name. It is not impossible and just makes the process harder.
I am totally fine if you do not want to add your real name, mail address gpg key or anything else but github name and id are already associated with this PR.

@EuAndreh
Copy link
Author

EuAndreh commented Jan 18, 2021 via email

@EuAndreh
Copy link
Author

Closing stale pull request. Future interested parties may pick this up and merge in the future.

@EuAndreh EuAndreh closed this Jun 29, 2021
@EuAndreh EuAndreh deleted the mdpo branch June 29, 2021 15:53
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

4 participants