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

frameioclient: add package to nixpkgs #91464

Closed
wants to merge 2 commits into from
Closed

Conversation

DrFacepalm
Copy link

@DrFacepalm DrFacepalm commented Jun 25, 2020

Motivation for this change
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.

@jonringer
Copy link
Contributor

@DrFacepalm thanks for opening your first PR :)

@DrFacepalm
Copy link
Author

Thanks for helping me out, rather new to this whole contributing and nix scene so if I'm missing the mark on a few things please let me know :)

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.

please squash fixup commits, should have only have 2 commits:

maintainers: add drfacepalm
pythonPackages.frameioclient: init at 0.7.5

if your "git-fu" isn't strong, just let me know if you need help

maintainers/maintainer-list.nix Show resolved Hide resolved
pkgs/development/python-modules/frameioclient/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/frameioclient/default.nix Outdated Show resolved Hide resolved
@jonringer
Copy link
Contributor

to fix up the history, you can do:

git reset HEAD~11
git add maintainers
git commit -m "maintainers: add drfacepalm"
git add pkgs
git commit -m "pythonPackages.frameioclient: init at 0.7.5"
git push ... ... --force

@DrFacepalm
Copy link
Author

Alright I'll give that a go. My git skills are rather lacking haha

@jonringer
Copy link
Contributor

looks likes some other files got mixed up in there, try this:

git reset HEAD~2 # put the last two commits into unstaged
git add maintainers/
git commit -m "maintainers: add drfacepalm"
git add pkgs/top-level/python-packages.nix
git add pkgs/development/python-modules/frameioclient/
git commit -m "pythonPackages.frameioclient: init at 0.7.5"
git push ... ... --force

# optional if you want to clean up the accidental changes
git checkout .

@DrFacepalm
Copy link
Author

Okay scratch what i just did i think i undid some of the changes in the other files

@DrFacepalm
Copy link
Author

I have a question, what happens to the other files that are modified?
image

@jonringer
Copy link
Contributor

I have a question, what happens to the other files that are modified?

What I think happened, is that original git reset HEAD~11 was based off the commits that were done on your fork. However, your local git repo had less than 11 commits. So you also got come changes that weren't really yours mixed in.

git rebase -i would probably have been better, but harder to communicate how to use it over text

@DrFacepalm
Copy link
Author

Yeah i was playing around with it and i saw the commits looked like:

commit by me
commit by me
commit by me
commit by someone else 
commit by someone else
commit by me
commit by me

and i wasn't too sure how that had happened.... but either way, trying to rebase that went over my head.
Either way, is there anything else that needs doing on this pull request?


propagatedBuildInputs = [
requests
urllib3 ] ++ lib.optionals (pythonOlder "3.8") [
Copy link
Contributor

Choose a reason for hiding this comment

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

sorry last one

Suggested change
urllib3 ] ++ lib.optionals (pythonOlder "3.8") [
urllib3
] ++ lib.optionals (pythonOlder "3.8") [

you can do the change locally, and do:

git add pkgs/development/python-modules/frameioclient/default.nix
git commit --amend --no-edit
git push .. .. --force

and that should keep your githistory tidy

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM otherwise

@DrFacepalm
Copy link
Author

I believe that should be good. thanks for the help!

@stale
Copy link

stale bot commented Apr 18, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 18, 2021
@Artturin
Copy link
Member

Artturin commented Feb 2, 2023

Reopen and rebase if you would like to have this merged.

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

5 participants