Skip to content

Commit 4fba917

Browse files
authored
Merge pull request #20 from click-contrib/click7
Click 7 changes how command names are generated.
2 parents bb55d96 + 07108e1 commit 4fba917

File tree

5 files changed

+64
-13
lines changed

5 files changed

+64
-13
lines changed

.gitignore

Lines changed: 57 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
# Byte-compiled / optimized / DLL files
22
__pycache__/
33
*.py[cod]
4+
*$py.class
45

56
# C extensions
67
*.so
78

89
# Distribution / packaging
910
.Python
10-
env/
11-
venv/
12-
venv2/
13-
venv3/
1411
build/
1512
develop-eggs/
1613
dist/
1714
downloads/
1815
eggs/
16+
.eggs/
1917
lib/
2018
lib64/
2119
parts/
2220
sdist/
2321
var/
22+
wheels/
2423
*.egg-info/
2524
.installed.cfg
2625
*.egg
26+
MANIFEST
2727

2828
# PyInstaller
2929
# Usually these files are written by a python script from a template
@@ -38,23 +38,74 @@ pip-delete-this-directory.txt
3838
# Unit test / coverage reports
3939
htmlcov/
4040
.tox/
41+
.nox/
4142
.coverage
43+
.coverage.*
4244
.cache
4345
nosetests.xml
4446
coverage.xml
47+
*.cover
48+
.hypothesis/
49+
.pytest_cache/
4550

4651
# Translations
4752
*.mo
4853
*.pot
4954

5055
# Django stuff:
5156
*.log
57+
local_settings.py
58+
db.sqlite3
59+
60+
# Flask stuff:
61+
instance/
62+
.webassets-cache
63+
64+
# Scrapy stuff:
65+
.scrapy
5266

5367
# Sphinx documentation
5468
docs/_build/
5569

5670
# PyBuilder
5771
target/
5872

59-
# Intellij PyCharm
60-
.idea/
73+
# Jupyter Notebook
74+
.ipynb_checkpoints
75+
76+
# IPython
77+
profile_default/
78+
ipython_config.py
79+
80+
# pyenv
81+
.python-version
82+
83+
# celery beat schedule file
84+
celerybeat-schedule
85+
86+
# SageMath parsed files
87+
*.sage.py
88+
89+
# Environments
90+
.env
91+
.venv
92+
env/
93+
venv/
94+
ENV/
95+
env.bak/
96+
venv.bak/
97+
98+
# Spyder project settings
99+
.spyderproject
100+
.spyproject
101+
102+
# Rope project settings
103+
.ropeproject
104+
105+
# mkdocs documentation
106+
/site
107+
108+
# mypy
109+
.mypy_cache/
110+
.dmypy.json
111+
dmypy.json

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ cache:
77

88
python:
99
- 2.7
10-
- 3.3
1110
- 3.4
1211
- 3.5
12+
- 3.6
1313
- pypy
1414
- pypy3
1515

@@ -18,7 +18,7 @@ install:
1818
- pip install -e .\[dev\]
1919

2020
script:
21-
- py.test tests --cov click_plugins --cov-report term-missing
21+
- pytest tests --cov click_plugins --cov-report term-missing
2222

2323
after_success:
2424
- coveralls

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Developing
165165
$ git clone https://github.com/click-contrib/click-plugins.git
166166
$ cd click-plugins
167167
$ pip install -e .\[dev\]
168-
$ py.test tests --cov click_plugins --cov-report term-missing
168+
$ pytest tests --cov click_plugins --cov-report term-missing
169169
170170
171171
Changelog

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"via setuptools entry-points.",
5252
extras_require={
5353
'dev': [
54-
'pytest',
54+
'pytest>=3',
5555
'pytest-cov',
5656
'wheel',
5757
'coveralls'

tests/test_plugins.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,18 @@ def sub_cli():
115115

116116
# Same as above but the sub-group has plugins
117117
@with_plugins(plugins=iter_entry_points('_test_click_plugins.test_plugins'))
118-
@good_cli.group()
118+
@good_cli.group(name='sub-cli-plugins')
119119
def sub_cli_plugins():
120120
"""Sub CLI with plugins."""
121121
pass
122122

123-
result = runner.invoke(good_cli, ['sub_cli_plugins'])
123+
result = runner.invoke(good_cli, ['sub-cli-plugins'])
124124
assert result.exit_code is 0
125125
for ep in iter_entry_points('_test_click_plugins.test_plugins'):
126126
assert ep.name in result.output
127127

128128
# Execute one of the sub-group's commands
129-
result = runner.invoke(good_cli, ['sub_cli_plugins', 'cmd1', 'something'])
129+
result = runner.invoke(good_cli, ['sub-cli-plugins', 'cmd1', 'something'])
130130
assert result.exit_code is 0
131131
assert result.output.strip() == 'passed'
132132

0 commit comments

Comments
 (0)