Skip to content

Commit 6a52e09

Browse files
committed
Updated setup.cfg
* Added project URLs * Using README.md as long description directly
1 parent edec6d3 commit 6a52e09

File tree

4 files changed

+9
-17
lines changed

4 files changed

+9
-17
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ matrix:
1313
env: TOXENV=lint
1414
- python: "3.5"
1515
env: TOXENV=packagecheck
16-
addons:
17-
apt_packages: pandoc
1816

1917
- python: "3.6"
2018
env: TOXENV=py36-django21
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
docutils
22
Pygments>=2.2.0
3-
pypandoc
4-
twine
5-
wheel
3+
twine>=1.11.0
4+
wheel>=0.31.0
65
readme_renderer[md]

setup.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ author = Andrzej Pragacz
44
author-email = apragacz@o2.pl
55
description = User registration REST API, based on django-rest-framework
66
description-file = README.md
7+
long-description = file:README.md
8+
long-description-content-type = text/markdown; charset=UTF-8
79
url = https://github.com/apragacz/django-rest-registration
10+
project-urls =
11+
Bug Tracker = https://github.com/apragacz/django-rest-registration/issues
12+
Documentation = https://django-rest-registration.readthedocs.io/
13+
Source Code = https://github.com/apragacz/django-rest-registration
814
keywords =
915
django
1016
rest
@@ -20,6 +26,7 @@ keywords =
2026
sign-up
2127
sign-in
2228
license = MIT
29+
license-file = LICENSE
2330
classifiers =
2431
Development Status :: 4 - Beta
2532
Environment :: Web Environment

setup.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ def get_version(package):
3636
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
3737

3838

39-
def get_long_description(markdown_filepath):
40-
'''
41-
Return the long description in RST format, when possible.
42-
'''
43-
try:
44-
import pypandoc
45-
return pypandoc.convert(markdown_filepath, 'rst')
46-
except ImportError:
47-
return read_contents(markdown_filepath)
48-
49-
5039
def get_cmdclass():
5140
cmdclass = {}
5241
try:
@@ -61,7 +50,6 @@ def get_cmdclass():
6150
setup(
6251
version=get_version('rest_registration'),
6352
packages=find_packages(exclude=['tests.*', 'tests']),
64-
long_description=get_long_description('README.md'),
6553
install_requires=get_requirements('requirements/requirements-base.txt'),
6654
cmdclass=get_cmdclass(),
6755
command_options={

0 commit comments

Comments
 (0)