setup.py 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. """A setuptools based setup module.
  2. See:
  3. https://packaging.python.org/en/latest/distributing.html
  4. https://github.com/pypa/sampleproject
  5. """
  6. # Always prefer setuptools over distutils
  7. from setuptools import setup, find_packages
  8. # To use a consistent encoding
  9. from codecs import open
  10. from os import path
  11. here = path.abspath(path.dirname(__file__))
  12. # Get the long description from the README file
  13. with open(path.join(here, 'README.md'), encoding='utf-8') as f:
  14. long_description = f.read()
  15. setup(
  16. name='himport',
  17. # Versions should comply with PEP440. For a discussion on single-sourcing
  18. # the version across setup.py and the project code, see
  19. # https://packaging.python.org/en/latest/single_source_version.html
  20. version='0.1.1',
  21. description='Himport project',
  22. long_description=long_description,
  23. # The project's main homepage.
  24. url='',
  25. # Author details
  26. author='Philippe Le Brouster',
  27. author_email='plb@nebkha.net',
  28. # Choose your license
  29. license='',
  30. # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
  31. classifiers=[
  32. # How mature is this project? Common values are
  33. # 3 - Alpha
  34. # 4 - Beta
  35. # 5 - Production/Stable
  36. 'Development Status :: 4 - Beta',
  37. # Indicate who your project is intended for
  38. 'Intended Audience :: Developers',
  39. 'Topic :: Software Development :: Build Tools',
  40. 'Office/Business :: Financial :: Accounting',
  41. # Specify the Python versions you support here. In particular, ensure
  42. # that you indicate whether you support Python 2, Python 3 or both.
  43. 'Programming Language :: Python :: 2',
  44. 'Programming Language :: Python :: 2.7',
  45. 'Programming Language :: Python :: 3',
  46. 'Programming Language :: Python :: 3.3',
  47. 'Programming Language :: Python :: 3.4',
  48. 'Programming Language :: Python :: 3.5',
  49. ],
  50. # What does your project relate to?
  51. keywords='himport',
  52. # You can just specify the packages manually here if your project is
  53. # simple. Or you can use find_packages().
  54. packages=find_packages(exclude=['contrib', 'doc', 'tests']),
  55. # Alternatively, if you want to distribute just a my_module.py, uncomment
  56. # this:
  57. # py_modules=["my_module"],
  58. # List run-time dependencies here. These will be installed by pip when
  59. # your project is installed. For an analysis of "install_requires" vs pip's
  60. # requirements files see:
  61. # https://packaging.python.org/en/latest/requirements.html
  62. install_requires=['mysqlclient', 'sqlalchemy', 'future'],
  63. # List additional groups of dependencies here (e.g. development
  64. # dependencies). You can install these using the following syntax,
  65. # for example:
  66. # $ pip install -e .[dev,test]
  67. extras_require={
  68. # 'dev': ['check-manifest'],
  69. # 'test': ['coverage'],
  70. },
  71. # If there are data files included in your packages that need to be
  72. # installed, specify them here. If using Python 2.6 or less, then these
  73. # have to be included in MANIFEST.in as well.
  74. package_data={
  75. 'himport': [],
  76. },
  77. # Although 'package_data' is the preferred approach, in some case you may
  78. # need to place data files outside of your packages. See:
  79. # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
  80. # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
  81. #data_files=[('my_data', ['data/data_file'])],
  82. # To provide executable scripts, use entry points in preference to the
  83. # "scripts" keyword. Entry points provide cross-platform support and allow
  84. # pip to create the appropriate form of executable for the target platform.
  85. entry_points={
  86. 'console_scripts': [
  87. 'himport=himport.cli:main',
  88. ],
  89. },
  90. )