Skip to content

Commit 567a41a

Browse files
committed
Use README as long description on PyPI
1 parent 00625b0 commit 567a41a

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
# DBUtils
1+
DBUtils
2+
=======
23

3-
DBUtils is a suite of tools providing solid, persistent and pooled connections to a database that can be used in all kinds of multi-threaded environments like Webware for Python or other web application servers. The suite supports DB-API 2 compliant database interfaces and the classic PyGreSQL interface.
4+
DBUtils is a suite of tools providing solid, persistent and pooled connections
5+
to a database that can be used in all kinds of multi-threaded environments
6+
like Webware for Python or other web application servers. The suite supports
7+
DB-API 2 compliant database interfaces and the classic PyGreSQL interface.
48

5-
The current version of DBUtils requires Python 2.6 or newer (Python 3 is supported).
9+
The current version of DBUtils supports Python versions 2.6, 2.7 and 3.4 - 3.7.
610

7-
The DBUtils home page with documentation is here: https://cito.github.io/DBUtils/
11+
The DBUtils home page with documentation can be found at
12+
[cito.github.io/DBUtils/](https://cito.github.io/DBUtils/).
813

Release.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Create a new DBUtils release:
44
* Check the documentation. If possible, update all translations.
55
(Chinese translation was too old and has been removed for the time being.)
66

7-
* Run all tests in DBUtils/Tests with Python version from 2.6 to 3.6.
7+
* Run all tests in DBUtils/Tests with all supported Python versions using tox.
88

99
* Check the examples in DBUtils/Examples with the current Webware version.
1010

setup.py

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
"""Setup Script for DBUtils"""
22

3+
import warnings
4+
from distutils.core import setup
35
from sys import version_info
46

5-
__version__ = '1.2'
6-
77
py_version = version_info[:2]
88
if not (2, 6) <= py_version <= (2, 7) and not (3, 4) <= py_version < (4, 0):
99
raise ImportError('Python %d.%d is not supported by DBUtils.' % py_version)
1010

11-
import warnings
1211
warnings.filterwarnings('ignore', 'Unknown distribution option')
1312

14-
from distutils.core import setup
13+
__version__ = '1.2'
14+
15+
readme = open('README.md').read()
1516

1617
setup(
1718
name='DBUtils',
1819
version=__version__,
1920
description='Database connections for multi-threaded environments.',
20-
long_description='''\
21-
DBUtils is a suite of tools providing solid, persistent and pooled connections
22-
to a database that can be used in all kinds of multi-threaded environments
23-
like Webware for Python or other web application servers. The suite supports
24-
DB-API 2 compliant database interfaces and the classic PyGreSQL interface.
25-
''',
21+
long_description=readme,
22+
long_description_content_type='text/markdown',
2623
classifiers=['Development Status :: 5 - Production/Stable',
2724
'Environment :: Web Environment',
2825
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)