Skip to content

Commit

Permalink
refactor: rename project, add pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Midnighter committed May 11, 2018
1 parent ecd771e commit 91daa22
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Package Dependency Information
==============================

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

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

.. code-block:: console
pip install dependency-info
pip install depinfo
Usage
=====
Expand All @@ -47,7 +47,7 @@ Example
.. code-block:: python
from depinfo import print_dependencies
print_dependencies("dependency-info")
print_dependencies("depinfo")
.. code-block:: console
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build-system]
requires = [
"setuptools>=30.3.0",
"wheel"
]
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
name = dependency-info
name = depinfo
url = https://github.com/Midnighter/dependency-info
author = Moritz E. Beber
author_email = [email protected]
Expand Down Expand Up @@ -58,7 +58,10 @@ line_length = 80
indent = 4
multi_line_output = 4
lines_after_imports = 2
known_first_party =
depinfo
known_third_party =
pkg_resources
pipdeptree
pytest
Expand Down
2 changes: 1 addition & 1 deletion src/depinfo/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ def print_dependencies(package_name):

def show_versions():
"""Print dependency information for this package."""
print_dependencies("dependency-info")
print_dependencies("depinfo")
4 changes: 2 additions & 2 deletions tests/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_get_sys_info():

def test_get_pkg_info():
"""Expect minimal package dependencies."""
blob = depi.get_pkg_info("dependency-info")
blob = depi.get_pkg_info("depinfo")
assert "pip" in blob
assert "setuptools" in blob
assert "wheel" in blob
Expand All @@ -55,7 +55,7 @@ def test_print_info(capsys, blob, output):

def test_print_dependencies(capsys):
"""Expect all printed information in order."""
depi.print_dependencies("dependency-info")
depi.print_dependencies("depinfo")
captured = capsys.readouterr()
lines = captured.out.split("\n")
assert lines[1].startswith("System Information")
Expand Down

0 comments on commit 91daa22

Please sign in to comment.