PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/src/setup.py

https://gitlab.com/simont3/awftp
Python | 117 lines | 31 code | 21 blank | 65 comment | 1 complexity | 834f2c27295390af1964c8a80ba0e18c MD5 | raw file
  1. # -*- coding: utf-8 -*-
  2. # The MIT License (MIT)
  3. #
  4. # Copyright (c) 2016-2021 Thorsten Simons (sw@snomis.eu)
  5. #
  6. # Permission is hereby granted, free of charge, to any person obtaining a
  7. # copy of this software and associated documentation files (the "Software"),
  8. # to deal in the Sos of the Software, and to permit persons to whom the
  9. # Software is furnished to do so, subject to the following conditions:
  10. #
  11. # The above copyrighftware without restriction, including without limitation
  12. # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  13. # and/or sell copiet notice and this permission notice shall be included in
  14. # all copies or substantial portions of the Software.
  15. #
  16. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  19. # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  20. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  21. # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  22. # DEALINGS IN THE SOFTWARE.
  23. from setuptools import setup, find_packages
  24. from codecs import open # To use a consistent encoding
  25. from os import path
  26. from version import Gvars
  27. here = path.abspath(path.dirname(__file__))
  28. # Get the long description from the relevant file
  29. with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
  30. long_description = f.read()
  31. setup(
  32. name='awftp',
  33. # Versions should comply with PEP440. For a discussion on single-sourcing
  34. # the version across setup.py and the project code, see
  35. # http://packaging.python.org/en/latest/tutorial.html#version
  36. version=str(Gvars.s_version),
  37. description=Gvars.Description,
  38. long_description=long_description,
  39. # The project's main homepage.
  40. url='http://awftp.readthedocs.io/en/latest/',
  41. # Author details
  42. author=Gvars.Author,
  43. author_email=Gvars.AuthorMail,
  44. # Choose your license
  45. license='MIT',
  46. # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
  47. classifiers=[
  48. # How mature is this project? Common values are
  49. # 3 - Alpha
  50. # 4 - Beta
  51. # 5 - Production/Stable
  52. 'Development Status :: 5 - Production/Stable',
  53. # Indicate who your project is intended for
  54. 'Intended Audience :: System Administrators',
  55. 'Intended Audience :: Other Audience',
  56. 'Topic :: Communications :: File Sharing',
  57. # Pick your license as you wish (should match "license" above)
  58. 'License :: OSI Approved :: MIT License',
  59. # Specify the Python versions you support here. In particular, ensure
  60. # that you indicate whether you support Python 2, Python 3 or both.
  61. 'Programming Language :: Python :: 3',
  62. # more...
  63. 'Operating System :: OS Independent',
  64. 'Natural Language :: English',
  65. ],
  66. # What does your project relate to?
  67. keywords='HCP Anywhere ftp-style client',
  68. # You can just specify the packages manually here if your project is
  69. # simple. Or you can use find_packages().
  70. packages=find_packages(exclude=[]),
  71. # List run-time dependencies here. These will be installed by pip when your
  72. # project is installed. For an analysis of "install_requires" vs pip's
  73. # requirements files see:
  74. # https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-files
  75. install_requires=['requests>=2.13.0', 'click>=6.7', 'beautifulsoup4>=4.6.0'],
  76. # List additional groups of dependencies here (e.g. development dependencies).
  77. # You can install these using the following syntax, for example:
  78. # $ pip install -e .[dev,test]
  79. # extras_require = {'dev': ['Sphinx'],
  80. # },
  81. # If there are data files included in your packages that need to be
  82. # installed, specify them here. If using Python 2.6 or less, then these
  83. # have to be included in MANIFEST.in as well.
  84. # package_data={
  85. # 'sample': ['package_data.dat'],
  86. # },
  87. # Although 'package_data' is the preferred approach, in some case you may
  88. # need to place data files outside of your packages.
  89. # see http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
  90. # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
  91. # data_files=[('my_data', ['data/data_file'])],
  92. # To provide executable scripts, use entry points in preference to the
  93. # "scripts" keyword. Entry points provide cross-platform support and allow
  94. # pip to create the appropriate form of executable for the Target platform.
  95. entry_points={'console_scripts': ['awftp = aw.__main__:main']}
  96. )