GNS3 server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

85 lines
3.0 KiB

  1. # -*- coding: utf-8 -*-
  2. #
  3. # Copyright (C) 2013 GNS3 Technologies Inc.
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. import sys
  18. from setuptools import setup, find_packages
  19. from setuptools.command.test import test as TestCommand
  20. # we only support Python 3 version >= 3.5.3
  21. if len(sys.argv) >= 2 and sys.argv[1] == "install" and sys.version_info < (3, 5, 3):
  22. raise SystemExit("Python 3.5.3 or higher is required")
  23. class PyTest(TestCommand):
  24. def finalize_options(self):
  25. TestCommand.finalize_options(self)
  26. self.test_args = []
  27. self.test_suite = True
  28. def run_tests(self):
  29. # import here, cause outside the eggs aren't loaded
  30. import pytest
  31. errcode = pytest.main(self.test_args)
  32. sys.exit(errcode)
  33. dependencies = open("requirements.txt", "r").read().splitlines()
  34. setup(
  35. name="gns3-server",
  36. version=__import__("gns3server").__version__,
  37. url="http://github.com/GNS3/gns3-server",
  38. license="GNU General Public License v3 (GPLv3)",
  39. tests_require=["pytest", "pytest-capturelog", "pytest-aiohttp"],
  40. cmdclass={"test": PyTest},
  41. description="GNS3 server",
  42. long_description=open("README.rst", "r").read(),
  43. install_requires=dependencies,
  44. entry_points={
  45. "console_scripts": [
  46. "gns3server = gns3server.main:main",
  47. "gns3vmnet = gns3server.utils.vmnet:main",
  48. "gns3loopback = gns3server.utils.windows_loopback:main"
  49. ]
  50. },
  51. packages=find_packages(".", exclude=["docs", "tests"]),
  52. include_package_data=True,
  53. zip_safe=False,
  54. platforms="any",
  55. python_requires='>=3.6.0',
  56. setup_requires=["setuptools>=17.1"],
  57. classifiers=[
  58. "Development Status :: 5 - Production/Stable",
  59. "Environment :: Console",
  60. "Intended Audience :: Information Technology",
  61. "Topic :: System :: Networking",
  62. "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
  63. "Natural Language :: English",
  64. "Operating System :: POSIX",
  65. "Operating System :: MacOS :: MacOS X",
  66. "Operating System :: Microsoft :: Windows",
  67. "Programming Language :: Python",
  68. "Programming Language :: Python :: 3 :: Only",
  69. "Programming Language :: Python :: 3.6",
  70. "Programming Language :: Python :: 3.7",
  71. "Programming Language :: Python :: 3.8",
  72. "Programming Language :: Python :: Implementation :: CPython",
  73. ],
  74. )