@@ -5,3 +5,124 @@ build-backend = "setuptools.build_meta"
55[tool .setuptools_scm ]
66write_to = " argopt/_dist_ver.py"
77write_to_template = " __version__ = '{version}'\n "
8+ # py>3.7:
9+ # version_file = "argopt/_dist_ver.py"
10+ # version_file_template = "__version__ = '{version}'\n"
11+
12+ [tool .setuptools .packages .find ]
13+ exclude = [" tests" ]
14+
15+ [project .urls ]
16+ repository = " https://github.com/casperdcl/argopt"
17+ changelog = " https://github.com/casperdcl/argopt/releases"
18+
19+ [project ]
20+ name = " argopt"
21+ dynamic = [" version" ]
22+ authors = [{
name =
" Casper da Costa-Luis" ,
email =
" [email protected] " }]
23+ description = " doc to argparse driven by docopt"
24+ readme = " README.rst"
25+ requires-python = " >=3.7"
26+ keywords = [" docopt" , " argparse" , " doc" , " docstring" , " commandline" , " argument" , " option" , " optional" , " parameter" , " positional" , " console" , " terminal" , " command line" , " CLI" , " UI" , " gui" , " gooey" ]
27+ license = {text = " MPL-2.0" }
28+ # Trove classifiers (https://pypi.org/pypi?%3Aaction=list_classifiers)
29+ classifiers = [
30+ " Development Status :: 5 - Production/Stable" ,
31+ " Environment :: Console" ,
32+ " Environment :: MacOS X" ,
33+ " Environment :: Other Environment" ,
34+ " Environment :: Win32 (MS Windows)" ,
35+ " Environment :: X11 Applications" ,
36+ " Framework :: IPython" ,
37+ " Intended Audience :: Developers" ,
38+ " Intended Audience :: Education" ,
39+ " Intended Audience :: End Users/Desktop" ,
40+ " Intended Audience :: Other Audience" ,
41+ " Intended Audience :: System Administrators" ,
42+ " License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)" ,
43+ " Operating System :: MacOS" ,
44+ " Operating System :: MacOS :: MacOS X" ,
45+ " Operating System :: Microsoft" ,
46+ " Operating System :: Microsoft :: MS-DOS" ,
47+ " Operating System :: Microsoft :: Windows" ,
48+ " Operating System :: POSIX" ,
49+ " Operating System :: POSIX :: BSD" ,
50+ " Operating System :: POSIX :: BSD :: FreeBSD" ,
51+ " Operating System :: POSIX :: Linux" ,
52+ " Operating System :: POSIX :: SunOS/Solaris" ,
53+ " Operating System :: Unix" ,
54+ " Programming Language :: Python" ,
55+ " Programming Language :: Python :: 3" ,
56+ " Programming Language :: Python :: 3.7" ,
57+ " Programming Language :: Python :: 3.8" ,
58+ " Programming Language :: Python :: 3.9" ,
59+ " Programming Language :: Python :: 3.10" ,
60+ " Programming Language :: Python :: 3.11" ,
61+ " Programming Language :: Python :: 3.12" ,
62+ " Programming Language :: Python :: 3 :: Only" ,
63+ " Programming Language :: Python :: Implementation" ,
64+ " Programming Language :: Python :: Implementation :: IronPython" ,
65+ " Programming Language :: Python :: Implementation :: PyPy" ,
66+ " Programming Language :: Unix Shell" ,
67+ " Topic :: Desktop Environment" ,
68+ " Topic :: Education :: Computer Aided Instruction (CAI)" ,
69+ " Topic :: Education :: Testing" ,
70+ " Topic :: Office/Business" ,
71+ " Topic :: Other/Nonlisted Topic" ,
72+ " Topic :: Software Development :: Build Tools" ,
73+ " Topic :: Software Development :: Libraries" ,
74+ " Topic :: Software Development :: Libraries :: Python Modules" ,
75+ " Topic :: Software Development :: Pre-processors" ,
76+ " Topic :: Software Development :: User Interfaces" ,
77+ " Topic :: System :: Installation/Setup" ,
78+ " Topic :: System :: Logging" ,
79+ " Topic :: System :: Monitoring" ,
80+ " Topic :: System :: Shells" ,
81+ " Topic :: Terminals" ,
82+ " Topic :: Utilities" ]
83+ dependencies = [
84+ " argopt>=0.3.5" ,
85+ ' importlib_resources; python_version < "3.9"' ,
86+ " tabulate" ,
87+ " tqdm>=4.44.0" ]
88+
89+ [project .optional-dependencies ]
90+ dev = [" pytest>=6" , " pytest-cov" , " pytest-timeout" , " pytest-xdist" ]
91+
92+ [project .scripts ]
93+ git-fame = " gitfame:main"
94+
95+ [tool .flake8 ]
96+ max_line_length = 99
97+ extend_ignore = [" E261" ]
98+ exclude = [" .git" , " __pycache__" , " build" , " dist" , " .eggs" , " .tox" ]
99+
100+ [tool .yapf ]
101+ spaces_before_comment = [15 , 20 ]
102+ arithmetic_precedence_indication = true
103+ allow_split_before_dict_value = false
104+ coalesce_brackets = true
105+ column_limit = 99
106+ each_dict_entry_on_separate_line = false
107+ space_between_ending_comma_and_closing_bracket = false
108+ split_before_named_assigns = false
109+ split_before_closing_bracket = false
110+ blank_line_before_nested_class_or_def = false
111+
112+ [tool .isort ]
113+ line_length = 99
114+ known_first_party = [" argopt" , " tests" ]
115+
116+ [tool .pytest .ini_options ]
117+ timeout = 30
118+ log_level = " INFO"
119+ python_files = [" tests_*.py" ]
120+ testpaths = [" tests" ]
121+ addopts = " -v --tb=short -rxs -W=error --durations=0 --durations-min=0.1"
122+
123+ [tool .coverage .run ]
124+ branch = true
125+ omit = [" argopt/_docopt.py" ]
126+ relative_files = true
127+ [tool .coverage .report ]
128+ show_missing = true
0 commit comments