Skip to content

Commit 8ade2bd

Browse files
committedMar 9, 2023
Initial release
0 parents  commit 8ade2bd

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
 

‎.abf.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sources:
2+
pkginfo-1.9.6.tar.gz: 07a3b196685c7c599cf3e366d9c02c5ae71dfb44

‎python-pkginfo.spec

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Summary: Query metadata from sdists / bdists / installed packages
2+
Name: python-pkginfo
3+
Version: 1.9.6
4+
Release: 1
5+
License: MIT
6+
Group: Development/Python
7+
URL: https://pypi.org/project/pkginfo/
8+
Source0: https://files.pythonhosted.org/packages/source/p/pkginfo/pkginfo-%{version}.tar.gz
9+
BuildRequires: pkgconfig(python3)
10+
BuildRequires: python%{pyver}dist(pip)
11+
BuildRequires: python%{pyver}dist(setuptools)
12+
BuildRequires: python%{pyver}dist(wheel)
13+
BuildRequires: python%{pyver}dist(sphinx)
14+
BuildArch: noarch
15+
16+
%description
17+
This package provides an API for querying the distutils metadata written
18+
in the PKG-INFO file inside a source distribution (an sdist) or a binary
19+
distribution (e.g., created by running bdist_egg). It can also query the
20+
EGG-INFO directory of an installed distribution, and the *.egg-info stored
21+
in a “development checkout” (e.g, created by running setup.py develop).
22+
23+
%files
24+
%license LICENSE.txt
25+
%doc README.txt CHANGES.txt html
26+
%{_bindir}/pkginfo
27+
%{py_sitedir}/pkginfo
28+
%{py_sitedir}/pkginfo-*.*-info
29+
30+
#--------------------------------------------------------------------
31+
32+
%prep
33+
%autosetup -p1 -n pkginfo-%{version}
34+
35+
# remove test subpackage
36+
sed -i "s/, 'pkginfo.tests'//g" setup.py
37+
38+
%build
39+
%py_build
40+
41+
# docs
42+
PYTHONPATH=${PWD} sphinx-build docs html
43+
rm -rf html/.{doctrees,buildinfo}
44+
45+
%install
46+
%py_install
47+

0 commit comments

Comments
 (0)