Skip to content

initial code commit #1

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 15 commits into from
Apr 2, 2019
Merged

initial code commit #1

merged 15 commits into from
Apr 2, 2019

Conversation

dastels
Copy link
Collaborator

@dastels dastels commented Mar 23, 2019

No description provided.

@dhalbert
Copy link
Contributor

Hi, did you see this also: https://github.com/notro/tmp_CircuitPython_stdlib/blob/master/lib/itertools.py
and the containing repo? @notro is working on various standard library modules.

@dastels
Copy link
Collaborator Author

dastels commented Mar 23, 2019

I hadn't seen that. My goal is just getting itertools (and extensions) workign in CP, where his seems more about the actual porting exercise.

@dastels dastels requested a review from a team March 23, 2019 15:54
Copy link
Contributor

@kattni kattni left a comment

Choose a reason for hiding this comment

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

@dastels As this code is taken directly from Python, please use the PSF copyright, and update the license to the PSF license. Check the PSF site for the specifics. You may include something like Adapted for CircuitPython by Dave Astels or similar if you wish.

Copy link
Collaborator

@sommersoft sommersoft 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. I saw the MicroPython version mentioned in Discord recently and thought it would be a good addition for us. Thanks for getting this done!

Just a few things to remove, since I don't see any reason for this to go up onto PyPI. Part of the standard CPython library, so all of the *nix cases will already have it available, and uPy has its version too.

README.rst Outdated
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.

Installing from PyPI
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would remove the entire Installing from PyPI section, since itertools is available in CPython.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

setup.py Outdated
@@ -0,0 +1,63 @@
"""A setuptools based setup module.
Copy link
Collaborator

Choose a reason for hiding this comment

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

setup.py can be deleted, since itertools is available in CPython and won't need to be deployed to PyPI.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

requirements.txt Outdated
@@ -0,0 +1 @@
Adafruit-Blinka
Copy link
Collaborator

Choose a reason for hiding this comment

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

Like the other two, Blinka isn't needed since no PyPI.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

README.rst Outdated
:alt: Discord

.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_itertools.svg?branch=master
:target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_itertools
Copy link
Collaborator

Choose a reason for hiding this comment

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

The URLs for the Travis badge need to match the repo capitalization.

.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_IterTools.svg?branch=master
    :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_IterTools

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@dastels
Copy link
Collaborator Author

dastels commented Mar 26, 2019

@sommersoft The MicroPython implementation is extremely minimal.. a few functions. That's the big reason I went back to the "source" material.

@dastels dastels requested a review from kattni April 1, 2019 14:58
Copy link
Contributor

@kattni kattni left a comment

Choose a reason for hiding this comment

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

Thank you for fixing the licensing.

@dastels dastels merged commit 7a8d752 into adafruit:master Apr 2, 2019
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.

4 participants