Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit b554e05

Browse files
committed
setup: build long_descript form md files even in tests
1 parent f7f4078 commit b554e05

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22

3-
import os
43
import pypandoc
54

65
# Notes for the not-an-everyday-python-dev for package distribution on pypi
@@ -44,11 +43,9 @@
4443
use_setuptools()
4544
from setuptools import setup
4645

47-
long_description = 'This library provides the python client for the Packet API.'
48-
if os.path.isfile('README.md') and os.path.isfile('CHANGELOG.md'):
49-
readme = pypandoc.convert_file('README.md', 'rst')
50-
changelog = pypandoc.convert_file('CHANGELOG.md', 'rst')
51-
long_description = readme + '\n' + changelog
46+
readme = pypandoc.convert_file('README.md', 'rst')
47+
changelog = pypandoc.convert_file('CHANGELOG.md', 'rst')
48+
long_description = readme + '\n' + changelog
5249

5350
setup(
5451
name='packet-python',

0 commit comments

Comments
 (0)