Skip to content

Commit

Permalink
alvistack/1.5.0
Browse files Browse the repository at this point in the history
    git clean -xdf
    tar zcvf ../python-shellingham_1.5.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-shellingham.spec ../python-shellingham_1.5.0-1.spec
    mv ../python*-shellingham*1.5.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/sarugaku-shellingham-1.5.0/
    rm -rf ../python*-shellingham*1.5.0*.*

See sarugaku#62

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
  • Loading branch information
hswong3i committed Aug 4, 2022
1 parent ace4525 commit 3abbf64
Show file tree
Hide file tree
Showing 13 changed files with 161 additions and 52 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -15,3 +15,5 @@ dist
# Testing
.tox
.pytest_cache

.pybuild/
6 changes: 6 additions & 0 deletions debian/.gitignore
@@ -0,0 +1,6 @@
*.substvars
*debhelper*
.debhelper
files
python3-shellingham
tmp
5 changes: 5 additions & 0 deletions debian/changelog
@@ -0,0 +1,5 @@
python-shellingham (100:1.5.0-1) UNRELEASED; urgency=medium

* https://github.com/sarugaku/shellingham/releases/tag/1.5.0

-- Wong Hoi Sing Edison <hswong3i@gmail.com> Thu, 04 Aug 2022 11:00:09 +0800
26 changes: 26 additions & 0 deletions debian/control
@@ -0,0 +1,26 @@
Source: python-shellingham
Section: python
Priority: optional
Standards-Version: 4.5.0
Maintainer: Wong Hoi Sing Edison <hswong3i@gmail.com>
Homepage: https://github.com/sarugaku/shellingham/tags
Vcs-Browser: https://github.com/alvistack/sarugaku-shellingham
Vcs-Git: https://github.com/alvistack/sarugaku-shellingham.git
Build-Depends:
debhelper,
debhelper-compat (= 10),
dh-python,
fdupes,
python3-dev,
python3-setuptools,

Package: python3-shellingham
Architecture: all
Description: Tool to detect surrounding Shell
Shellingham detects what shell the current Python executable is running
in.
Depends:
${misc:Depends},
${shlibs:Depends},
${python3:Depends},
python3,
Empty file added debian/copyright
Empty file.
1 change: 1 addition & 0 deletions debian/python3-shellingham.install
@@ -0,0 +1 @@
usr/lib/python*/*-packages/*
4 changes: 4 additions & 0 deletions debian/python3-shellingham.lintian-overrides
@@ -0,0 +1,4 @@
python3-shellingham: copyright-without-copyright-notice
python3-shellingham: initial-upload-closes-no-bugs
python3-shellingham: no-manual-page
python3-shellingham: zero-byte-file-in-doc-directory
15 changes: 15 additions & 0 deletions debian/rules
@@ -0,0 +1,15 @@
#!/usr/bin/make -f

SHELL := /bin/bash

override_dh_auto_install:
dh_auto_install --destdir=debian/tmp
find debian/tmp/usr/lib/python*/*-packages -type f -name '*.pyc' -exec rm -rf {} \;
fdupes -qnrps debian/tmp/usr/lib/python*/*-packages

override_dh_auto_test:

override_dh_auto_clean:

%:
dh $@ --buildsystem=pybuild --with python3
1 change: 1 addition & 0 deletions debian/source/format
@@ -0,0 +1 @@
3.0 (quilt)
3 changes: 3 additions & 0 deletions debian/source/lintian-overrides
@@ -0,0 +1,3 @@
python-shellingham source: no-debian-changes
python-shellingham source: source-contains-prebuilt-windows-binary
python-shellingham source: source-package-encodes-python-version
34 changes: 0 additions & 34 deletions pyproject.toml

This file was deleted.

75 changes: 75 additions & 0 deletions python-shellingham.spec
@@ -0,0 +1,75 @@
%global debug_package %{nil}

Name: python-shellingham
Epoch: 100
Version: 1.5.0
Release: 1%{?dist}
BuildArch: noarch
Summary: Tool to detect surrounding Shell
License: ISC
URL: https://github.com/sarugaku/shellingham/tags
Source0: %{name}_%{version}.orig.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3-setuptools

%description
Shellingham detects what shell the current Python executable is running
in.

%prep
%autosetup -T -c -n %{name}_%{version}-%{release}
tar -zx -f %{S:0} --strip-components=1 -C .

%build
%py3_build

%install
%py3_install
find %{buildroot}%{python3_sitelib} -type f -name '*.pyc' -exec rm -rf {} \;
fdupes -qnrps %{buildroot}%{python3_sitelib}

%check

%if 0%{?suse_version} > 1500
%package -n python%{python3_version_nodots}-shellingham
Summary: Tool to detect surrounding Shell
Requires: python3
Provides: python3-shellingham = %{epoch}:%{version}-%{release}
Provides: python3dist(shellingham) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-shellingham = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(shellingham) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-shellingham = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(shellingham) = %{epoch}:%{version}-%{release}

%description -n python%{python3_version_nodots}-shellingham
Shellingham detects what shell the current Python executable is running
in.

%files -n python%{python3_version_nodots}-shellingham
%license LICENSE
%{python3_sitelib}/*
%endif

%if !(0%{?suse_version} > 1500)
%package -n python3-shellingham
Summary: Tool to detect surrounding Shell
Requires: python3
Provides: python3-shellingham = %{epoch}:%{version}-%{release}
Provides: python3dist(shellingham) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-shellingham = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(shellingham) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-shellingham = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(shellingham) = %{epoch}:%{version}-%{release}

%description -n python3-shellingham
Shellingham detects what shell the current Python executable is running
in.

%files -n python3-shellingham
%license LICENSE
%{python3_sitelib}/*
%endif

%changelog
41 changes: 23 additions & 18 deletions setup.cfg
Expand Up @@ -8,31 +8,36 @@ author_email = uranusjr@gmail.com
long_description = file: README.rst
long_description_content_type = text/x-rst
license = ISC License
keywords =
shell
classifier =
Development Status :: 3 - Alpha
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: ISC License (ISCL)
Operating System :: OS Independent
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Software Development :: Libraries :: Python Modules
keywords =
shell
classifier =
Development Status :: 3 - Alpha
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: ISC License (ISCL)
Operating System :: OS Independent
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Software Development :: Libraries :: Python Modules

[options]
package_dir =
= src
package_dir =
= src
packages = find:
python_requires = >=3.4
install_requires =
python_requires = >=3.7
install_requires =
zip_safe = true

[options.packages.find]
where = src

[bdist_wheel]
universal = 1

[egg_info]
tag_build =
tag_date = 0

0 comments on commit 3abbf64

Please sign in to comment.