Skip to content

Commit

Permalink
Fix description in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
fmder committed Jun 20, 2019
1 parent b1e6814 commit c8aca35
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@
from distutils.errors import CCompilerError, DistutilsExecError, \
DistutilsPlatformError

try:
from pypandoc import convert_file
except ImportError:
warnings.append("warning: pypandoc module not found, could not convert ReadMe Markdown to RST")
import codecs
read_md = lambda f: "See https://github.com/DEAP/deap"
else:
read_md = lambda f: convert_file(f, 'rst')
# read the contents of README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

import deap

Expand Down Expand Up @@ -66,14 +63,15 @@ def run_setup(build_ext):
setup(name='deap',
version=deap.__revision__,
description='Distributed Evolutionary Algorithms in Python',
long_description=read_md('README.md'),
long_description=long_description,
long_description_content_type="text/markdown",
author='deap Development Team',
author_email='[email protected]',
url='https://www.github.com/deap',
packages=find_packages(exclude=['examples']),
# packages=['deap', 'deap.tools', 'deap.tools._hypervolume', 'deap.benchmarks', 'deap.tests'],
platforms=['any'],
keywords=['evolutionary algorithms','genetic algorithms','genetic programming','cma-es','ga','gp','es','pso'],
keywords=['evolutionary algorithms', 'genetic algorithms', 'genetic programming', 'cma-es', 'ga', 'gp', 'es', 'pso'],
license='LGPL',
classifiers=[
'Development Status :: 4 - Beta',
Expand All @@ -86,9 +84,9 @@ def run_setup(build_ext):
'Topic :: Scientific/Engineering',
'Topic :: Software Development',
],
ext_modules = extra_modules,
cmdclass = {"build_ext" : ve_build_ext},
install_requires = ['numpy'],
ext_modules=extra_modules,
cmdclass={"build_ext": ve_build_ext},
install_requires=['numpy'],
use_2to3=True
)

Expand Down

0 comments on commit c8aca35

Please sign in to comment.