Skip to content

Commit e47185d

Browse files
authored
Merge pull request #9 from soda480/0.0.6
Update build meta-data to use readme for PyPi description
2 parents a312d45 + e78d284 commit e47185d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

build.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,21 @@
2828
use_plugin('python.coverage')
2929
use_plugin('python.distutils')
3030

31-
with open('README.md', mode='r', encoding='utf-8') as readme_file:
32-
readme_contents = readme_file.read()
33-
3431
name = 'github3api'
3532
authors = [
3633
Author('Emilio Reyes', 'emilio.reyes@intel.com')
3734
]
3835
summary = 'An advanced REST client for the GitHub API'
3936
url = 'https://github.com/soda480/github3api'
40-
version = '0.0.5'
37+
version = '0.0.6'
4138
default_task = [
4239
'clean',
4340
'analyze',
4441
'cyclomatic_complexity',
4542
'package'
4643
]
4744
license = 'Apache License, Version 2.0'
48-
description = readme_contents
49-
long_description_content_type = 'text/markdown'
45+
description = summary
5046

5147
@init
5248
def set_properties(project):
@@ -60,6 +56,9 @@ def set_properties(project):
6056
project.set_property('flake8_ignore', 'E501, W503, F401, E722, W605')
6157
project.build_depends_on_requirements('requirements-build.txt')
6258
project.depends_on_requirements('requirements.txt')
59+
project.set_property('distutils_readme_description', True)
60+
project.set_property('distutils_description_overwrite', True)
61+
project.set_property('distutils_upload_skip_existing', True)
6362
project.set_property('distutils_classifiers', [
6463
'Development Status :: 4 - Beta',
6564
'Environment :: Console',

0 commit comments

Comments
 (0)