Skip to content

Commit e59aeb9

Browse files
committed
setup.py package release tweaks.
1 parent ac8bb9d commit e59aeb9

File tree

1 file changed

+37
-14
lines changed

1 file changed

+37
-14
lines changed

setup.py

+37-14
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,35 @@ def find_packages_by_root_package(where):
3434

3535
def make_long_description(marker=None, intro=None):
3636
"""
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.
3940
4041
.. _click: https://click.pocoo.org/
4142
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:
4266
4367
.. code-block:: python
4468
@@ -63,6 +87,11 @@ def make_long_description(marker=None, intro=None):
6387
# ----------------------------------------------------------------------------
6488
# PROJECT CONFIGURATION (for sdist/setup mostly):
6589
# ----------------------------------------------------------------------------
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+
6695
install_requires = ["click >= 6.6", "six >= 1.10"]
6796
before_py35_extra = []
6897
if sys.version < "3.5":
@@ -89,10 +118,6 @@ def make_long_description(marker=None, intro=None):
89118
Programming Language :: Python :: 2.6
90119
Programming Language :: Python :: 2.7
91120
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
96121
Topic :: Utilities
97122
"""
98123

@@ -101,27 +126,25 @@ def make_long_description(marker=None, intro=None):
101126
# -----------------------------------------------------------------------------
102127
setup(
103128
name="click-configfile",
104-
version="0.3.0a0",
129+
version=package_version,
105130
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,
107132
author="Jens Engel",
108133
author_email="[email protected]",
109134
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.",
113136
long_description = long_description,
114137
keywords = "click, configfile, configparser",
115138
platforms = [ 'any' ],
116139
classifiers= CLASSIFIERS.splitlines(),
117140
# packages = find_packages_by_root_package("click_configfile"),
118141
py_modules = ["click_configfile"],
119142
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"],
122145
include_package_data=True,
123146
extras_require={
124-
# -- SUPPORT-WHEELS: Extra packages for Python2.6
147+
# -- SUPPORT-WHEELS: Extra packages for Python2.6 and ...
125148
# SEE: https://bitbucket.org/pypa/wheel/ , CHANGES.txt (v0.24.0)
126149
':python_version=="2.6"': before_py35_extra,
127150
':python_version=="2.7"': before_py35_extra,

0 commit comments

Comments
 (0)