summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2020-02-12 13:32:08 +0100
committerAnthon van der Neut <anthon@mnt.org>2020-02-12 13:32:08 +0100
commit0bba498f9cbbd6b0a31061520e7505d52e6ef029 (patch)
treead92eb8b2d420d05a85cd18e7566c6ee7cc56222 /setup.py
parent7864c7dc54ad566bbcdb968da88f03c0f3e57d5b (diff)
downloadruamel.yaml-0bba498f9cbbd6b0a31061520e7505d52e6ef029.tar.gz
update url in meta and .svg in README0.16.10
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/setup.py b/setup.py
index 1cc1a5a..f22dceb 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
# # header
# coding: utf-8
-# dd: 20190815
+# dd: 20200125
from __future__ import print_function, absolute_import, division, unicode_literals
@@ -51,7 +51,6 @@ if sys.version_info < (3, 4):
if sys.version_info >= (3, 8):
-
from ast import Str, Num, Bytes, NameConstant # NOQA
@@ -540,11 +539,13 @@ class NameSpacePackager(object):
@property
def url(self):
- if self.full_package_name.startswith('ruamel.'):
- sp = self.full_package_name.split('.', 1)
- else:
- sp = ['ruamel', self.full_package_name]
- return 'https://bitbucket.org/{0}/{1}'.format(*sp)
+ url = self._pkg_data.get('url')
+ if url:
+ return url
+ sp = self.full_package_name
+ for ch in '_.':
+ sp = sp.replace(ch, '-')
+ return 'https://sourceforge.net/p/{0}/code/ci/default/tree'.format(sp)
@property
def author(self):
@@ -927,6 +928,7 @@ def main():
try:
with open('README.rst') as fp:
kw['long_description'] = fp.read()
+ kw['long_description_content_type'] = 'text/x-rst'
except Exception:
pass