This name corresponds to the name of our github repository.
Hopefully there will be less confusion about names.
I can't thank enough the author of "coursera-dl" PyPI package @dgorissen
who generously gave up that package to us. Thank you!
Python 2 and Python 3 disagree on the exception thrown when
`subprocess.call` can't find the program to execute.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
This commit makes execution of setup.py generate the README.rst file by
calling pandoc.
We only stop execution of the program if README.md can not be converted into
a README.rst file, in which case we execute the show a message to the user.
I hope that, in the future, PyPI can accept Markdown files and that we can
stop having to convert between formats (and, also, get a more faithful
reproduction of the intended markup, since some of the conversions are,
unfortunately, lossy).
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
This is in preparation for further enhancements to kill problems with
`setup.py` not working for some people.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
Otherwise, we were generating lists as the output of the function when
reading `README.rst` and, in Python 3, we had an exception being thrown
saying that lists didn't have a `split` method.
This makes `read_file` always return a string, which makes it possible to
run:
python3 setup.py sdist
which is a portability win, of course.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
This is essentially a cherry-pick of a previous commit of issue #345. As I
am not going to merge that, I am including its message here:
This may (or may not) be a cosmetic thing, but, otherwise, the generate
`PKG-INFO` file gets the platform listed as unknown, and I clearly don't
want it to be that way.
This closes#345.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
I'm not really sure if we should declare compatibility with Python 3.2.
While we also test for pypy (via Travis CI), I am not really sure how to
specify that in the file (I still have to do some reading).
Also, I don't really expect any problems with the use of Python 3.5, but
since it is not (yet) tested with travis, I'm not yet putting it explicitly
here.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
This is still not really satisfactory, as it seems that we have a limitation
in the number of authors (or it seems that we should use an ad-hoc format)
for specifying who the authors are, according to various sources, including:
https://docs.python.org/2/distutils/setupscript.html#additional-meta-data
For that reason, I refrained from telling that I am an (the?) author of this
program, as John should be equally credited here, if not more. I only
listed myself as the maintainer of the program.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>