Commit graph

35 commits

Author SHA1 Message Date
Yuri Bochkarev
c2f318a571 Rename PyPI package name from "coursera" to "coursera-dl"
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!
2016-06-17 19:47:23 +03:00
Yuri Bochkarev
9ea984d3c9 Add --version argument to display version and exit (fix #477) 2016-06-10 19:09:53 +03:00
Rogério Brito
38f190acd5 setup.py: Update version number for new release.
Since we have not broken compatibility, we are still in the 0.5 lineage.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2016-02-11 02:42:52 -02:00
Rogério Brito
8176f60b29 setup.py: Update version number for fixed markup on PyPI.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2016-01-30 07:09:43 -02:00
Rogério Brito
146ff276d1 {fabfile,setup}.py: Use vanilla markdown for rst files.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2016-01-30 07:09:04 -02:00
Rogério Brito
0a81422a33 setup.py: Fix URL of the project. 2016-01-30 07:05:06 -02:00
Rogério Brito
6c64121e86 setup.py: Prepare to release version 0.5 on PyPI.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2016-01-30 06:16:38 -02:00
Rogério Brito
4fba0d2c7a setup.py: Mark compatibility with Python 3.5.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2016-01-30 06:14:56 -02:00
Rogério Brito
bedf2474d0 setup.py: Be more lenient if pandoc can't be found.
This was brought to my attention by @victorwestmann. Thanks.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2015-09-07 07:31:02 -03:00
Rogério Brito
445a8c55f5 setup.py: Cope with Python 2 vs. Python 3 difference in exceptions.
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>
2015-09-07 07:21:12 -03:00
Rogério Brito
7ce7d56b04 setup.py: Prepare for new release.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2015-08-17 22:39:05 -03:00
Rogério Brito
cfa0b1b7bc setup.py: Skip creation of shipped README.rst if it exists.
This is a brown paper bag commit and fixes #354. Thanks @spl for the prompt
feedback.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2015-08-17 22:30:56 -03:00
Rogério Brito
6225fa1cd2 setup.py: Prepare for another release.
With the fixed documentation.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2015-08-16 05:07:43 -03:00
Rogério Brito
a263a0ec96 setup.py: Try to fix rendering on PyPI.
PyPI doesn't seem to like pandoc's output when we use
`--from=markdown_github`.  Bummer.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2015-08-16 05:06:33 -03:00
Rogério Brito
079dabe419 setup.py: Prepare for release 0.1.0 alpha 1. 2015-08-16 04:31:48 -03:00
Rogério Brito
1973427011 setup.py: Use some more mnemonic names for variables.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2015-08-16 00:03:41 -03:00
Rogério Brito
4df8c7966e setup.py: Fix #354 by generating README.rst with setup.py.
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>
2015-08-15 23:58:25 -03:00
Rogério Brito
730a19a758 setup.py: Move comments to the top of the script.
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>
2015-08-15 23:55:15 -03:00
Rogério Brito
47e049680f setup.py: Make script work with Python 3.
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>
2015-08-15 23:50:39 -03:00
Rogério Brito
0dc58bafd4 setup.py: Fix warning from pep257.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2015-08-15 23:49:46 -03:00
Rogério Brito
212c1db6bf setup.py: Refactor script to be more resilient to missing README.rst
While we are at it, we also break some of code in smaller pieces for
readability purposes.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2015-08-14 00:12:11 -03:00
Rogério Brito
57500bbdaa setup.py: Prepare for release 0.0.3. 2015-05-06 19:24:33 -03:00
Rogério Brito
76c1ca0c2c setup.py: Release version 0.0.2. 2015-05-03 20:00:30 -03:00
Rogério Brito
82f2b54a8c setup.py: Bump version to 0.0.1.
I forgot to include this commit in our previous tag. :( So much for using
`fab` blindly. :(

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2015-05-03 00:20:30 -03:00
Rogério Brito
e9bb7abf91 setup.py: Read rst files instead of md files. 2015-05-03 00:05:11 -03:00
Rogério Brito
8dcb76e2a0 setup.py: Fix missing comma (PyPI rejected the submission). 2015-04-30 11:06:43 -03:00
Rogério Brito
f6271cb841 test: test_utils: Fix comparison against False. 2015-04-30 10:52:25 -03:00
Rogério Brito
0c275f335b setup: Specify the platform (to be platform agnostic).
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>
2015-04-30 08:23:45 -03:00
Rogério Brito
194721a0ec setup: Add some real keywords. 2015-04-26 13:41:21 -03:00
Rogério Brito
b9e41c1004 setup: Add pypy to supported implementations.
Just copied classifiers for CPython and PyPy from:

   https://pypi.python.org/pypi?%3Aaction=list_classifiers

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2015-04-23 00:21:51 -03:00
Rogério Brito
90dcfb7da0 setup: Be more specific about Python versions supported.
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>
2015-04-23 00:16:36 -03:00
Rogério Brito
1862f1b372 setup: Specify what Python versions we support.
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
2015-04-23 00:14:16 -03:00
Rogério Brito
f97014668b setup.py: Declare encoding for the python interpreter. 2015-04-19 01:59:13 -03:00
Rogério Brito
28ae8aca77 setup.py: Fill in some data.
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>
2015-04-19 01:55:16 -03:00
meejah
6bf7a734a3 first-cut setup.py
needs filling in of author information, trove classifiers,
and probably needs a MANIFEST.in or similar, too?
2015-04-16 10:29:56 -06:00