|
5 | 5 | import sys
|
6 | 6 | import askbot
|
7 | 7 |
|
| 8 | +PYTHON_VERSION_INFO = \ |
| 9 | +""" |
| 10 | +ERROR: This version of Askbot only works with Python 3, |
| 11 | + if you need Askbot to work with Python 2, |
| 12 | + try versions 0.10.x and earlier. |
| 13 | +""" |
| 14 | + |
| 15 | +if sys.version_info[0] < 3: |
| 16 | + print(PYTHON_VERSION_INFO) |
| 17 | + sys.exit(1) |
| 18 | + |
8 | 19 | setup(
|
9 | 20 | name = "askbot",
|
10 | 21 | version = askbot.get_version(),#remember to manually set this correctly
|
|
35 | 46 | 'Natural Language :: Serbian',
|
36 | 47 | 'Natural Language :: Turkish',
|
37 | 48 | 'Operating System :: OS Independent',
|
38 |
| - 'Programming Language :: Python :: 2.5', |
39 |
| - 'Programming Language :: Python :: 2.6', |
40 |
| - 'Programming Language :: Python :: 2.7', |
| 49 | + 'Programming Language :: Python :: 3', |
41 | 50 | 'Programming Language :: JavaScript',
|
42 | 51 | 'Topic :: Communications :: Usenet News',
|
43 | 52 | 'Topic :: Communications :: Email :: Mailing List Servers',
|
44 | 53 | 'Topic :: Communications',
|
45 | 54 | 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
|
46 | 55 | ],
|
47 |
| - long_description = """Askbot will work alone or with other django apps (with some limitations, please see below), Django 1.8, PostgresQL(recommended) and MySQL >5.6 |
| 56 | + long_description_content_type='text/markdown', |
| 57 | + long_description = """Askbot will work alone or with other django apps (with some limitations, please see below), Django 2.2, PostgresQL(recommended) and MySQL >5.6 |
48 | 58 |
|
49 |
| - This version of Askbot supports only Django 1.8. |
| 59 | + This version of Askbot supports only Django 2 and Python 3. Versions 0.10.x and earlier support Python 2. |
50 | 60 |
|
51 | 61 | To upgrade, or select version of Askbot working with earlier versions of Django,
|
52 | 62 | please follow instructions at
|
|
0 commit comments