setup.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import os
  2. import re
  3. from setuptools import setup
  4. def rel(*parts):
  5. '''returns the relative path to a file wrt to the current directory'''
  6. return os.path.abspath(os.path.join(os.path.dirname(__file__), *parts))
  7. README = open('README.md', 'r').read()
  8. with open(rel('webpack_loader', '__init__.py')) as handler:
  9. INIT_PY = handler.read()
  10. VERSION = re.findall("__version__ = '([^']+)'", INIT_PY)[0]
  11. setup(
  12. name = 'django-webpack-loader',
  13. packages = ['webpack_loader', 'webpack_loader/templatetags', 'webpack_loader/contrib'],
  14. version = VERSION,
  15. description = 'Transparently use webpack with django',
  16. long_description=README,
  17. long_description_content_type="text/markdown",
  18. author = 'Owais Lone',
  19. author_email = 'hello@owaislone.org',
  20. download_url = 'https://github.com/django-webpack/django-webpack-loader/tarball/{0}'.format(VERSION),
  21. url = 'https://github.com/django-webpack/django-webpack-loader', # use the URL to the github repo
  22. keywords = ['django', 'webpack', 'assets'], # arbitrary keywords
  23. classifiers = [
  24. 'Programming Language :: Python',
  25. 'Programming Language :: Python :: 3.5',
  26. 'Programming Language :: Python :: 3.6',
  27. 'Programming Language :: Python :: 3.7',
  28. 'Programming Language :: Python :: 3.8',
  29. 'Programming Language :: Python :: 3.9',
  30. 'Framework :: Django',
  31. 'Framework :: Django :: 2.0',
  32. 'Framework :: Django :: 2.1',
  33. 'Framework :: Django :: 2.2',
  34. 'Framework :: Django :: 3.0',
  35. 'Framework :: Django :: 3.1',
  36. 'Framework :: Django :: 3.2',
  37. 'Environment :: Web Environment',
  38. 'License :: OSI Approved :: MIT License',
  39. ],
  40. )