setup.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. from setuptools import setup
  2. import distutils.command.check
  3. class TestCommand(distutils.command.check.check):
  4. """Custom test command."""
  5. def run(self):
  6. # run tests using doctest
  7. import doctest
  8. # folders
  9. # from macop.algorithms import Algorithm
  10. print("==============================")
  11. print("Runs test command...")
  12. # pass test using doctest
  13. #doctest.testmod(Algorithm)
  14. distutils.command.check.check.run(self)
  15. setup(
  16. name='macop',
  17. version='0.3.5',
  18. description='Minimalist And Customizable Optimization Package',
  19. long_description=open('README.md').read(),
  20. long_description_content_type='text/markdown',
  21. classifiers=[
  22. 'Development Status :: 4 - Beta',
  23. 'License :: OSI Approved :: MIT License',
  24. 'Programming Language :: Python :: 3.7',
  25. 'Topic :: Scientific/Engineering',
  26. 'Topic :: Utilities'
  27. ],
  28. url='https://github.com/prise-3d/macop',
  29. author='Jérôme BUISINE',
  30. author_email='jerome.buisine@univ-littoral.fr',
  31. license='MIT',
  32. packages=['macop',
  33. 'macop.algorithms',
  34. 'macop.algorithms.mono',
  35. 'macop.algorithms.multi',
  36. 'macop.callbacks',
  37. 'macop.evaluators',
  38. 'macop.operators',
  39. 'macop.operators.mutators',
  40. 'macop.operators.crossovers',
  41. 'macop.operators.policies',
  42. 'macop.solutions',
  43. 'macop.utils'],
  44. install_requires=[
  45. 'numpy',
  46. ],
  47. cmdclass={
  48. 'test': TestCommand,
  49. },
  50. zip_safe=False)