66
77
88class PyTest (TestCommand ):
9- user_options = [(' pytest-args=' , 'a' , "Arguments to pass to py.test" )]
9+ user_options = [(" pytest-args=" , "a" , "Arguments to pass to py.test" )]
1010
1111 def initialize_options (self ):
1212 TestCommand .initialize_options (self )
@@ -20,6 +20,7 @@ def finalize_options(self):
2020 def run_tests (self ):
2121 # import here, cause outside the eggs aren't loaded
2222 import pytest
23+
2324 errno = pytest .main (self .pytest_args )
2425 sys .exit (errno )
2526
@@ -29,8 +30,8 @@ def read(fname):
2930 return open (path , encoding = "utf-8" ).read ()
3031
3132
32- README = read (' README.rst' )
33- CHANGES = read (' CHANGES.rst' )
33+ README = read (" README.rst" )
34+ CHANGES = read (" CHANGES.rst" )
3435
3536
3637version = ""
@@ -39,7 +40,7 @@ def read(fname):
3940 version = re .search (r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' , fd .read (), re .MULTILINE ).group (1 )
4041
4142if not version :
42- raise RuntimeError (' Cannot find version information' )
43+ raise RuntimeError (" Cannot find version information" )
4344
4445
4546setup (
@@ -50,35 +51,40 @@ def read(fname):
5051 author_email = "andrey.fedoseev@gmail.com" ,
5152 url = "https://github.com/andreyfedoseev/django-static-precompiler" ,
5253 description = "Django template tags to compile all kinds of static files "
53- "(SASS, LESS, Stylus, CoffeeScript, Babel, LiveScript, Handlebars)." ,
54+ "(SASS, LESS, Stylus, CoffeeScript, Babel, LiveScript, Handlebars)." ,
5455 long_description = "\n \n " .join ([README , CHANGES ]),
5556 classifiers = [
56- 'Development Status :: 4 - Beta' ,
57- 'Framework :: Django' ,
58- 'Intended Audience :: Developers' ,
59- 'License :: OSI Approved :: BSD License' ,
60- 'Operating System :: OS Independent' ,
61- 'Programming Language :: Python' ,
62- 'Programming Language :: Python :: 3' ,
63- 'Topic :: Internet :: WWW/HTTP' ,
57+ "Development Status :: 4 - Beta" ,
58+ "Framework :: Django" ,
59+ "Intended Audience :: Developers" ,
60+ "License :: OSI Approved :: BSD License" ,
61+ "Operating System :: OS Independent" ,
62+ "Programming Language :: Python" ,
63+ "Programming Language :: Python :: 3" ,
64+ "Topic :: Internet :: WWW/HTTP" ,
65+ ],
66+ keywords = [
67+ "sass" ,
68+ "scss" ,
69+ "less" ,
70+ "stylus" ,
71+ "css" ,
72+ "coffeescript" ,
73+ "javascript" ,
74+ "babel" ,
75+ "livescript" ,
76+ "handlebars" ,
6477 ],
65- keywords = ["sass" , "scss" , "less" , "stylus" , "css" , "coffeescript" , "javascript" , "babel" , "livescript" ,
66- "handlebars" ],
67- python_requires = ">=3.5" ,
78+ python_requires = ">=3.6" ,
6879 install_requires = [
69- "Django>=1.9 " ,
80+ "Django>=2.0 " ,
7081 ],
7182 tests_require = [
7283 "pytest" ,
7384 "pytest-django" ,
7485 "pretend" ,
7586 "libsass" ,
7687 ],
77- extras_require = {
78- 'watch' : ['watchdog' ],
79- 'libsass' : ['libsass' ]
80- },
81- cmdclass = {
82- "test" : PyTest
83- },
88+ extras_require = {"watch" : ["watchdog" ], "libsass" : ["libsass" ]},
89+ cmdclass = {"test" : PyTest },
8490)
0 commit comments