setup.py 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # coding: utf-8
  2. #
  3. # Copyright 2022 The Google Fonts Tools Authors.
  4. # Copyright 2017,2022 Google LLC All Rights Reserved.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. #
  18. # See AUTHORS.txt for the list of Authors and LICENSE.txt for the License.
  19. from setuptools import setup
  20. # Read the contents of the README file
  21. with open('README.md') as f:
  22. long_description = f.read()
  23. setup(
  24. name="gflanguages",
  25. use_scm_version={"write_to": "Lib/gflanguages/_version.py"},
  26. url='https://github.com/googlefonts/lang/',
  27. description='A python API for evaluating language support in the Google Fonts collection.',
  28. long_description=long_description,
  29. long_description_content_type='text/markdown', # This is important!
  30. author=('Dave Crossland, '
  31. 'Felipe Sanches, '
  32. 'Marc Foley, '
  33. 'Roderick Sheeter'),
  34. author_email='dave@lab6.com',
  35. package_dir={'': 'Lib'},
  36. packages=['gflanguages'],
  37. package_data={'gflanguages': [
  38. "data/languages/*.textproto",
  39. "data/regions/*.textproto",
  40. "data/scripts/*.textproto"
  41. ]
  42. },
  43. zip_safe=False,
  44. classifiers=[
  45. 'Intended Audience :: Developers',
  46. 'Topic :: Text Processing :: Fonts',
  47. 'License :: OSI Approved :: Apache Software License',
  48. 'Operating System :: OS Independent',
  49. 'Programming Language :: Python :: 3'
  50. ],
  51. python_requires=">=3.7",
  52. setup_requires=['setuptools_scm>=4,<6.1'],
  53. install_requires=[
  54. 'protobuf'
  55. ]
  56. )