setup.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. from setuptools import setup
  2. import setuptools.command.build_py
  3. def readme():
  4. with open('README.rst') as f:
  5. return f.read()
  6. class BuildTestCommand(setuptools.command.build_py.build_py):
  7. """Custom build command."""
  8. def run(self):
  9. # run tests using doctest
  10. import doctest
  11. from ipfml import image_processing
  12. from ipfml import metrics
  13. doctest.testmod(image_processing)
  14. doctest.testmod(metrics)
  15. setuptools.command.build_py.build_py.run(self)
  16. setup(name='IPFML',
  17. version='0.1.4',
  18. description='Image Processing For Machine Learning',
  19. long_description=readme(),
  20. classifiers=[
  21. 'Development Status :: 3 - Alpha',
  22. 'License :: OSI Approved :: MIT License',
  23. 'Programming Language :: Python :: 3.6',
  24. 'Topic :: Scientific/Engineering :: Artificial Intelligence'
  25. ],
  26. url='https://gogs.univ-littoral.fr/jerome.buisine/IPFML',
  27. author='Jérôme BUISINE',
  28. author_email='jerome.buisine@univ-littoral.fr',
  29. license='MIT',
  30. packages=['ipfml'],
  31. install_requires=[
  32. 'matplotlib',
  33. 'numpy',
  34. 'Pillow',
  35. 'sklearn',
  36. 'scikit-image',
  37. 'scipy',
  38. 'opencv-python',
  39. 'scipy'
  40. ],
  41. cmdclass={
  42. 'build_py': BuildTestCommand,
  43. },
  44. zip_safe=False)