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

animdl: init at 1.7.27 #240329

Merged
merged 4 commits into from
Dec 3, 2023
Merged

animdl: init at 1.7.27 #240329

merged 4 commits into from
Dec 3, 2023

Conversation

PassiveLemon
Copy link
Contributor

@PassiveLemon PassiveLemon commented Jun 28, 2023

Description of changes

Adds Animdl, a cli scraper/downloader/streamer.
Adds Anchor, a Python library for scraping.
Adds Anitopy, a Python library for parsing anime video filenames.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@PassiveLemon
Copy link
Contributor Author

@Janik-Haag Also sorry for my PRs, they have been a little chaotic. I think I got it all sorted out though

@PassiveLemon
Copy link
Contributor Author

Huh? I did not change any endings. It's LF like it should be...

@Janik-Haag
Copy link
Member

@Janik-Haag Also sorry for my PRs, they have been a little chaotic. I think I got it all sorted out though

No worries ^^

Huh? I did not change any endings. It's LF like it should be...

This time it's the last line in pkgs/applications/video/animdl/default.nix github actually shows this in the diff view :D

Copy link
Contributor

@NobbZ NobbZ left a comment

Choose a reason for hiding this comment

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

Please squash these commits into a single one:

  • 8dbe058dad101a1320e9ff0ac0b5e77c143d1c54
  • 20cb3797eb0b3da3f559b4cbcd5cb0d3d0578244

pkgs/applications/video/animdl/default.nix Outdated Show resolved Hide resolved
pkgs/applications/video/animdl/default.nix Outdated Show resolved Hide resolved
@NobbZ
Copy link
Contributor

NobbZ commented Jun 28, 2023

As this is actually a python package, I'd like to also request the review of the python team, which I can not tag directly and will therefore ping @mweinelt in person, as he is the only python team member I know from the top of my head…

@ofborg ofborg bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 28, 2023
Copy link
Contributor

@NobbZ NobbZ left a comment

Choose a reason for hiding this comment

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

Please make sure:

  • You have on commit for adding yourself to the maintainers
  • one commit per "package" created
  • Having each of them named and described appropriately as explained in CONTRIBUTING.md

@PassiveLemon
Copy link
Contributor Author

How do you reckon I fix this? I can't squash them

@mweinelt mweinelt marked this pull request as draft June 29, 2023 11:29
@mweinelt
Copy link
Member

You could soft-reset onto the base of your pull request and create new commits from there.

git merge-base pr/240329 origin/master
3a4e234b072bd69e8901b8ed465be7bb659d1a93git reset --soft 3a4e234b072bd69e8901b8ed465be7bb659d1a93git status
On branch pr/240329
You are currently bisecting, started from branch '9e4e0807d214'.
  (use "git bisect reset" to get back to the original branch)

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	modified:   maintainers/maintainer-list.nix
	new file:   pkgs/applications/video/animdl/default.nix
	new file:   pkgs/development/python-modules/anchor-kr/default.nix
	new file:   pkgs/development/python-modules/anitopy/default.nix
	modified:   pkgs/top-level/all-packages.nix
	modified:   pkgs/top-level/python-packages.nixgit restore --staged .git status
On branch pr/240329
You are currently bisecting, started from branch '9e4e0807d214'.
  (use "git bisect reset" to get back to the original branch)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   maintainers/maintainer-list.nix
	modified:   pkgs/top-level/all-packages.nix
	modified:   pkgs/top-level/python-packages.nix

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	pkgs/applications/video/animdl/
	pkgs/development/python-modules/anchor-kr/
	pkgs/development/python-modules/anitopy/

no changes added to commit (use "git add" and/or "git commit -a")

From here you can git add -p <path> to add hunks to your staging area and git commit to create a commit out of the selected hunks.

A more advanced alternative would be an interactive rebase, but it is a bit more involved.

@PassiveLemon
Copy link
Contributor Author

Upstream is not tagging their release.
justfoolingaround/animdl#277
I use the commit SHA because there is no tag for me to get a release version from.

@PassiveLemon PassiveLemon marked this pull request as ready for review July 3, 2023 01:29
Copy link
Contributor

@NobbZ NobbZ left a comment

Choose a reason for hiding this comment

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

Please make sure:

  • You have on commit for adding yourself to the maintainers
  • one commit per "package" created
  • Having each of them named and described appropriately as explained in CONTRIBUTING.md
  • Have a comment in your nix file that explains the hardcoded sha1 rather than a tag with a link to the upstream ticket

@PassiveLemon
Copy link
Contributor Author

Do you mind if I just make a new branch for this? I'm trying to figure out how to remove all of the old commits and I cannot manage to do it...

@Janik-Haag
Copy link
Member

you can do git status and then take the hash of the oldest one you want to remove and write `git reset $hash --mixed, there is multiple modes, you probably want to use mixed here.

@PassiveLemon
Copy link
Contributor Author

There we go. Only the 4 needed commits.

Copy link
Member

@Janik-Haag Janik-Haag left a comment

Choose a reason for hiding this comment

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

you should prepend the anchor-kr and anitopy commit with python3Packages.
you should also add pythonImportsCheck to every module.

pkgs/applications/video/animdl/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/anitopy/default.nix Outdated Show resolved Hide resolved
@PassiveLemon
Copy link
Contributor Author

Updated with the requests.

Copy link
Member

@Janik-Haag Janik-Haag left a comment

Choose a reason for hiding this comment

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

Can you do a rebase, should be good to go afterwards.

@PassiveLemon
Copy link
Contributor Author

Trailing whitespace? This was never an issue before.

@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 24, 2023
@Janik-Haag
Copy link
Member

Trailing whitespace? This was never an issue before.

Then you just didn't have any before ;)
CI still fails because of them: https://github.com/NixOS/nixpkgs/actions/runs/5648374159/job/15300460602?pr=240329

pkgs/applications/video/animdl/default.nix:
32: Trailing whitespace

1 errors found
Error: Process completed with exit code 123.

@PassiveLemon
Copy link
Contributor Author

Not sure how that managed to get there but it should be all good now.

@eclairevoyant eclairevoyant added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Oct 7, 2023
@PassiveLemon PassiveLemon changed the title animdl: init at 1.7.24 animdl: init at 1.7.27 Oct 17, 2023
Copy link
Member

@Janik-Haag Janik-Haag left a comment

Choose a reason for hiding this comment

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

Sorry that it took so long, I kinda forgot about this PR 🙈

pkgs/applications/video/animdl/default.nix Outdated Show resolved Hide resolved
pkgs/applications/video/animdl/default.nix Outdated Show resolved Hide resolved
pkgs/applications/video/animdl/default.nix Outdated Show resolved Hide resolved
pkgs/applications/video/animdl/default.nix Outdated Show resolved Hide resolved
pkgs/applications/video/animdl/default.nix Show resolved Hide resolved
pkgs/development/python-modules/anchor-kr/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/anitopy/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/anitopy/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/anitopy/default.nix Outdated Show resolved Hide resolved
@PassiveLemon
Copy link
Contributor Author

PassiveLemon commented Oct 22, 2023

Updated with changes and rebased.

@PassiveLemon PassiveLemon force-pushed the animdl-pr branch 2 times, most recently from d83cdee to 928d733 Compare October 22, 2023 15:13
@PassiveLemon
Copy link
Contributor Author

PassiveLemon commented Oct 22, 2023

It now builds fine without needing to mess with the dependencies so I removed those bits.

Copy link
Member

@Janik-Haag Janik-Haag left a comment

Choose a reason for hiding this comment

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

looks good to me except for this two missing attributes. @NobbZ can you take another look before we can hopefully get this merged in the next few days?

pkgs/applications/video/animdl/default.nix Show resolved Hide resolved
@Janik-Haag
Copy link
Member

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

10 packages built:
  • animdl
  • animdl.dist
  • python310Packages.anchor-kr
  • python310Packages.anchor-kr.dist
  • python310Packages.anitopy
  • python310Packages.anitopy.dist
  • python311Packages.anchor-kr
  • python311Packages.anchor-kr.dist
  • python311Packages.anitopy
  • python311Packages.anitopy.dist

@PassiveLemon PassiveLemon mentioned this pull request Nov 26, 2023
13 tasks
@PassiveLemon
Copy link
Contributor Author

I'm seeing some new change where packages are being located by name. Would you like me to update this PR?

@Janik-Haag
Copy link
Member

Nah it's fine if you rebase, there will be a pr moving all the packages that can be moved to pkgs/by-name with a script, no need to do it manually. Sorry I forgot to merge this PR 🙈

@PassiveLemon
Copy link
Contributor Author

Okay, I will rebase then

@PassiveLemon
Copy link
Contributor Author

Done

@Janik-Haag
Copy link
Member

@NobbZ can you also give you review again, merge is currently blocked because you requested some changes

@NobbZ
Copy link
Contributor

NobbZ commented Dec 3, 2023

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

10 packages built:
  • animdl
  • animdl.dist
  • python310Packages.anchor-kr
  • python310Packages.anchor-kr.dist
  • python310Packages.anitopy
  • python310Packages.anitopy.dist
  • python311Packages.anchor-kr
  • python311Packages.anchor-kr.dist
  • python311Packages.anitopy
  • python311Packages.anitopy.dist

@NobbZ
Copy link
Contributor

NobbZ commented Dec 3, 2023

Result of nixpkgs-review pr 240329 run on aarch64-linux 1

8 packages built:
  • python310Packages.anchor-kr
  • python310Packages.anchor-kr.dist
  • python310Packages.anitopy
  • python310Packages.anitopy.dist
  • python311Packages.anchor-kr
  • python311Packages.anchor-kr.dist
  • python311Packages.anitopy
  • python311Packages.anitopy.dist

@Janik-Haag Janik-Haag merged commit d35201a into NixOS:master Dec 3, 2023
10 checks passed
@PassiveLemon PassiveLemon deleted the animdl-pr branch December 3, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes 12.approvals: 1 This PR was reviewed and approved by one reputable person
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants