|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | from setuptools import setup |
3 | 3 |
|
4 | | -# https://github.com/theskumar/python-dotenv/issues/45#issuecomment-277135416 |
5 | | -try: |
6 | | - import pypandoc |
7 | | - long_description = pypandoc.convert('README.md', 'rst') |
8 | | - long_description = long_description.replace("\r", "") # YOU NEED THIS LINE |
9 | | -except (OSError, ImportError): |
10 | | - print("Pandoc not found. Long_description conversion failure.") |
11 | | - import io |
12 | | - # pandoc is not installed, fallback to using raw contents |
13 | | - with io.open('README.md', encoding="utf-8") as f: |
14 | | - long_description = f.read() |
| 4 | +with open('README.md') as f: |
| 5 | + long_description = f.read() |
15 | 6 |
|
16 | 7 | meta = {} |
17 | 8 | with open('./src/dotenv/version.py') as f: |
|
21 | 12 | name="python-dotenv", |
22 | 13 | description="Add .env support to your django/flask apps in development and deployments", |
23 | 14 | long_description=long_description, |
| 15 | + long_description_content_type='text/markdown', |
24 | 16 | version=meta['__version__'], |
25 | 17 | author="Saurabh Kumar", |
26 | 18 | author_email="me+github@saurabh-kumar.com", |
|
52 | 44 | # 'Development Status :: 6 - Mature', |
53 | 45 | # 'Development Status :: 7 - Inactive', |
54 | 46 | 'Programming Language :: Python', |
55 | | - 'Programming Language :: Python :: 2', |
| 47 | + # 'Programming Language :: Python :: 2', |
56 | 48 | # 'Programming Language :: Python :: 2.3', |
57 | 49 | # 'Programming Language :: Python :: 2.4', |
58 | 50 | # 'Programming Language :: Python :: 2.5', |
59 | 51 | # 'Programming Language :: Python :: 2.6', |
60 | 52 | 'Programming Language :: Python :: 2.7', |
61 | | - 'Programming Language :: Python :: 3', |
62 | | - 'Programming Language :: Python :: 3.0', |
63 | | - 'Programming Language :: Python :: 3.1', |
64 | | - 'Programming Language :: Python :: 3.2', |
65 | | - 'Programming Language :: Python :: 3.3', |
| 53 | + # 'Programming Language :: Python :: 3', |
| 54 | + # 'Programming Language :: Python :: 3.0', |
| 55 | + # 'Programming Language :: Python :: 3.1', |
| 56 | + # 'Programming Language :: Python :: 3.2', |
| 57 | + # 'Programming Language :: Python :: 3.3', |
66 | 58 | 'Programming Language :: Python :: 3.4', |
67 | 59 | 'Programming Language :: Python :: 3.5', |
68 | 60 | 'Programming Language :: Python :: 3.6', |
| 61 | + 'Programming Language :: Python :: 3.7', |
69 | 62 | 'Programming Language :: Python :: Implementation :: PyPy', |
70 | 63 | 'Intended Audience :: Developers', |
71 | 64 | 'Intended Audience :: System Administrators', |
|
0 commit comments