Skip to content

Commit f4528eb

Browse files
authored
Merge pull request #1 from andhus/preprare_pypi
Update setup.py for PyPI publish
2 parents c1e1329 + 5a3f59e commit f4528eb

2 files changed

Lines changed: 23 additions & 6 deletions

File tree

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include README.md LICENSE

setup.py

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
1-
from setuptools import setup, find_packages
1+
import io
2+
import os
3+
from setuptools import setup
24

3-
VERSION = '0.1.0'
5+
VERSION = '0.1.1'
6+
7+
DESCRIPTION = 'Python module and CLI for hashing of file system directories.'
8+
9+
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
10+
try:
11+
with io.open(os.path.join(PROJECT_ROOT, 'README.md'), encoding='utf-8') as f:
12+
long_description = '\n' + f.read()
13+
except IOError:
14+
long_description = DESCRIPTION
415

516
setup(
617
name='dirhash',
718
version=VERSION,
8-
description='',
9-
entry_points={
10-
'console_scripts': ['dirhash=dirhash.cli:main'],
11-
},
19+
description=DESCRIPTION,
20+
long_description=long_description,
21+
long_description_content_type="text/markdown",
1222
url='https://github.com/andhus/dirhash',
23+
author="Anders Huss",
24+
author_email="andhus@kth.se",
1325
license='MIT',
1426
install_requires=[
1527
'pathspec>=0.5.9',
1628
'scandir>=1.9.0;python_version<"3.5"'
1729
],
1830
packages=['dirhash'],
31+
include_package_data=True,
32+
entry_points={
33+
'console_scripts': ['dirhash=dirhash.cli:main'],
34+
},
1935
tests_require=['pytest', 'pytest-cov']
2036
)

0 commit comments

Comments
 (0)