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
move the language extensions to a separate repo #3150
Comments
Why not just upload each extension to PyPI as a separated package? For example if rmagic uses rpy2 it can simply depend on rpy2 which is installed behind the scenes. If rmagic needs some new rpy2 API then version number can be specified in setup.py. I think the same goes for Cython and Octave. |
that's certainly another option, though using PyPI is not well suited to hosting single-files. |
Why? There is many single-file modules in PyPI, no? |
No, you cannot upload single-file modules to PyPI, only sdists and bdists of various flavors. |
@rkern I mean you can package signle-file module using sdist. |
In terms of syntax, I'd suggest something like |
I am +1 on both having an |
As I've mentioned before, I'm not sure that a repo is the right approach here. I don't think it scales up well:
A github organisation, where different people can control different repos, might be better, but then creating new extensions becomes a burden. I think we'd be better looking at how we can integrate this with something like PyPI, which is designed to host and deliver packages created by thousands of developers, rather than trying to use Github for something it's not intended for. |
I like @bfroehle's idea of making it repo-aware, just for expressing shortcuts to repos, so I could post my extensions to Even if all we end up adding is nice shortcut syntax for GitHub urls, that would be an improvement, and it would still allow us to split the language extensions into their own repo, which I think is the more important point here. I don't see any reason for |
I thought IPython devs want to provide beginner-friendly environment. Installing Rmagic and finding out that you need to update IPython and install rpy2 from stack trace is not beginner-friendly, IMHO. |
you make a good point about the dependencies, and some extensions should be regular packages. But the current situation is definitely bad: extensions are tied to IPython versions for no good reason, so there isn't a mechanism to update the rmagic extension for 0.13.2 (other than downloading it from the master repo). It seems clear that extensions should live somewhere else, but it's not yet clear exactly where. |
What about using 1 repo per extension and hosting our language extensions On Tue, Apr 9, 2013 at 12:24 PM, Min RK notifications@github.com wrote:
Brian E. Granger |
Quick from my phone. I like user/repo stuff especially While you are in early dev. It does not -1 on publishing extension under ipython org, if we do so we'll have to Le mercredi 10 avril 2013, Brian E. Granger a écrit :
|
Just updating here - we aren't going to get to a decision about the external repo for 1.0, but do know that I plan to move these extensions as soon as there is a place for them. Bumping to 2.0. |
Just FYI , I'm maintaining fortran-magic, https://github.com/mgaitan/fortran_magic which is both IMHO |
An update: the R magic has moved to rpy2, though we are still shipping a version, just not accepting patches. I don't think any progress has been made on moving oct2py or cython out of IPython. |
Will this be closed in 2.0? |
Would be desirable that the |
That's up to the Cython guys. I also have a PR that fixes css leaks from annotate, that had not get any review in month, so I think they are pretty busy right now. Envoyé de mon iPhone
|
Ok, I could move |
Maybe it's not worth doing that for 2.0 unless all extensions can be removed from IPython for this release? |
I think the cython magic should be moved to the actual Cython package. That Cheers, Brian On Mon, Mar 10, 2014 at 6:58 AM, Cyrille Rossant
Brian E. Granger |
closing as duplicate of #3803 |
@minrk I don't understand wich one you wanted to close, but both issues are still open |
I don't think it makes much sense for things like the R, Cython, and Octave extensions to ship with IPython. It ties them to IPython releases, which is a bad fit for their current state of development, and defeats most of the purpose of extensions.
I propose we add a new repo where extensions can reside. One part of this would be to add a 'repo' notion to %install_ext, so you could just do
and it would fetch the rmagic extension from GitHub, then this
ipython-extensions
repo could be treated as a repository for anyone to post their own extensions via pull request (a la PyPI).The text was updated successfully, but these errors were encountered: