Skip to content

Commit

Permalink
alvistack/20.24.6
Browse files Browse the repository at this point in the history
    git clean -xdf
    tar zcvf ../python-virtualenv_20.24.6.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-virtualenv.spec ../python-virtualenv_20.24.6-1.spec
    cp ../python*-virtualenv*20.24.6*.{gz,xz,spec,dsc} /osc/home\:alvistack/pypa-virtualenv-20.24.6/
    rm -rf ../*virtualenv*20.24.6*.*

See pypa#2664

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
  • Loading branch information
hswong3i committed Feb 23, 2024
1 parent 29c08df commit 81debfc
Show file tree
Hide file tree
Showing 14 changed files with 330 additions and 163 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ dist

/docs/_draft.rst
/pip-wheel-metadata
/src/virtualenv/version.py
/src/virtualenv/out
.python-version

*wheel-store*

Dockerfile*
.dockerignore

.pybuild/
7 changes: 7 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.substvars
*debhelper*
.debhelper
files
tmp
python3-virtualenv
virtualenv
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python-virtualenv (100:20.24.6-1) UNRELEASED; urgency=medium

* https://github.com/pypa/virtualenv/releases/tag/20.24.6

-- Wong Hoi Sing Edison <hswong3i@pantarei-design.com> Tue, 06 Feb 2024 13:26:48 +0800
38 changes: 38 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Source: python-virtualenv
Section: python
Priority: optional
Standards-Version: 4.5.0
Maintainer: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
Homepage: https://github.com/pypa/virtualenv/tags
Vcs-Browser: https://github.com/alvistack/pypa-virtualenv
Vcs-Git: https://github.com/alvistack/pypa-virtualenv.git
Build-Depends:
debhelper,
debhelper-compat (= 10),
dh-python,
fdupes,
python3-dev,
python3-setuptools (>= 59.6),

Package: python3-virtualenv
Architecture: all
Description: Tool to create isolated Python environments
virtualenv is a tool to create isolated Python environments. virtualenv
is a successor to workingenv, and an extension of virtual-python. It is
written by Ian Bicking, and sponsored by the Open Planning Project.
Depends:
${misc:Depends},
${shlibs:Depends},
${python3:Depends},
python3,
python3-distlib (>= 0.3.7),
python3-filelock (>= 3.12.2),
python3-importlib-metadata (>= 6.6),
python3-platformdirs (>= 3.9.1),

Package: virtualenv
Architecture: all
Depends: python3-virtualenv
Section: oldlibs
Description: Python virtual environment creator (Dependency package)
This is a dependency package and may be safely removed.
21 changes: 21 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: debian/*
Copyright: 2024 Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
License: Apache-2.0

License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
The complete text of the Apache version 2.0 license
can be found in "/usr/share/common-licenses/Apache-2.0".
2 changes: 2 additions & 0 deletions debian/python3-virtualenv.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/bin/*
usr/lib/python*/*-packages/*
4 changes: 4 additions & 0 deletions debian/python3-virtualenv.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python3-virtualenv: copyright-without-copyright-notice
python3-virtualenv: initial-upload-closes-no-bugs
python3-virtualenv: no-manual-page
python3-virtualenv: zero-byte-file-in-doc-directory
15 changes: 15 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
4 changes: 4 additions & 0 deletions debian/source/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python-virtualenv source: file-without-copyright-information
python-virtualenv source: no-debian-changes
python-virtualenv source: source-contains-prebuilt-windows-binary
python-virtualenv source: source-package-encodes-python-version
162 changes: 0 additions & 162 deletions pyproject.toml

This file was deleted.

104 changes: 104 additions & 0 deletions python-virtualenv.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Copyright 2024 Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

%global debug_package %{nil}

%global source_date_epoch_from_changelog 0

Name: python-virtualenv
Epoch: 100
Version: 20.24.6
Release: 1%{?dist}
BuildArch: noarch
Summary: Tool to create isolated Python environments
License: MIT
URL: https://github.com/pypa/virtualenv/tags
Source0: %{name}_%{version}.orig.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3-setuptools >= 59.6

%description
virtualenv is a tool to create isolated Python environments. virtualenv
is a successor to workingenv, and an extension of virtual-python. It is
written by Ian Bicking, and sponsored by the Open Planning Project.

%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 || 0%{?rhel} == 7
%package -n python%{python3_version_nodots}-virtualenv
Summary: Tool to create isolated Python environments
Requires: python3
Requires: python3-distlib >= 0.3.7
Requires: python3-filelock >= 3.12.2
Requires: python3-importlib-metadata >= 6.6
Requires: python3-platformdirs >= 3.9.1
Provides: python3-virtualenv = %{epoch}:%{version}-%{release}
Provides: python3dist(virtualenv) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-virtualenv = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(virtualenv) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-virtualenv = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(virtualenv) = %{epoch}:%{version}-%{release}

%description -n python%{python3_version_nodots}-virtualenv
virtualenv is a tool to create isolated Python environments. virtualenv
is a successor to workingenv, and an extension of virtual-python. It is
written by Ian Bicking, and sponsored by the Open Planning Project.

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

%if !(0%{?suse_version} > 1500) && !(0%{?rhel} == 7)
%package -n python3-virtualenv
Summary: Tool to create isolated Python environments
Requires: python3
Requires: python3-distlib >= 0.3.7
Requires: python3-filelock >= 3.12.2
Requires: python3-importlib-metadata >= 6.6
Requires: python3-platformdirs >= 3.9.1
Provides: python3-virtualenv = %{epoch}:%{version}-%{release}
Provides: python3dist(virtualenv) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-virtualenv = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(virtualenv) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-virtualenv = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(virtualenv) = %{epoch}:%{version}-%{release}

%description -n python3-virtualenv
virtualenv is a tool to create isolated Python environments. virtualenv
is a successor to workingenv, and an extension of virtual-python. It is
written by Ian Bicking, and sponsored by the Open Planning Project.

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

%changelog
Loading

0 comments on commit 81debfc

Please sign in to comment.