Skip to content

Commit 91daa22

Browse files
committed
refactor: rename project, add pyproject.toml
1 parent ecd771e commit 91daa22

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

README.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Package Dependency Information
33
==============================
44

5-
.. image:: https://img.shields.io/pypi/v/dependency-info.svg
6-
:target: https://pypi.org/project/dependency-info/
5+
.. image:: https://img.shields.io/pypi/v/depinfo.svg
6+
:target: https://pypi.org/project/depinfo/
77
:alt: PyPI
88

99
.. image:: https://travis-ci.org/Midnighter/dependency-info.svg?branch=master
@@ -25,7 +25,7 @@ It's as simple as:
2525

2626
.. code-block:: console
2727
28-
pip install dependency-info
28+
pip install depinfo
2929
3030
Usage
3131
=====
@@ -47,7 +47,7 @@ Example
4747
.. code-block:: python
4848
4949
from depinfo import print_dependencies
50-
print_dependencies("dependency-info")
50+
print_dependencies("depinfo")
5151
5252
.. code-block:: console
5353

pyproject.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=30.3.0",
4+
"wheel"
5+
]

setup.cfg

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[metadata]
2-
name = dependency-info
2+
name = depinfo
33
url = https://github.com/Midnighter/dependency-info
44
author = Moritz E. Beber
55
author_email = [email protected]
@@ -58,7 +58,10 @@ line_length = 80
5858
indent = 4
5959
multi_line_output = 4
6060
lines_after_imports = 2
61+
known_first_party =
62+
depinfo
6163
known_third_party =
64+
pkg_resources
6265
pipdeptree
6366
pytest
6467

src/depinfo/info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ def print_dependencies(package_name):
7474

7575
def show_versions():
7676
"""Print dependency information for this package."""
77-
print_dependencies("dependency-info")
77+
print_dependencies("depinfo")

tests/test_info.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_get_sys_info():
3535

3636
def test_get_pkg_info():
3737
"""Expect minimal package dependencies."""
38-
blob = depi.get_pkg_info("dependency-info")
38+
blob = depi.get_pkg_info("depinfo")
3939
assert "pip" in blob
4040
assert "setuptools" in blob
4141
assert "wheel" in blob
@@ -55,7 +55,7 @@ def test_print_info(capsys, blob, output):
5555

5656
def test_print_dependencies(capsys):
5757
"""Expect all printed information in order."""
58-
depi.print_dependencies("dependency-info")
58+
depi.print_dependencies("depinfo")
5959
captured = capsys.readouterr()
6060
lines = captured.out.split("\n")
6161
assert lines[1].startswith("System Information")

0 commit comments

Comments
 (0)