setup.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!/usr/bin/env python
  2. # coding: utf-8
  3. import os
  4. from pathlib import Path
  5. import setuptools
  6. PYPI_PACKAGE_NAME = 'mtrayapp'
  7. MAIN_PACKAGE_NAME = 'mtrayapp'
  8. PACKAGE_URL = 'https://github.com/melianmiko/python-mtrayapp'
  9. AUTHOR = u"Moses Palmér, melianmiko's mod"
  10. # AUTHOR_EMAIL = 'moses.palmer@gmail.com'
  11. AUTHOR_EMAIL = "melianmiko@yandex.ru"
  12. VERSION = "1.0.2"
  13. #: The runtime requirements
  14. DEPENDENCIES = [
  15. 'Pillow',
  16. 'six'
  17. ]
  18. #: Packages requires for different environments
  19. EXTRA_PACKAGES = {
  20. ':sys_platform == "darwin"': [
  21. 'pyobjc-framework-Quartz >=7.0'],
  22. ':sys_platform == "linux"': [
  23. 'python-xlib >=0.17']}
  24. this_directory = Path(__file__).parent
  25. README = (this_directory / "README.md").read_text()
  26. setuptools.setup(
  27. name=PYPI_PACKAGE_NAME,
  28. version=VERSION,
  29. description="Modification of Moses Palmér's pystray lib with some extra features",
  30. long_description=README,
  31. long_description_content_type='text/markdown',
  32. install_requires=DEPENDENCIES,
  33. extras_require=EXTRA_PACKAGES,
  34. author=AUTHOR,
  35. author_email=AUTHOR_EMAIL,
  36. url=PACKAGE_URL,
  37. packages=setuptools.find_packages(
  38. os.path.join(os.path.dirname(__file__), 'lib')
  39. ),
  40. package_dir={'': 'lib'},
  41. zip_safe=True,
  42. license='LGPLv3',
  43. keywords='system tray icon, systray icon',
  44. classifiers=[
  45. 'Development Status :: 4 - Beta',
  46. 'Intended Audience :: Developers',
  47. 'License :: OSI Approved :: GNU Lesser General Public License v3 '
  48. '(LGPLv3)',
  49. 'Operating System :: MacOS :: MacOS X',
  50. 'Operating System :: Microsoft :: Windows :: Windows NT/2000',
  51. 'Operating System :: POSIX',
  52. 'Programming Language :: Python',
  53. 'Programming Language :: Python :: 2.7',
  54. 'Programming Language :: Python :: 3.4'])