Skip to content

Commit 712bfe7

Browse files
committed
updated
1 parent e64227a commit 712bfe7

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

_test.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ def run_sliding_puzzle_app():
8484

8585

8686

87+
def test_read_readme():
88+
from pathlib import Path
89+
this_directory = Path(__file__).parent
90+
long_description = (this_directory / "README.md").read_text()
91+
print(long_description)
92+
8793
def test_find_packages():
8894
from setuptools.config.expand import find_packages
8995
packages = find_packages(include=["dumbdisplay*"])
@@ -93,7 +99,7 @@ def test_find_packages():
9399

94100
if __name__ == "__main__":
95101
#run_passive_blink_app()
96-
run_sliding_puzzle_app()
102+
#run_sliding_puzzle_app()
97103

98104
#run_debug()
99105
#run_doodle()
@@ -104,4 +110,5 @@ def test_find_packages():
104110
#test_very_simple()
105111
#test_plotter()
106112

107-
test_find_packages()
113+
test_read_readme()
114+
#test_find_packages()

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
import setuptools
22
from setuptools.config.expand import find_packages
33

4+
5+
# read the contents of your README file
6+
from pathlib import Path
7+
this_directory = Path(__file__).parent
8+
long_description = (this_directory / "README.md").read_text()
9+
410
setuptools.setup(
511
name='uDumbDisplayLib',
612
version='0.4.0',
713
author='Trevor Lee',
814
author_email='trevorwslee@gmail.com',
915
description='MicroPython DumbDisplay Library',
10-
long_description='''
11-
DumbDisplay MicroPython Library -- workable with Python 3 -- is a port of the [DumbDisplay Arduino Library](https://github.com/trevorwslee/Arduino-DumbDisplay)
12-
to Micro-Python / Python 3 for the [DumbDisplay Android app](https://play.google.com/store/apps/details?id=nobody.trevorlee.dumbdisplay)
13-
''',
16+
long_description=long_description,
1417
long_description_content_type="text/markdown",
1518
url='https://github.com/trevorwslee/MicroPython-DumbDisplay',
1619
project_urls = {

0 commit comments

Comments
 (0)