Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Package name is not PEP 8 compliant #60

Closed
pydsigner opened this issue Apr 5, 2016 · 9 comments
Closed

Package name is not PEP 8 compliant #60

pydsigner opened this issue Apr 5, 2016 · 9 comments

Comments

@pydsigner
Copy link

I realize that there are already many users of the package, but is there any possibility of the package's name being made to be PEP 8 compliant (and also match the js version)? It's a small issue but I'd much rather be looking at import commonmark than import CommonMark in my code.

@lu-zero
Copy link
Collaborator

lu-zero commented Apr 5, 2016

Probably we could provide CommonMark as alias for the time being and the second next major version drop it.

Willing to send over a patch for it? =)

@ericholscher
Copy link
Member

Should be pretty easy to do import CommonMark as commonmark, we could
also ship with the lower-case alias in the core distro. I wouldn't be
opposed to a PR that did this.

On Tue, Apr 5, 2016 at 9:54 AM, Daniel Foerster notifications@github.com
wrote:

I realize that there are already many users of the package, but is there
any possibility of the package's name being made to be PEP 8 compliant (and
also match the js version)? It's a small issue but I'd much rather be
looking at import commonmark than import CommonMark in my code.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#60

Eric Holscher
Maker of the internet residing in Portland, Oregon
http://ericholscher.com

@pydsigner
Copy link
Author

I'll try to get a PR prepared tonight.

@nikolas
Copy link
Collaborator

nikolas commented Apr 5, 2016

I would also prefer commonmark over CommonMark! Thanks for bringing this up.

@nikolas
Copy link
Collaborator

nikolas commented Apr 26, 2016

Also maybe worth noting that this repository could also be renamed to something like commonmark.py.

@nikolas
Copy link
Collaborator

nikolas commented May 3, 2016

@pydsigner have you made any progress with this? To me it seems like a difficult problem to fix without making a new package. Also, when I navigate to https://pypi.python.org/pypi/commonmark it redirects me to https://pypi.python.org/pypi/CommonMark. It would be nice to change that as well but I don't know how.

@pydsigner
Copy link
Author

@nikolas I unfortunately have been a bit busier than hoped, but I do have a plan of how to do this.

@nikolas
Copy link
Collaborator

nikolas commented Oct 6, 2017

Maybe this is just a matter of changing the name in setup.py from CommonMark to commonmark. And we would also want to move the CommonMark directory to commonmark. Of course, I would hate to break everyone's existing imports. Our readme directs users to import CommonMark.

nikolas added a commit that referenced this issue Sep 3, 2018
This makes the package name PEP8-compliant by changing:

    import CommonMark

to:

    import commonmark

The old camel-cased import should still work as well though, for now.

Closes #60
@nikolas
Copy link
Collaborator

nikolas commented Sep 3, 2018

Alright, it looks like just renaming the CommonMark directory to commonmark, and changing all the imports solves this problem.

I've also symlinked CommonMark to commonmark for now, for compatibility. I've opened a pull request here: #131

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants