setup.py 1.8 KB

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