Skip to content

Commit 99c5628

Browse files
committed
Rename pip-missing-reqs to pip-check-reqs
It would be useful for this module to check for requirements that are in requirements.txt but never imported. As such we will provide two tools: pip-missing-reqs and pip-extra-reqs. Rename the package to pip-check-reqs to work towards this.
1 parent 02234bf commit 99c5628

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
recursive-include pip_missing_reqs
1+
recursive-include pip_check_reqs
22
include *.rst
33
include LICENSE
44
include setup.*

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pip-missing-reqs
2-
================
1+
pip-check-reqs
2+
==============
33

44
It happens: you start using a module in your project and it works and you
55
don't realise that it's only being included in your `virtualenv`_ because
File renamed without changes.

pip_missing_reqs/find_missing_reqs.py renamed to pip_check_reqs/find_missing_reqs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def f(candidate, ignore_cfg=ignore_cfg):
196196

197197

198198
def main():
199-
from pip_missing_reqs import __version__
199+
from pip_check_reqs import __version__
200200

201201
usage = 'usage: %prog [options] files or directories'
202202
parser = optparse.OptionParser(usage)
@@ -235,7 +235,7 @@ def main():
235235
else:
236236
log.setLevel(logging.WARN)
237237

238-
log.info('using pip_missing_reqs-%s from %s', __version__, __file__)
238+
log.info('using pip_check_reqs-%s from %s', __version__, __file__)
239239

240240
missing = find_missing_reqs(options)
241241

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
with open(path.join(here, 'CHANGELOG.rst'), encoding='utf-8') as f:
1111
long_description += f.read()
1212

13-
from pip_missing_reqs import __version__
13+
from pip_check_reqs import __version__
1414

1515
setup(
16-
name='pip_missing_reqs',
16+
name='pip_check_reqs',
1717
version=__version__,
1818
description='Find packages that should be in requirements for a project',
1919
long_description=long_description,
@@ -29,10 +29,10 @@
2929
'Programming Language :: Python :: 2.7',
3030
'Programming Language :: Python :: 3',
3131
],
32-
packages=['pip_missing_reqs'],
32+
packages=['pip_check_reqs'],
3333
entry_points={
3434
'console_scripts': [
35-
'pip-missing-reqs=pip_missing_reqs.find_missing_reqs:main',
35+
'pip-missing-reqs=pip_check_reqs.find_missing_reqs:main',
3636
],
3737
},
3838
)

tox.ini

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ deps =
66
-r{toxinidir}/requirements.txt
77
-r{toxinidir}/test-requirements.txt
88
commands =
9-
coverage run --source pip_missing_reqs/find_missing_reqs.py \
9+
coverage run --source pip_check_reqs/find_missing_reqs.py \
1010
-m pytest --strict []
1111
coverage report -m --fail-under 100
1212

@@ -19,11 +19,10 @@ norecursedirs = .git .tox *.egg build
1919

2020
[testenv:pep8]
2121
deps = flake8
22-
commands = flake8 pip_missing_reqs
22+
commands = flake8 pip_check_reqs
2323

2424
[testenv:pip-missing-reqs]
2525
# Overwrite deps so not to dirty the environment
2626
deps = -r{toxinidir}/requirements.txt
27-
commands = python -m pip_missing_reqs.find_missing_reqs \
28-
--ignore-file=pip_missing_reqs/test* pip_missing_reqs
29-
27+
commands = python -m pip_check_reqs.find_missing_reqs \
28+
--ignore-file=pip_check_reqs/test* pip-check-reqs

0 commit comments

Comments
 (0)