Skip to content

[review-round-2 - Jan 3 merge] What is a Python package intro tutorial? #139

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

Merged
merged 29 commits into from
Jan 3, 2024

Conversation

lwasser
Copy link
Member

@lwasser lwasser commented Dec 22, 2023

This pr build on top of #117 . let's do a final round of review before merging in early January!! yahoo!!

Copy link
Collaborator

@ucodery ucodery left a comment

Choose a reason for hiding this comment

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

This is looking great!

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the more logical order, which the guide takes, is:

  1. what is a package?
  2. make code installable
  3. add README
  4. add metadata
  5. publish to pypi
  6. publish to conda

Copy link
Member Author

Choose a reason for hiding this comment

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

@ucodery that is definitely the order we had before. i'm so torn. the reason why i thought about moving publish to pypi up further was an early win for users. i keep changing my mind because the order that you suggest /that we had previously is how you'd actual go about creating a packaging logically. i'll revert to what we originally planned for now and we can always teach things out of order if we want to (or not)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I just found it very strange that adding metadata was so late on the list as you can't actually publish to pypi without some metadata (or even locally install).

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 totally understand. let's revisit / chat in slack a bit. i have all of the lessons ready to push for review but want to get the tests pr and the installable code pr done first!! they do add some metadata (enough for a local install) in lesson 2. BUT as you point out if they don't have a readme or metadata in their pyproj.toml then the pypi landing page will look ugly.

i'll post about this in slack so we can discuss! your point is totally valid!! there is the learner side however and early wins that may also be important to consider!

Comment on lines +70 to +68
You can think about a package as a toolbox filled with coding tools.
A tool may be a function or a class. Each tool does a specific thing
well.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is just repeating the last sentence.

Suggested change
You can think about a package as a toolbox filled with coding tools.
A tool may be a function or a class. Each tool does a specific thing
well.

Copy link
Contributor

@billbrod billbrod left a comment

Choose a reason for hiding this comment

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

This looks great!

lwasser and others added 24 commits January 3, 2024 09:22
Co-authored-by: Jesse Mostipak <[email protected]>

Apply suggestions from code review

Co-authored-by: William F. Broderick <[email protected]>
Co-authored-by: Jesse Mostipak <[email protected]>

Update index.md

Co-authored-by: Jesse Mostipak <[email protected]>
Co-authored-by: Jesse Mostipak <[email protected]>

Apply suggestions from code review

Co-authored-by: Jesse Mostipak <[email protected]>
Co-authored-by: David Nicholson <[email protected]>
Co-authored-by: William F. Broderick <[email protected]>
Final alt tags and cleanup
Co-authored-by: Jeremy Paige <[email protected]>
Co-authored-by: Jeremy Paige <[email protected]>

Update tutorials/intro.md

Co-authored-by: Jeremy Paige <[email protected]>

Update tutorials/intro.md

Co-authored-by: Jeremy Paige <[email protected]>

Update tutorials/intro.md

Co-authored-by: Jeremy Paige <[email protected]>

Update tutorials/intro.md

Co-authored-by: Jeremy Paige <[email protected]>

Update tutorials/intro.md

Co-authored-by: Jeremy Paige <[email protected]>

Update tutorials/intro.md

Co-authored-by: Jeremy Paige <[email protected]>

Update tutorials/intro.md

Co-authored-by: Jeremy Paige <[email protected]>

Update tutorials/intro.md

Co-authored-by: Jeremy Paige <[email protected]>

Update tutorials/intro.md

Co-authored-by: Jeremy Paige <[email protected]>

Update tutorials/intro.md

Co-authored-by: Jeremy Paige <[email protected]>
Co-authored-by: William F. Broderick <[email protected]>

Fix: edit from @billbrod

Co-authored-by: William F. Broderick <[email protected]>

Fix: edit from @billbrod

Co-authored-by: William F. Broderick <[email protected]>

Fix: edit from @billbrod

Co-authored-by: William F. Broderick <[email protected]>
* Redesign of packaging guide landing page

* Fix: add alt to image

* Fix: image swap and text cleanup

* Fix: dark styles and header

* Fix: edit from @kierski

* Fix: edit from @kierski

* Fix: styles fix
@lwasser
Copy link
Member Author

lwasser commented Jan 3, 2024

ok y'all!! Our FIRST packaging lessons is being merged now!! I'm SOOOO appreciative of all of your input on this!! yahoo!! this is a big first step for us!

@lwasser lwasser merged commit c9d7324 into pyOpenSci:main Jan 3, 2024
@lwasser lwasser deleted the bb-dec23-intro-2 branch January 4, 2024 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants