@@ -34,11 +34,35 @@ def find_packages_by_root_package(where):
34
34
35
35
def make_long_description (marker = None , intro = None ):
36
36
"""
37
- This package extends the click_ functionality by adding support for commands
38
- that use configuration files.
37
+ click_ is a framework to simplify writing composable commands for
38
+ command-line tools. This package extends the click_ functionality
39
+ by adding support for commands that use configuration files.
39
40
40
41
.. _click: https://click.pocoo.org/
41
42
43
+ EXAMPLE:
44
+
45
+ A configuration file, like:
46
+
47
+ .. code-block:: INI
48
+
49
+ # -- FILE: foo.ini
50
+ [foo]
51
+ flag = yes
52
+ name = Alice and Bob
53
+ numbers = 1 4 9 16 25
54
+ filenames = foo/xxx.txt
55
+ bar/baz/zzz.txt
56
+
57
+ [person.alice]
58
+ name = Alice
59
+ birthyear = 1995
60
+
61
+ [person.bob]
62
+ name = Bob
63
+ birthyear = 2001
64
+
65
+ can be processed with:
42
66
43
67
.. code-block:: python
44
68
@@ -63,6 +87,11 @@ def make_long_description(marker=None, intro=None):
63
87
# ----------------------------------------------------------------------------
64
88
# PROJECT CONFIGURATION (for sdist/setup mostly):
65
89
# ----------------------------------------------------------------------------
90
+ package_version = "0.2.0"
91
+ description = """\
92
+ This package extends the `click <https://click.pocoo.org/>`_ functionality
93
+ by adding support for commands that use configuration files."""
94
+
66
95
install_requires = ["click >= 6.6" , "six >= 1.10" ]
67
96
before_py35_extra = []
68
97
if sys .version < "3.5" :
@@ -89,10 +118,6 @@ def make_long_description(marker=None, intro=None):
89
118
Programming Language :: Python :: 2.6
90
119
Programming Language :: Python :: 2.7
91
120
Programming Language :: Python :: 3
92
- Programming Language :: Python :: 3.3
93
- Programming Language :: Python :: 3.4
94
- Programming Language :: Python :: 3.5
95
- Programming Language :: Python :: 3.6
96
121
Topic :: Utilities
97
122
"""
98
123
@@ -101,27 +126,25 @@ def make_long_description(marker=None, intro=None):
101
126
# -----------------------------------------------------------------------------
102
127
setup (
103
128
name = "click-configfile" ,
104
- version = "0.3.0a0" ,
129
+ version = package_version ,
105
130
url = "https://github.com/jenisys/click-configfile" ,
106
- download_url = "https://pypi.python.org/pypi/click-configfile/" ,
131
+ download_url = "https://pypi.python.org/pypi/click-configfile/%s" % package_version ,
107
132
author = "Jens Engel" ,
108
133
109
134
license = "BSD" ,
110
- description = """\
111
- This package extends the 'click' functionality by adding support for commands
112
- that use configuration files.""" ,
135
+ description = "This package supports click commands that use configuration files." ,
113
136
long_description = long_description ,
114
137
keywords = "click, configfile, configparser" ,
115
138
platforms = [ 'any' ],
116
139
classifiers = CLASSIFIERS .splitlines (),
117
140
# packages = find_packages_by_root_package("click_configfile"),
118
141
py_modules = ["click_configfile" ],
119
142
install_requires = install_requires ,
120
- setup_requires = ["pytest-runner" ],
121
- tests_require = ["pytest >= 3.0" ],
143
+ # BAD: setup_requires=["pytest-runner"],
144
+ tests_require = ["pytest >= 3.0" , "pytest-runner" ],
122
145
include_package_data = True ,
123
146
extras_require = {
124
- # -- SUPPORT-WHEELS: Extra packages for Python2.6
147
+ # -- SUPPORT-WHEELS: Extra packages for Python2.6 and ...
125
148
# SEE: https://bitbucket.org/pypa/wheel/ , CHANGES.txt (v0.24.0)
126
149
':python_version=="2.6"' : before_py35_extra ,
127
150
':python_version=="2.7"' : before_py35_extra ,
0 commit comments