coursera-dl / edx-dl

A simple tool to download video lectures from edx.org (and other openedx sites)
GNU Lesser General Public License v3.0
1.93k stars 638 forks source link

We should distribute the project via PyPI #168

Open rbrito opened 9 years ago

rbrito commented 9 years ago

On the 1st of this month, I finally published coursera-dl on PyPI. This makes everything very easy for users to install the program, along with all its dependencies. It was, from my perspective, a success as installing it is as simple as:

pip install coursera

No need for the user to know what git is, what a clone is and similar stuff.

I propose that we should consider adopting a similar scheme for edx-downloader (perhaps shortening the name?).

Regards,

Rogério.

iemejia commented 9 years ago

I totally agree with you, I think we can use the shortened to the 'edx-dl' name, can you please do a pull request with the changes ? Will this solve the installation of the latest version of youtube-dl too ?

rbrito commented 9 years ago

On May 06 2015, Ismael Mejia wrote:

I totally agree with you, I think we can use the shortened to the 'edx-dl' name, can you please do a pull request with the changes ?

Err... I don't know to what you are referring here. Shortening the name of the repository can only (as far as I know) only be performed by the owner of the repository.

Creating the setup.py file can, obviously, be done by anyone. But we have to register the project on https://pypi.python.org/pypi (super easy). Each project hosted there has to have one person that is responsible for it (not really sure if one project can have multiple people responsible for it).

Will this solve the installation of the latest version of youtube-dl too ?

I don't know what exactly is the problem with youtube-dl (I use my own packaged version of youtube-dl on Debian), but if we list it as a dependency, it will get installed automatically with the latest version.

Whenever a new version comes out, they just upgrade the program (or any dependency) with pip.

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

iemejia commented 9 years ago

Is it mandatory to have the same name of the repository in pypi ? Can we just call it edx-dl in pypi and rename it after. Anyway I think we must be consistent and have the same name everywhere. Do you both agree to rename the project to 'edx-dl' ?

If so @shk3 would you mind to rename the project ? I read and in it seems github automatically will redirect the project to the new name which is awesome.

@rbrito can you push just an initial version of setup.py and requirements.txt, even if it is not perfect ? I have never created a setup.py so I think maybe you are the more appropriate to do it, and if it is needed we can improve it after.

rbrito commented 9 years ago

On May 08 2015, Ismael Mejia wrote:

Is it mandatory to have the same name of the repository in pypi ?

No, it is not. But my little brain fries when I have to use different names for the same thing. :) OK, not really, but some consistency is good, especially for the users.

Can we just call it edx-dl in pypi and rename it after.

Yes.

Anyway I think we must be consistent and have the same name everywhere. Do you both agree to rename the project to 'edx-dl' ?

I already called my own fork exactly that, which would give an indication of my preference. :)

If so @shk3 would you mind to rename the project ? I read and in it seems github automatically will redirect the project to the new name which is awesome.

Yes, as far as I know.

Rogerio can you push just an initial version of setup.py and requirements.txt, even if it is not perfect ? I have never created a setup.py so I think maybe you are the more appropriate to do it, and if it is needed we can improve it after.

OK, I think that I can do that. I had to learn some small tricks to make that work the way it is supposed to be, especially when you are creating a source distribution (read: "what gets uploaded to pypi"). There are some points that are not covered well in the documentation.

Regards,

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Glavin001 commented 9 years ago

+1 Could not believe this had not already been published to pypi. Great project, worked very well. Thanks!

iemejia commented 9 years ago

Now that the project is moved to the good organization I think this is the next step. @rbrito do you plan to additionally rename the organization to 'mooc-dl' or not ? This is the last missing thing, isn't it ? Don't hesitate to tell me if there is something I can do to get this published.

ghost commented 9 years ago

Just edx-dl is ok imho. And the sooner the better. Thanks Ismael :)