setup.py 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. 'Denis Moyogo Jacquerye '),
  35. author_email='dave@lab6.com',
  36. package_dir={'': 'Lib'},
  37. packages=['gflanguages'],
  38. package_data={'gflanguages': [
  39. "data/languages/*.textproto",
  40. "data/regions/*.textproto",
  41. "data/scripts/*.textproto"
  42. ]
  43. },
  44. zip_safe=False,
  45. classifiers=[
  46. 'Intended Audience :: Developers',
  47. 'Topic :: Text Processing :: Fonts',
  48. 'License :: OSI Approved :: Apache Software License',
  49. 'Operating System :: OS Independent',
  50. 'Programming Language :: Python :: 3'
  51. ],
  52. python_requires=">=3.7",
  53. setup_requires=['setuptools_scm'],
  54. install_requires=[
  55. # 3.7.0 fixed a bug on parsing some METADATA.pb files.
  56. # We cannot use v4 because our protobuf files have been compiled with v3.
  57. 'protobuf>=3.7.0, <4',
  58. ]
  59. )