Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
blavka committed Nov 20, 2018
1 parent 5c50a62 commit 240da71
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ if [ -z "${TRAVIS_BUILD_DIR:-}" ]; then
mkdir -p "$BUILD_DIR"
cp -r cpctl "$BUILD_DIR"/cpctl
cp setup.py "$BUILD_DIR"/
cp README.md "$BUILD_DIR"/
cp README.md "$BUILD_DIR"/README
cd "$BUILD_DIR"
fi

Expand Down
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
from setuptools import setup
from os import path

this_directory = path.abspath(path.dirname(__file__))

for name in ('README', 'README.md'):
if path.exists(path.join(this_directory, name)):
with open(path.join(this_directory, name), encoding='utf-8') as f:
long_description = f.read()

setup(
name='cpctl',
Expand Down Expand Up @@ -26,5 +34,7 @@
entry_points='''
[console_scripts]
cpctl=cpctl.cli:main
'''
''',
long_description=long_description,
long_description_content_type='text/markdown',
)

0 comments on commit 240da71

Please sign in to comment.