summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 05:01:10 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 05:01:10 +0000
commit5fce5f29e8a7e163662d0179990cd6202cabef0d (patch)
treeaf143285bd4706623c34f10d63c2dffa0e7a558e
parenta2ff8e0d5d88bbbf964140d5c6cfa901c51115e0 (diff)
automatic import of python-iab-tcfopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-iab-tcf.spec277
-rw-r--r--sources1
3 files changed, 279 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f292a3f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/iab-tcf-0.2.2.tar.gz
diff --git a/python-iab-tcf.spec b/python-iab-tcf.spec
new file mode 100644
index 0000000..5bb7e72
--- /dev/null
+++ b/python-iab-tcf.spec
@@ -0,0 +1,277 @@
+%global _empty_manifest_terminate_build 0
+Name: python-iab-tcf
+Version: 0.2.2
+Release: 1
+Summary: A Python implementation of the IAB consent strings (v1.1 and v2)
+License: MIT License
+URL: https://github.com/gguridi/iab-tcf
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/56/e2/4f55d67b5a42318f959ebacb629fb0701ab5aecb11d7510fd9b26e967a9d/iab-tcf-0.2.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-bitarray-hardbyte
+
+%description
+# iab-tcf
+
+[![Build Status](https://travis-ci.org/gguridi/iab-tcf.svg?branch=master)](https://travis-ci.org/gguridi/iab-tcf)
+[![codecov](https://codecov.io/gh/gguridi/iab-tcf/branch/master/graph/badge.svg)](https://codecov.io/gh/gguridi/iab-tcf)
+[![Codacy Badge](https://app.codacy.com/project/badge/Grade/6e6a8a02a6b14c5998b29bbe06327c87)](https://www.codacy.com/gh/gguridi/iab-tcf/dashboard)
+![Releasing](https://github.com/gguridi/iab-tcf/workflows/Releasing/badge.svg)
+[![Documentation Status](https://readthedocs.org/projects/iab-tcf/badge/?version=latest)](https://iab-tcf.readthedocs.io/en/latest/?badge=latest)
+
+A Python implementation of the IAB consent strings (v1.1 and v2)
+
+## Installing
+
+Install and update using pip:
+
+```bash
+pip install -U iab-tcf
+```
+
+## Documentation
+
+[Documentation](https://iab-tcf.readthedocs.io/en/stable/) of this package can be
+found at [readthedocs.io](https://iab-tcf.readthedocs.io/en/stable/).
+
+To generate the documentation locally:
+
+```bash
+pip install sphinx sphinx_rtd_theme
+cd docs/
+sphinx-apidoc -f -o . ../iab_tcf/
+make html
+```
+
+## A Simple Example
+
+In order to decode a v1.1 or v2 consent string automatically we can do:
+
+```python
+from iab_tcf import decode
+
+consent = decode("CO5VTlWO5VTlWH1AAAENAwCwAIAAAAAAAIAAAAoAAAAA.YAAAAAAAAAA")
+
+print(consent.version) # prints 2
+```
+
+If we want to improve performance and we already know it's going to
+be a v2 consent string we can do:
+
+```python
+from iab_tcf import decode_v2
+
+consent = decode_v2("CO5VTlWO5VTlWH1AAAENAwCwAIAAAAAAAIAAAAoAAAAA.YAAAAAAAAAA")
+
+print(consent.version) # prints 2
+```
+
+## Tests
+
+In order to run the tests locally we can do:
+
+```bash
+pip install -r requirements-test.txt
+pytest -v .
+```
+
+## Thanks
+
+Many thanks to [LiveRamp/iabconsent](https://github.com/LiveRamp/iabconsent)
+which greatly inspired this project, and forms the basis and internal logic.
+
+
+%package -n python3-iab-tcf
+Summary: A Python implementation of the IAB consent strings (v1.1 and v2)
+Provides: python-iab-tcf
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-iab-tcf
+# iab-tcf
+
+[![Build Status](https://travis-ci.org/gguridi/iab-tcf.svg?branch=master)](https://travis-ci.org/gguridi/iab-tcf)
+[![codecov](https://codecov.io/gh/gguridi/iab-tcf/branch/master/graph/badge.svg)](https://codecov.io/gh/gguridi/iab-tcf)
+[![Codacy Badge](https://app.codacy.com/project/badge/Grade/6e6a8a02a6b14c5998b29bbe06327c87)](https://www.codacy.com/gh/gguridi/iab-tcf/dashboard)
+![Releasing](https://github.com/gguridi/iab-tcf/workflows/Releasing/badge.svg)
+[![Documentation Status](https://readthedocs.org/projects/iab-tcf/badge/?version=latest)](https://iab-tcf.readthedocs.io/en/latest/?badge=latest)
+
+A Python implementation of the IAB consent strings (v1.1 and v2)
+
+## Installing
+
+Install and update using pip:
+
+```bash
+pip install -U iab-tcf
+```
+
+## Documentation
+
+[Documentation](https://iab-tcf.readthedocs.io/en/stable/) of this package can be
+found at [readthedocs.io](https://iab-tcf.readthedocs.io/en/stable/).
+
+To generate the documentation locally:
+
+```bash
+pip install sphinx sphinx_rtd_theme
+cd docs/
+sphinx-apidoc -f -o . ../iab_tcf/
+make html
+```
+
+## A Simple Example
+
+In order to decode a v1.1 or v2 consent string automatically we can do:
+
+```python
+from iab_tcf import decode
+
+consent = decode("CO5VTlWO5VTlWH1AAAENAwCwAIAAAAAAAIAAAAoAAAAA.YAAAAAAAAAA")
+
+print(consent.version) # prints 2
+```
+
+If we want to improve performance and we already know it's going to
+be a v2 consent string we can do:
+
+```python
+from iab_tcf import decode_v2
+
+consent = decode_v2("CO5VTlWO5VTlWH1AAAENAwCwAIAAAAAAAIAAAAoAAAAA.YAAAAAAAAAA")
+
+print(consent.version) # prints 2
+```
+
+## Tests
+
+In order to run the tests locally we can do:
+
+```bash
+pip install -r requirements-test.txt
+pytest -v .
+```
+
+## Thanks
+
+Many thanks to [LiveRamp/iabconsent](https://github.com/LiveRamp/iabconsent)
+which greatly inspired this project, and forms the basis and internal logic.
+
+
+%package help
+Summary: Development documents and examples for iab-tcf
+Provides: python3-iab-tcf-doc
+%description help
+# iab-tcf
+
+[![Build Status](https://travis-ci.org/gguridi/iab-tcf.svg?branch=master)](https://travis-ci.org/gguridi/iab-tcf)
+[![codecov](https://codecov.io/gh/gguridi/iab-tcf/branch/master/graph/badge.svg)](https://codecov.io/gh/gguridi/iab-tcf)
+[![Codacy Badge](https://app.codacy.com/project/badge/Grade/6e6a8a02a6b14c5998b29bbe06327c87)](https://www.codacy.com/gh/gguridi/iab-tcf/dashboard)
+![Releasing](https://github.com/gguridi/iab-tcf/workflows/Releasing/badge.svg)
+[![Documentation Status](https://readthedocs.org/projects/iab-tcf/badge/?version=latest)](https://iab-tcf.readthedocs.io/en/latest/?badge=latest)
+
+A Python implementation of the IAB consent strings (v1.1 and v2)
+
+## Installing
+
+Install and update using pip:
+
+```bash
+pip install -U iab-tcf
+```
+
+## Documentation
+
+[Documentation](https://iab-tcf.readthedocs.io/en/stable/) of this package can be
+found at [readthedocs.io](https://iab-tcf.readthedocs.io/en/stable/).
+
+To generate the documentation locally:
+
+```bash
+pip install sphinx sphinx_rtd_theme
+cd docs/
+sphinx-apidoc -f -o . ../iab_tcf/
+make html
+```
+
+## A Simple Example
+
+In order to decode a v1.1 or v2 consent string automatically we can do:
+
+```python
+from iab_tcf import decode
+
+consent = decode("CO5VTlWO5VTlWH1AAAENAwCwAIAAAAAAAIAAAAoAAAAA.YAAAAAAAAAA")
+
+print(consent.version) # prints 2
+```
+
+If we want to improve performance and we already know it's going to
+be a v2 consent string we can do:
+
+```python
+from iab_tcf import decode_v2
+
+consent = decode_v2("CO5VTlWO5VTlWH1AAAENAwCwAIAAAAAAAIAAAAoAAAAA.YAAAAAAAAAA")
+
+print(consent.version) # prints 2
+```
+
+## Tests
+
+In order to run the tests locally we can do:
+
+```bash
+pip install -r requirements-test.txt
+pytest -v .
+```
+
+## Thanks
+
+Many thanks to [LiveRamp/iabconsent](https://github.com/LiveRamp/iabconsent)
+which greatly inspired this project, and forms the basis and internal logic.
+
+
+%prep
+%autosetup -n iab-tcf-0.2.2
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-iab-tcf -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5285e3a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7749b8b6974b5af3d4ee181b671e6692 iab-tcf-0.2.2.tar.gz