Sitemap generator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.4 KiB

9 years ago
4 years ago
9 years ago
9 years ago
4 years ago
4 years ago
9 years ago
4 years ago
9 years ago
9 years ago
9 years ago
4 years ago
9 years ago
4 years ago
9 years ago
4 years ago
9 years ago
  1. from setuptools import find_packages, setup
  2. from version import VERSION
  3. EXCLUDE_FROM_PACKAGES = ['tests',]
  4. def get_long_description():
  5. long_description = ""
  6. with open("README.rst", "r") as fh:
  7. long_description = fh.read()
  8. return long_description
  9. def get_requirements():
  10. requirements = []
  11. with open('requirements.txt', 'r') as df:
  12. requirements = df.readlines()
  13. return [requirement.strip() for requirement in requirements]
  14. setup(
  15. name='sitemap-generator',
  16. version=VERSION,
  17. packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
  18. include_package_data=True,
  19. url='https://github.com/Haikson/sitemap-generator',
  20. license='GPL3',
  21. author='Kamo Petrosyan',
  22. author_email='kamo@haikson.com',
  23. description='web crawler and sitemap generator.',
  24. long_description=get_long_description(),
  25. long_description_content_type="text/x-rst",
  26. classifiers=[
  27. 'Environment :: Web Environment',
  28. 'Intended Audience :: Developers',
  29. 'License :: OSI Approved :: BSD License',
  30. 'Operating System :: OS Independent',
  31. 'Programming Language :: Python',
  32. 'Programming Language :: Python :: 3',
  33. 'Programming Language :: Python :: 3.7',
  34. 'Topic :: Software Development :: Libraries :: Python Modules',
  35. ],
  36. install_requires=get_requirements(),
  37. requires=get_requirements()
  38. )