11import os
2- import sys
32from setuptools import setup , find_packages
4- from setuptools . command . test import test as TestCommand
3+
54
65def read (fname ):
76 file_path = os .path .join (os .path .dirname (__file__ ), fname )
87 with open (file_path ) as file :
98 content = file .read ()
109 return content if content else 'no content read'
1110
12- class PyTest (TestCommand ):
13- user_options = []
14-
15- def initialize_options (self ):
16- TestCommand .initialize_options (self )
17- self .pytest_args = []
18-
19- def run_tests (self ):
20- #import here, cause outside the eggs aren't loaded
21- import pytest
22- errno = pytest .main (self .pytest_args )
23- sys .exit (errno )
2411
2512setup (
2613 name = 'mkdocs-markdownextradata-plugin' ,
27- version = '0.2.4 ' ,
14+ version = '0.2.5 ' ,
2815 description = 'A MkDocs plugin that injects the mkdocs.yml extra variables into the markdown template' ,
2916 long_description = read ('README.md' ),
3017 long_description_content_type = 'text/markdown' ,
@@ -33,14 +20,7 @@ def run_tests(self):
3320 author = 'Ross Crawford-d\' Heureuse' ,
3421 author_email = 'sendrossemail@gmail.com' ,
3522 license = 'MIT' ,
36- tests_require = [
37- 'pytest' ,
38- 'mkdocs' ,
39- 'pyyaml' ,
40- 'click' ,
41- ],
42- cmdclass = {'test' : PyTest },
43- python_requires = '>=2.7.9,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*' ,
23+ python_requires = '>=3.6' ,
4424 install_requires = [
4525 'mkdocs' ,
4626 'pyyaml' ,
@@ -51,13 +31,13 @@ def run_tests(self):
5131 'Intended Audience :: Information Technology' ,
5232 'License :: OSI Approved :: MIT License' ,
5333 'Programming Language :: Python' ,
54- 'Programming Language :: Python :: 2' ,
55- 'Programming Language :: Python :: 2.7' ,
56- 'Programming Language :: Python :: 3' ,
57- 'Programming Language :: Python :: 3.4' ,
58- 'Programming Language :: Python :: 3.5' ,
34+ 'Programming Language :: Python :: 3 :: Only' ,
5935 'Programming Language :: Python :: 3.6' ,
60- 'Programming Language :: Python :: 3.7'
36+ 'Programming Language :: Python :: 3.7' ,
37+ 'Programming Language :: Python :: 3.8' ,
38+ 'Programming Language :: Python :: 3.9' ,
39+ 'Programming Language :: Python :: 3.10' ,
40+ 'Programming Language :: Python :: 3.11' ,
6141 ],
6242 packages = find_packages (exclude = ['*.tests' ]),
6343 entry_points = {
0 commit comments