diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..8afbefe --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include README.md +include requirements.txt diff --git a/publish.sh b/publish.sh index a2d29d3..dc6f8d6 100755 --- a/publish.sh +++ b/publish.sh @@ -1,5 +1,2 @@ #!/usr/bin/env bash -rm -f README.rst && m2r README.md -rm -f dist/* -python3 setup.py sdist -twine upload dist/* +rm -f dist/* && python3 setup.py sdist && twine upload dist/* diff --git a/requirements-dev.txt b/requirements-dev.txt index 6dc6b96..deebdbb 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,2 @@ coverage -m2r twine diff --git a/setup.py b/setup.py index 629001a..37e0176 100644 --- a/setup.py +++ b/setup.py @@ -1,19 +1,27 @@ -from setuptools import setup +import codecs +from setuptools import setup, find_packages + + +with codecs.open('README.md', 'r', 'utf8') as reader: + long_description = reader.read() + + +with codecs.open('requirements.txt', 'r', 'utf8') as reader: + install_requires = list(map(lambda x: x.strip(), reader.readlines())) + setup( name='keras-bi-lm', - version='0.21.0', - packages=['keras_bi_lm'], + version='0.22.0', + packages=find_packages(), url='https://github.com/CyberZHG/keras-bi-lm', license='MIT', author='CyberZHG', author_email='CyberZHG@gmail.com', description='Train the Bi-LM model and use it as a feature extraction method', - long_description=open('README.rst', 'r').read(), - install_requires=[ - 'numpy', - 'keras', - ], + long_description=long_description, + long_description_content_type='text/markdown', + install_requires=install_requires, classifiers=( "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 3.7",