setup.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import json
  2. import setuptools
  3. with open("README.md", "r", encoding="utf-8") as fh:
  4. long_description = fh.read()
  5. with open("requirements.txt", "r", encoding="utf-8") as f:
  6. requirements = f.read().split("\n")
  7. with open("package_info.json", "r", encoding="utf-8") as f:
  8. package_info = json.load(f)
  9. setuptools.setup(
  10. name="deepface",
  11. version=package_info["version"],
  12. author="Sefik Ilkin Serengil",
  13. author_email="serengil@gmail.com",
  14. description=(
  15. "A Lightweight Face Recognition and Facial Attribute Analysis Framework"
  16. " (Age, Gender, Emotion, Race) for Python"
  17. ),
  18. data_files=[("", ["README.md", "requirements.txt", "package_info.json"])],
  19. long_description=long_description,
  20. long_description_content_type="text/markdown",
  21. url="https://github.com/serengil/deepface",
  22. packages=setuptools.find_packages(),
  23. classifiers=[
  24. "Programming Language :: Python :: 3",
  25. "License :: OSI Approved :: MIT License",
  26. "Operating System :: OS Independent",
  27. ],
  28. entry_points={
  29. "console_scripts": ["deepface = deepface.DeepFace:cli"],
  30. },
  31. python_requires=">=3.7",
  32. license="MIT",
  33. install_requires=requirements,
  34. )