File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
+ from pathlib import Path
3
+
2
4
from setuptools import find_packages , setup
3
5
4
6
from djangocms_snippet import __version__
35
37
'Topic :: Software Development :: Libraries' ,
36
38
]
37
39
40
+ this_directory = Path (__file__ ).parent
41
+ long_description = (this_directory / "README.rst" ).read_text ()
38
42
39
43
setup (
40
44
name = 'djangocms-snippet' ,
46
50
url = 'https://github.com/django-cms/djangocms-snippet' ,
47
51
license = 'BSD-3-Clause' ,
48
52
description = 'Adds snippet plugin to django CMS.' ,
49
- long_description = open ('README.rst' ).read (),
50
- packages = find_packages (),
53
+ long_description = long_description ,
54
+ long_description_content_type = 'text/x-rst' ,
55
+ packages = find_packages (exclude = ['tests' ]),
56
+ python_requires = '>=3.5' ,
51
57
include_package_data = True ,
52
58
zip_safe = False ,
53
59
install_requires = REQUIREMENTS ,
You can’t perform that action at this time.
0 commit comments