Skip to content

Commit 956ed30

Browse files
committed
Use file README.md as package long description
1 parent 67791b8 commit 956ed30

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Msgcheck ChangeLog
22

3+
## Version 4.1.0 (under dev)
4+
5+
- Use file README.md as package long description.
6+
37
## Version 4.0.0 (2022-01-23)
48

59
- Drop Python 2 support, Python 3.6 is now required.

setup.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,16 @@
2222
from msgcheck.msgcheck import msgcheck_version
2323

2424
DESCRIPTION = 'Gettext file checker.'
25-
LONG_DESCRIPTION = """
26-
MsgCheck performs various checks on gettext files:
2725

28-
* compilation (with command `msgfmt -c`)
29-
* for each translation:
30-
31-
- number of lines in translated strings
32-
- whitespace at beginning/end of strings
33-
- trailing whitespace at end of lines inside strings
34-
- punctuation at end of strings
35-
- spelling (messages and translations).
36-
"""
26+
with open('README.md', 'r', encoding='utf-8') as f:
27+
readme = f.read()
3728

3829
setup(
3930
name='msgcheck',
4031
version=msgcheck_version(),
4132
description=DESCRIPTION,
42-
long_description=LONG_DESCRIPTION,
33+
long_description=readme,
34+
long_description_content_type='text/markdown',
4335
author='Sébastien Helleu',
4436
author_email='flashcode@flashtux.org',
4537
url='https://github.com/flashcode/msgcheck',

0 commit comments

Comments
 (0)