]> git.pld-linux.org Git - packages/python3-absl.git/commitdiff
- up to 1.0.0 master auto/th/python3-absl-1.0.0-1
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Apr 2022 08:26:55 +0000 (10:26 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Apr 2022 08:26:55 +0000 (10:26 +0200)
no-version.patch [deleted file]
python-absl.spec [deleted file]
python3-absl.spec [new file with mode: 0644]

diff --git a/no-version.patch b/no-version.patch
deleted file mode 100644 (file)
index f59f2d3..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
---- absl-py-0.9.0/setup.py~    2019-12-17 23:46:45.000000000 +0100
-+++ absl-py-0.9.0/setup.py     2022-04-09 10:21:04.611211528 +0200
-@@ -29,34 +29,10 @@
-   use_setuptools()
-   import setuptools
--py_version = platform.python_version_tuple()
--if py_version < ('2', '7') or py_version[0] == '3' and py_version < ('3', '4'):
--  raise RuntimeError('Python version 2.7 or 3.4+ is required.')
--
- INSTALL_REQUIRES = [
-     'six',
- ]
--setuptools_version = tuple(
--    int(x) for x in setuptools.__version__.split('.')[:2])
--
--# A variety of environments have very, very old versions of setuptools that
--# don't support the environment markers ("foo; python_version < X"). Since
--# we're using sdist, this setup.py gets run directly when installing, so
--# we can just manually do the dependency checking.
--# See these for more info:
--# https://github.com/abseil/abseil-py/issues/79
--# https://hynek.me/articles/conditional-python-dependencies/
--# Environment marker support was added in setuptools 36.2, see
--# https://github.com/pypa/setuptools/blob/master/CHANGES.rst#v3620
--if setuptools_version < (36, 2):
--  if sys.version_info[0:2] < (3, 4):
--    INSTALL_REQUIRES.append('enum34')
--else:
--  # Environment markers are the preferred way: it allows correct non-source
--  # distributions (i.e., wheels) to be generated.
--  INSTALL_REQUIRES.append("enum34; python_version < '3.4'")
--
- _README_PATH = os.path.join(
-     os.path.dirname(os.path.realpath(__file__)), 'README.md')
- with open(_README_PATH, 'rb') as fp:
diff --git a/python-absl.spec b/python-absl.spec
deleted file mode 100644 (file)
index eb135d7..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary:       Abseil Python Common Libraries
-Summary(pl.UTF-8):     Wspólne biblioteki Abseil dla Pythona
-Name:          python-absl
-Version:       0.9.0
-Release:       5
-License:       Apache v2.0
-Group:         Libraries/Python
-#Source0Download: https://pypi.org/simple/absl-py/
-Source0:       https://files.pythonhosted.org/packages/source/a/absl-py/absl-py-%{version}.tar.gz
-Patch0:                no-version.patch
-# Source0-md5: 4ba3484409252ec502b08f8ef8e48ab4
-URL:           https://github.com/abseil/abseil-py
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
-BuildRequires: python3-setuptools
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires:      python-modules >= 1:2.7
-BuildArch:     noarch
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Abseil Python is a collection of Python library code for building
-Python applications. The code is collected from Google's own Python
-code base, and has been extensively tested and used in production.
-
-%description -l pl.UTF-8
-Abseil Python to biblioteka Pythona będąca zbiorem kodu do tworzenia
-aplikacji pythonowych. Kod bibliotek został zebrany z własnego kodu
-Google'a w Pythonie, obszernie przetestowany i jest używany
-produkcyjnie.
-
-%package -n python3-absl
-Summary:       Abseil Python Common Libraries
-Summary(pl.UTF-8):     Wspólne biblioteki Abseil dla Pythona
-Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.4
-
-%description -n python3-absl
-Abseil Python is a collection of Python library code for building
-Python applications. The code is collected from Google's own Python
-code base, and has been extensively tested and used in production.
-
-%description -n python3-absl -l pl.UTF-8
-Abseil Python to biblioteka Pythona będąca zbiorem kodu do tworzenia
-aplikacji pythonowych. Kod bibliotek został zebrany z własnego kodu
-Google'a w Pythonie, obszernie przetestowany i jest używany
-produkcyjnie.
-
-%prep
-%setup -q -n absl-py-%{version}
-%patch0 -p1
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc README.md
-%{py_sitescriptdir}/absl
-%{py_sitescriptdir}/absl_py-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-absl
-%defattr(644,root,root,755)
-%doc README.md
-%{py3_sitescriptdir}/absl
-%{py3_sitescriptdir}/absl_py-%{version}-py*.egg-info
-%endif
diff --git a/python3-absl.spec b/python3-absl.spec
new file mode 100644 (file)
index 0000000..8cc81f7
--- /dev/null
@@ -0,0 +1,49 @@
+Summary:       Abseil Python Common Libraries
+Summary(pl.UTF-8):     Wspólne biblioteki Abseil dla Pythona
+Name:          python3-absl
+Version:       1.0.0
+Release:       1
+License:       Apache v2.0
+Group:         Libraries/Python
+#Source0Download: https://pypi.org/simple/absl-py/
+Source0:       https://files.pythonhosted.org/packages/source/a/absl-py/absl-py-%{version}.tar.gz
+# Source0-md5: 89104cd7c82540a57c3ecb99ba4ab1e6
+URL:           https://github.com/abseil/abseil-py
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires:      python3-modules >= 1:3.6
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Abseil Python is a collection of Python library code for building
+Python applications. The code is collected from Google's own Python
+code base, and has been extensively tested and used in production.
+
+%description -l pl.UTF-8
+Abseil Python to biblioteka Pythona będąca zbiorem kodu do tworzenia
+aplikacji pythonowych. Kod bibliotek został zebrany z własnego kodu
+Google'a w Pythonie, obszernie przetestowany i jest używany
+produkcyjnie.
+
+%prep
+%setup -q -n absl-py-%{version}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{py3_sitescriptdir}/absl
+%{py3_sitescriptdir}/absl_py-%{version}-py*.egg-info
This page took 0.115963 seconds and 4 git commands to generate.