setup.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import re
  2. import setuptools, os
  3. def open_local(paths, mode="r", encoding="utf8"):
  4. path = os.path.join(os.path.abspath(os.path.dirname(__file__)), *paths)
  5. return open(path, mode=mode, encoding=encoding)
  6. with open_local(["s3recon", "__init__.py"]) as f:
  7. version = re.search(r"__version__ = [\"'](\d+\.\d+\.\d+)[\"']", f.read()).group(1)
  8. with open_local(["README.md"]) as f:
  9. long_description = f.read()
  10. install_requires = ["mergedeep>=1.1", "requests>=2.23", "pymongo>=3.10", "pyyaml>=5.3"]
  11. setuptools.setup(
  12. name="s3recon",
  13. version=version,
  14. author="Travis Clarke",
  15. author_email="travis.m.clarke@gmail.com",
  16. description="Amazon S3 bucket finder.",
  17. long_description=long_description,
  18. long_description_content_type="text/markdown",
  19. url="https://github.com/clarketm/s3recon",
  20. packages=setuptools.find_packages(),
  21. python_requires=">=3.6",
  22. include_package_data=True,
  23. install_requires=install_requires,
  24. entry_points={"console_scripts": ["s3recon=s3recon.s3recon:cli"]},
  25. classifiers=(
  26. "Programming Language :: Python :: 3",
  27. "Programming Language :: Python :: 3.6",
  28. "Programming Language :: Python :: 3.7",
  29. "Programming Language :: Python :: 3.8",
  30. "License :: OSI Approved :: MIT License",
  31. "Operating System :: OS Independent",
  32. ),
  33. )