Skip to content

Commit

Permalink
Prefer importlib_metadata to implicit dependency on setuptools.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed May 1, 2021
1 parent e836fdf commit aa01216
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v5.1.0
======

Rely on importlib_metadata for package metadata.

v5.0.1
======

Expand Down
4 changes: 2 additions & 2 deletions lpaste/lpaste.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
import functools
import http.client

import pkg_resources
import importlib_metadata as md
import webbrowser
import requests
import keyring

from .source import CodeSource, FileSource
from . import clipboard

version = pkg_resources.require('lpaste')[0].version
version = md.version('lpaste')
session = requests.Session()
log = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ install_requires =
keyring>=0.6
jaraco.context
jaraco.clipboard
importlib_metadata
setup_requires = setuptools_scm[toml] >= 3.4.1

[options.packages.find]
Expand Down

0 comments on commit aa01216

Please sign in to comment.