summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 11:27:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 11:27:57 +0000
commit46bdb892f3c83e447b8aaf67a2e64e0ee96964e8 (patch)
tree5ace575786cdb1662c10c41048ab10c5b7d0534c
parentc4d09ad6c9bc0c73dde895c7644abdb609860da1 (diff)
automatic import of python-tinyaes
-rw-r--r--.gitignore1
-rw-r--r--python-tinyaes.spec314
-rw-r--r--sources1
3 files changed, 316 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b50c2f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tinyaes-1.0.4.tar.gz
diff --git a/python-tinyaes.spec b/python-tinyaes.spec
new file mode 100644
index 0000000..566ddac
--- /dev/null
+++ b/python-tinyaes.spec
@@ -0,0 +1,314 @@
+%global _empty_manifest_terminate_build 0
+Name: python-tinyaes
+Version: 1.0.4
+Release: 1
+Summary: tiny-AES-c wrapper in Cython
+License: MIT
+URL: https://github.com/naufraghi/tinyaes-py
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9e/8b/8f94a911bb8482551ef0664578b5c76a7e615f7a793129105f769261c741/tinyaes-1.0.4.tar.gz
+
+
+%description
+# tiny-AES-c Cython wrapper
+[![PyPI version](https://badge.fury.io/py/tinyaes.svg)](https://pypi.org/project/tinyaes/)
+
+[`tinyaes`](https://github.com/naufraghi/tinyaes-py) is a few lines Cython
+wrapper for the [`tiny-AES-c`](https://github.com/kokke/tiny-AES-c) library, a
+_Small portable AES128/192/256 in C_.
+
+The library offers a few modes, CTR mode is the only one currently wrapped.
+Given the C API works modifying a buffer in-place, the wrapper offers:
+
+- `CTR_xcrypt_buffer(..)` that works on all bytes convertible types, and
+ encrypting a copy of the buffer,
+- `CTR_xcrypt_buffer_inplace(..)` that works on `bytearray`s only, modifying
+ the buffer in-place.
+
+## Release notes
+
+- **1.0.4** (Nov 3, 2022)
+ - Final release with Python 3.11
+- 1.0.4rc1 (Oct 24, 2022)
+ - add Python 3.11 to the matrix, remove Python 2.7 and 3.6
+- **1.0.3** (Feb 22, 2022)
+ - Final release with Python 3.10
+- 1.0.3rc1 (Nov 4, 2021):
+ - add Python 3.10 to the matrix
+- **1.0.2** (Nov 4, 2021):
+ - version bump from 1.0.2rc1
+ - bump to `manylinux2010` because of tlsv1 errors and drop Python 2.7
+ missing in the new image
+- 1.0.2rc1 (Apr 7, 2021):
+ - added release Python 3.9 on Windows, Linux (`manylinux1`) and OSX
+ - updated upstream [`tiny-AES-c`](https://github.com/kokke/tiny-AES-c) with
+ some cleanups and small optimizations
+- **1.0.1** (Jun 8, 2020):
+ - release Python 3.6 OSX and Windows wheels
+ - updated upstream [`tiny-AES-c`](https://github.com/kokke/tiny-AES-c) with
+ some code changes
+- **1.0.0** (Feb 20, 2020): updated readme (no code changes)
+- 1.0.0a3 (Feb 7, 2020): fix bytes in-place mutation error
+- 1.0.0a2 (Jan 29, 2020): first public release
+
+## Like to help?
+
+The CI is up and running, but on Linux only, running a minimal test suite that
+uses [hypothesis](https://hypothesis.works), and that allowed me to find a
+first bug, a missed variable replacement that had nefarious consequences.
+
+The source package released on PyPI should be usable on Windows and MacOS too,
+just `pip install tinyaes`.
+
+The development instead is Linux centered, without any guide yet, but the CI
+script can be a guide.
+
+### TL;DR
+
+- Download [Just](https://github.com/casey/just) and put it in your `PATH`.
+- `just test` should install the library and the dependencies and run the tests
+ using your default Python version.
+- Inspect the `justfile` for some hints about what happens.
+
+## Thanks
+
+The library is very minimal, but nonetheless, it uses a lot of existing
+software. I'd like to thank:
+
+- [Cython](https://cython.org) developer for their wonderful "product", both
+ the library and the documentation.
+
+- Kudos to `kokke` for their [tiny-AES-c](https://github.com/kokke/tiny-AES-c)
+ library, very minimal and easy to build and wrap for any usage that needs only
+ the few AES modes it exposes.
+
+- [Just](https://github.com/casey/just) developers for their automation tool,
+ I use in most of my projects.
+
+- A huge thank to all the [hypothesis](https://github.com/HypothesisWorks/hypothesis)
+ authors to their fantastic library, that helped me to find an miss-named
+ variable bug that I worked very hard to add in a 6 lines of code wrapper! And
+ to this [Data-driven testing with Python](https://www.develer.com/en/data-driven-testing-with-python/)
+ article that had left me with the desire to try the library.
+
+
+%package -n python3-tinyaes
+Summary: tiny-AES-c wrapper in Cython
+Provides: python-tinyaes
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-tinyaes
+# tiny-AES-c Cython wrapper
+[![PyPI version](https://badge.fury.io/py/tinyaes.svg)](https://pypi.org/project/tinyaes/)
+
+[`tinyaes`](https://github.com/naufraghi/tinyaes-py) is a few lines Cython
+wrapper for the [`tiny-AES-c`](https://github.com/kokke/tiny-AES-c) library, a
+_Small portable AES128/192/256 in C_.
+
+The library offers a few modes, CTR mode is the only one currently wrapped.
+Given the C API works modifying a buffer in-place, the wrapper offers:
+
+- `CTR_xcrypt_buffer(..)` that works on all bytes convertible types, and
+ encrypting a copy of the buffer,
+- `CTR_xcrypt_buffer_inplace(..)` that works on `bytearray`s only, modifying
+ the buffer in-place.
+
+## Release notes
+
+- **1.0.4** (Nov 3, 2022)
+ - Final release with Python 3.11
+- 1.0.4rc1 (Oct 24, 2022)
+ - add Python 3.11 to the matrix, remove Python 2.7 and 3.6
+- **1.0.3** (Feb 22, 2022)
+ - Final release with Python 3.10
+- 1.0.3rc1 (Nov 4, 2021):
+ - add Python 3.10 to the matrix
+- **1.0.2** (Nov 4, 2021):
+ - version bump from 1.0.2rc1
+ - bump to `manylinux2010` because of tlsv1 errors and drop Python 2.7
+ missing in the new image
+- 1.0.2rc1 (Apr 7, 2021):
+ - added release Python 3.9 on Windows, Linux (`manylinux1`) and OSX
+ - updated upstream [`tiny-AES-c`](https://github.com/kokke/tiny-AES-c) with
+ some cleanups and small optimizations
+- **1.0.1** (Jun 8, 2020):
+ - release Python 3.6 OSX and Windows wheels
+ - updated upstream [`tiny-AES-c`](https://github.com/kokke/tiny-AES-c) with
+ some code changes
+- **1.0.0** (Feb 20, 2020): updated readme (no code changes)
+- 1.0.0a3 (Feb 7, 2020): fix bytes in-place mutation error
+- 1.0.0a2 (Jan 29, 2020): first public release
+
+## Like to help?
+
+The CI is up and running, but on Linux only, running a minimal test suite that
+uses [hypothesis](https://hypothesis.works), and that allowed me to find a
+first bug, a missed variable replacement that had nefarious consequences.
+
+The source package released on PyPI should be usable on Windows and MacOS too,
+just `pip install tinyaes`.
+
+The development instead is Linux centered, without any guide yet, but the CI
+script can be a guide.
+
+### TL;DR
+
+- Download [Just](https://github.com/casey/just) and put it in your `PATH`.
+- `just test` should install the library and the dependencies and run the tests
+ using your default Python version.
+- Inspect the `justfile` for some hints about what happens.
+
+## Thanks
+
+The library is very minimal, but nonetheless, it uses a lot of existing
+software. I'd like to thank:
+
+- [Cython](https://cython.org) developer for their wonderful "product", both
+ the library and the documentation.
+
+- Kudos to `kokke` for their [tiny-AES-c](https://github.com/kokke/tiny-AES-c)
+ library, very minimal and easy to build and wrap for any usage that needs only
+ the few AES modes it exposes.
+
+- [Just](https://github.com/casey/just) developers for their automation tool,
+ I use in most of my projects.
+
+- A huge thank to all the [hypothesis](https://github.com/HypothesisWorks/hypothesis)
+ authors to their fantastic library, that helped me to find an miss-named
+ variable bug that I worked very hard to add in a 6 lines of code wrapper! And
+ to this [Data-driven testing with Python](https://www.develer.com/en/data-driven-testing-with-python/)
+ article that had left me with the desire to try the library.
+
+
+%package help
+Summary: Development documents and examples for tinyaes
+Provides: python3-tinyaes-doc
+%description help
+# tiny-AES-c Cython wrapper
+[![PyPI version](https://badge.fury.io/py/tinyaes.svg)](https://pypi.org/project/tinyaes/)
+
+[`tinyaes`](https://github.com/naufraghi/tinyaes-py) is a few lines Cython
+wrapper for the [`tiny-AES-c`](https://github.com/kokke/tiny-AES-c) library, a
+_Small portable AES128/192/256 in C_.
+
+The library offers a few modes, CTR mode is the only one currently wrapped.
+Given the C API works modifying a buffer in-place, the wrapper offers:
+
+- `CTR_xcrypt_buffer(..)` that works on all bytes convertible types, and
+ encrypting a copy of the buffer,
+- `CTR_xcrypt_buffer_inplace(..)` that works on `bytearray`s only, modifying
+ the buffer in-place.
+
+## Release notes
+
+- **1.0.4** (Nov 3, 2022)
+ - Final release with Python 3.11
+- 1.0.4rc1 (Oct 24, 2022)
+ - add Python 3.11 to the matrix, remove Python 2.7 and 3.6
+- **1.0.3** (Feb 22, 2022)
+ - Final release with Python 3.10
+- 1.0.3rc1 (Nov 4, 2021):
+ - add Python 3.10 to the matrix
+- **1.0.2** (Nov 4, 2021):
+ - version bump from 1.0.2rc1
+ - bump to `manylinux2010` because of tlsv1 errors and drop Python 2.7
+ missing in the new image
+- 1.0.2rc1 (Apr 7, 2021):
+ - added release Python 3.9 on Windows, Linux (`manylinux1`) and OSX
+ - updated upstream [`tiny-AES-c`](https://github.com/kokke/tiny-AES-c) with
+ some cleanups and small optimizations
+- **1.0.1** (Jun 8, 2020):
+ - release Python 3.6 OSX and Windows wheels
+ - updated upstream [`tiny-AES-c`](https://github.com/kokke/tiny-AES-c) with
+ some code changes
+- **1.0.0** (Feb 20, 2020): updated readme (no code changes)
+- 1.0.0a3 (Feb 7, 2020): fix bytes in-place mutation error
+- 1.0.0a2 (Jan 29, 2020): first public release
+
+## Like to help?
+
+The CI is up and running, but on Linux only, running a minimal test suite that
+uses [hypothesis](https://hypothesis.works), and that allowed me to find a
+first bug, a missed variable replacement that had nefarious consequences.
+
+The source package released on PyPI should be usable on Windows and MacOS too,
+just `pip install tinyaes`.
+
+The development instead is Linux centered, without any guide yet, but the CI
+script can be a guide.
+
+### TL;DR
+
+- Download [Just](https://github.com/casey/just) and put it in your `PATH`.
+- `just test` should install the library and the dependencies and run the tests
+ using your default Python version.
+- Inspect the `justfile` for some hints about what happens.
+
+## Thanks
+
+The library is very minimal, but nonetheless, it uses a lot of existing
+software. I'd like to thank:
+
+- [Cython](https://cython.org) developer for their wonderful "product", both
+ the library and the documentation.
+
+- Kudos to `kokke` for their [tiny-AES-c](https://github.com/kokke/tiny-AES-c)
+ library, very minimal and easy to build and wrap for any usage that needs only
+ the few AES modes it exposes.
+
+- [Just](https://github.com/casey/just) developers for their automation tool,
+ I use in most of my projects.
+
+- A huge thank to all the [hypothesis](https://github.com/HypothesisWorks/hypothesis)
+ authors to their fantastic library, that helped me to find an miss-named
+ variable bug that I worked very hard to add in a 6 lines of code wrapper! And
+ to this [Data-driven testing with Python](https://www.develer.com/en/data-driven-testing-with-python/)
+ article that had left me with the desire to try the library.
+
+
+%prep
+%autosetup -n tinyaes-1.0.4
+
+%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-tinyaes -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..82ef8e7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+05e84900c94022a434ffb54ff317cfa4 tinyaes-1.0.4.tar.gz