Skip to content

Commit

Permalink
Replaced pep517 with build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 6, 2023
1 parent 6ea2ff7 commit 8ea96c0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion jaraco/develop/create-github-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
@autocommand.autocommand(__name__)
def run(project: github.Repo = github.Repo.detect()):
md = repo.get_project_metadata()
tag = 'v' + md.version
tag = f'v{md.version}'
project.create_release(tag)
5 changes: 2 additions & 3 deletions jaraco/develop/print-meta.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import autocommand
from pep517 import meta
from build.util import project_wheel_metadata


@autocommand.autocommand(__name__)
def main(path='.', field='Requires-Dist'):
md = meta.load(path).metadata
for spec in md.get_all(field):
for spec in project_wheel_metadata(path).get_all(field):
print(spec)
8 changes: 4 additions & 4 deletions jaraco/develop/repo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import urllib.parse

import pep517.meta
from build.util import project_wheel_metadata as load_metadata
from jaraco.collections import ItemsAsAttributes


Expand All @@ -9,8 +9,8 @@ class Bunch(dict, ItemsAsAttributes):


def get_project_metadata():
dist = pep517.meta.load('.')
url = dist.metadata['Home-page']
version = dist.version
_md = load_metadata('.')
url = _md['Home-page']
version = _md['Version']
project = urllib.parse.urlparse(url).path.strip('/')
return Bunch(locals())
1 change: 1 addition & 0 deletions newsfragments/+d66bf8c2.removal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replace ``pep517`` with ``build``. ``repo.get_project_metadata`` no longer includes the ``dist``.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ install_requires =
requests-toolbelt
PyNaCl
packaging
pep517
setuptools
path
jaraco.vcs >= 1.1
build

[options.packages.find]
exclude =
Expand Down

0 comments on commit 8ea96c0

Please sign in to comment.