setup.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.2.1',
  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', 'macop.algorithms', 'macop.callbacks', 'macop.evaluators', 'macop.operators', 'macop.solutions', 'macop.utils'],
  33. install_requires=[
  34. 'numpy',
  35. ],
  36. cmdclass={
  37. 'test': TestCommand,
  38. },
  39. zip_safe=False)