Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberZHG committed Jan 31, 2019
1 parent 5eaefb6 commit 40df4f2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include requirements.txt
5 changes: 1 addition & 4 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -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/*
20 changes: 14 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
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-drop-block',
version='0.3.0',
version='0.4.0',
packages=find_packages(),
url='https://github.com/CyberZHG/keras-drop-block',
license='MIT',
author='CyberZHG',
author_email='CyberZHG@gmail.com',
description='DropBlock implemented in Keras',
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.7",
"Programming Language :: Python :: 3.6",
Expand Down

0 comments on commit 40df4f2

Please sign in to comment.