|
5 | 5 | """
|
6 | 6 | Release instruction:
|
7 | 7 |
|
8 |
| -pandoc must be install on machine so that readme (in markdown for jekyll) can |
9 |
| -be converted to rst (for pypi). |
10 |
| -
|
11 | 8 | Check that tests run correctly for 36 and 27 and doc compiles without warning
|
12 | 9 | (make clean first).
|
13 | 10 |
|
14 | 11 | change __version__ in setup.py to new version name.
|
15 | 12 |
|
16 | 13 | First upload to test pypi:
|
17 | 14 | mktmpenv (Python version should not matter)
|
18 |
| - pip install numpy cython pypandoc twine |
| 15 | + pip install numpy cython twine |
19 | 16 | python setup.py sdist
|
20 | 17 | twine upload dist/blabla.tar.gz -r testpypi
|
21 | 18 |
|
22 |
| -Check that install works on testpypi (also check md is converted to rst), then |
23 |
| -upload to pypi and check again. |
| 19 | +Check that install works on testpypi, then upload to pypi and check again. |
24 | 20 | to install from testpypi:
|
25 | 21 | pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple scikit-surprise # noqa
|
26 | 22 |
|
27 |
| -push new release tag on github: |
28 |
| - git tag v1.0.x |
| 23 | +push new release tag on github (commit last changes first if needed): |
| 24 | + git tag vX.Y.Z |
29 | 25 | git push --tags
|
30 | 26 |
|
31 | 27 | Check that RTD has updated 'stable' to the new release (may take a while).
|
|
56 | 52 | else:
|
57 | 53 | USE_CYTHON = True
|
58 | 54 |
|
59 |
| -__version__ = 'latest' |
| 55 | +__version__ = '1.0.6' |
60 | 56 |
|
61 | 57 | here = path.abspath(path.dirname(__file__))
|
62 | 58 |
|
63 |
| -# Get the long description from the README file and convert it to rst |
64 |
| -try: |
65 |
| - import pypandoc |
66 |
| - long_description = pypandoc.convert(path.join(here, 'README.md'), 'rst') |
67 |
| -except(IOError, ImportError): |
68 |
| - with open(path.join(here, 'README.md'), encoding='utf-8') as f: |
69 |
| - long_description = f.read() |
| 59 | +# Get the long description from README.md |
| 60 | +with open(path.join(here, 'README.md'), encoding='utf-8') as f: |
| 61 | + long_description = f.read() |
70 | 62 |
|
71 | 63 | # get the dependencies and installs
|
72 | 64 | with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
|
|
114 | 106 |
|
115 | 107 | description=('An easy-to-use library for recommender systems.'),
|
116 | 108 | long_description=long_description,
|
| 109 | + long_description_content_type='text/markdown', |
117 | 110 |
|
118 | 111 | version=__version__,
|
119 | 112 | url='http://surpriselib.com',
|
|
0 commit comments