setup.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # -*- coding: utf-8 -*-
  2. import codecs
  3. from setuptools import find_packages
  4. from setuptools import setup
  5. with codecs.open('README.rst', 'r', 'utf-8') as readme_f:
  6. README = readme_f.read()
  7. with codecs.open('requirements.txt', 'r', 'utf-8') as requirements_f:
  8. REQUIREMENTS = [
  9. requirement.strip()
  10. for requirement
  11. in requirements_f.read().strip().split('\n')
  12. ]
  13. with codecs.open('requirements-dev.txt', 'r', 'utf-8') as requirements_dev_f:
  14. REQUIREMENTS_DEV = [
  15. requirement.strip()
  16. for requirement
  17. in requirements_dev_f.read().strip().split('\n')[1:]
  18. ]
  19. PACKAGES = find_packages(
  20. include=['django_changelist_inline'], exclude=['testing*', 'tests*'],
  21. )
  22. setup(
  23. name='django-changelist-inline',
  24. version='1.0.2',
  25. url='https://git.bthlabs.pl/tomekwojcik/django-changelist-inline',
  26. license='Other/Proprietary License',
  27. author='Tomek Wójcik',
  28. author_email='contact@bthlabs.pl',
  29. maintainer='BTHLabs',
  30. maintainer_email='contact@bthlabs.pl',
  31. description='Inline Changelists for Django',
  32. long_description=README,
  33. classifiers=[
  34. 'License :: OSI Approved :: MIT License',
  35. ],
  36. packages=PACKAGES,
  37. include_package_data=True,
  38. python_requires='>=3.8',
  39. install_requires=REQUIREMENTS,
  40. extras_require={
  41. 'dev': REQUIREMENTS_DEV,
  42. },
  43. zip_safe=False,
  44. platforms='any',
  45. )