-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop deprecated packaging metadata (#69)
* Drop deprecated packaging metadata Keeping __version__ around since it's still widely used, unfortunately. Fixes #68 * Fix sphinx build error
- Loading branch information
Showing
3 changed files
with
8 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,38 +10,10 @@ def test_version(self): | |
""" | ||
service_identity.__version__ returns the correct version. | ||
""" | ||
with pytest.deprecated_call(): | ||
assert ( | ||
metadata.version("service-identity") | ||
== service_identity.__version__ | ||
) | ||
|
||
def test_description(self): | ||
""" | ||
service_identity.__description__ returns the correct description. | ||
""" | ||
with pytest.deprecated_call(): | ||
assert ( | ||
"Service identity verification for pyOpenSSL & cryptography." | ||
== service_identity.__description__ | ||
) | ||
|
||
@pytest.mark.parametrize("name", ["uri", "url"]) | ||
def test_uri(self, name): | ||
""" | ||
service_identity.__uri__ & __url__ return the correct project URL. | ||
""" | ||
with pytest.deprecated_call(): | ||
assert "https://service-identity.readthedocs.io/" == getattr( | ||
service_identity, f"__{name}__" | ||
) | ||
|
||
def test_email(self): | ||
""" | ||
service_identity.__email__ returns Hynek's email address. | ||
""" | ||
with pytest.deprecated_call(): | ||
assert "[email protected]" == service_identity.__email__ | ||
assert ( | ||
metadata.version("service-identity") | ||
== service_identity.__version__ | ||
) | ||
|
||
def test_does_not_exist(self): | ||
""" | ||
|