Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-shortuuid for
openSUSE:Factory checked in at 2022-10-08 01:26:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-shortuuid (Old)
and /work/SRC/openSUSE:Factory/.python-shortuuid.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-shortuuid"
Sat Oct 8 01:26:01 2022 rev:5 rq:1008862 version:1.0.9
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-shortuuid/python-shortuuid.changes
2022-01-10 23:53:11.824782972 +0100
+++
/work/SRC/openSUSE:Factory/.python-shortuuid.new.2275/python-shortuuid.changes
2022-10-08 01:26:28.486401641 +0200
@@ -1,0 +2,6 @@
+Fri Oct 7 15:37:21 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- Update to v1.0.9
+ No Upstream changelog
+
+-------------------------------------------------------------------
Old:
----
shortuuid-1.0.8.tar.gz
New:
----
shortuuid-1.0.9.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-shortuuid.spec ++++++
--- /var/tmp/diff_new_pack.5rHOVq/_old 2022-10-08 01:26:28.890402567 +0200
+++ /var/tmp/diff_new_pack.5rHOVq/_new 2022-10-08 01:26:28.894402576 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-shortuuid
-Version: 1.0.8
+Version: 1.0.9
Release: 0
Summary: A generator library for concise, unambiguous and URL-safe UUIDs
License: BSD-3-Clause
++++++ shortuuid-1.0.8.tar.gz -> shortuuid-1.0.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/shortuuid-1.0.8/PKG-INFO new/shortuuid-1.0.9/PKG-INFO
--- old/shortuuid-1.0.8/PKG-INFO 2021-11-11 12:21:18.251320800 +0100
+++ new/shortuuid-1.0.9/PKG-INFO 2022-05-08 11:56:02.128507400 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: shortuuid
-Version: 1.0.8
+Version: 1.0.9
Summary: A generator library for concise, unambiguous and URL-safe UUIDs.
Home-page: https://github.com/skorokithakis/shortuuid/
License: BSD
@@ -73,10 +73,10 @@
```python
>>> shortuuid.uuid(name="example.com")
-'wpsWLdLt9nscn2jbTD3uxe'
+'exu3DTbj2ncsn9tLdLWspw'
>>> shortuuid.uuid(name="<http://example.com>")
-'c8sh5y9hdSMS6zVnrvf53T'
+'shortuuid.uuid(name="<http://example.com>")'
```
You can also generate a cryptographically secure random string (using
`os.urandom()`
@@ -124,17 +124,17 @@
>>> s = shortuuid.encode(u)
>>> s
-'cu8Eo9RyrUsV4MXEiDZpLM'
+'MLpZDiEXM4VsUryR9oE8uc'
>>> shortuuid.decode(s) == u
True
>>> short = s[:7]
>>> short
-'cu8Eo9R'
+'MLpZDiE'
>>> h = shortuuid.decode(short)
-UUID('00000000-0000-0000-0000-00b8c0b9f952')
+UUID('00000000-0000-0000-0000-009a5b27f8b9')
>>> shortuuid.decode(shortuuid.encode(h)) == h
True
@@ -167,12 +167,10 @@
`shortuuid` provides a simple way to generate a short UUID in a terminal:
```bash
-$ python3 -m shortuuid
+$ shortuuid
fZpeF6gcskHbSpTgpQCkcJ
```
-(Replace `python3` with `py` if you are using Windows).
-
Django field
------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/shortuuid-1.0.8/README.md
new/shortuuid-1.0.9/README.md
--- old/shortuuid-1.0.8/README.md 2021-11-08 22:59:09.717791000 +0100
+++ new/shortuuid-1.0.9/README.md 2022-05-08 11:53:02.229916000 +0200
@@ -51,10 +51,10 @@
```python
>>> shortuuid.uuid(name="example.com")
-'wpsWLdLt9nscn2jbTD3uxe'
+'exu3DTbj2ncsn9tLdLWspw'
>>> shortuuid.uuid(name="<http://example.com>")
-'c8sh5y9hdSMS6zVnrvf53T'
+'shortuuid.uuid(name="<http://example.com>")'
```
You can also generate a cryptographically secure random string (using
`os.urandom()`
@@ -102,17 +102,17 @@
>>> s = shortuuid.encode(u)
>>> s
-'cu8Eo9RyrUsV4MXEiDZpLM'
+'MLpZDiEXM4VsUryR9oE8uc'
>>> shortuuid.decode(s) == u
True
>>> short = s[:7]
>>> short
-'cu8Eo9R'
+'MLpZDiE'
>>> h = shortuuid.decode(short)
-UUID('00000000-0000-0000-0000-00b8c0b9f952')
+UUID('00000000-0000-0000-0000-009a5b27f8b9')
>>> shortuuid.decode(shortuuid.encode(h)) == h
True
@@ -145,12 +145,10 @@
`shortuuid` provides a simple way to generate a short UUID in a terminal:
```bash
-$ python3 -m shortuuid
+$ shortuuid
fZpeF6gcskHbSpTgpQCkcJ
```
-(Replace `python3` with `py` if you are using Windows).
-
Django field
------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/shortuuid-1.0.8/pyproject.toml
new/shortuuid-1.0.9/pyproject.toml
--- old/shortuuid-1.0.8/pyproject.toml 2021-11-11 12:20:53.295497200 +0100
+++ new/shortuuid-1.0.9/pyproject.toml 2022-05-08 11:54:15.201956000 +0200
@@ -1,6 +1,6 @@
[tool.poetry]
name = "shortuuid"
-version = "1.0.8"
+version = "1.0.9"
description = "A generator library for concise, unambiguous and URL-safe
UUIDs."
license = "BSD"
classifiers = [
@@ -24,3 +24,8 @@
[tool.poetry.dependencies]
python = ">=3.5"
+
+[build-system]
+requires = ["poetry-core"]
+build-backend = "poetry.core.masonry.api"
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/shortuuid-1.0.8/setup.py new/shortuuid-1.0.9/setup.py
--- old/shortuuid-1.0.8/setup.py 2021-11-11 12:21:18.251116500 +0100
+++ new/shortuuid-1.0.9/setup.py 2022-05-08 11:56:02.128150500 +0200
@@ -12,9 +12,9 @@
setup_kwargs = {
'name': 'shortuuid',
- 'version': '1.0.8',
+ 'version': '1.0.9',
'description': 'A generator library for concise, unambiguous and URL-safe
UUIDs.',
- 'long_description': 'Description\n===========\n\n`shortuuid` is a simple
python library that generates concise, unambiguous, URL-safe\nUUIDs.\n\nOften,
one needs to use non-sequential IDs in places where users will see them, but
the\nIDs must be as concise and easy to use as possible. `shortuuid` solves
this problem by\ngenerating uuids using Python\'s built-in `uuid` module and
then translating them to\nbase57 using lowercase and uppercase letters and
digits, and removing similar-looking\ncharacters such as l, 1, I, O and
0.\n\n[](https://travis-ci.org/skorokithakis/shortuuid)\n\n\nInstallation\n------------\n\nTo
install `shortuuid` you need:\n\n- Python 3.x.\n\nIf you have the
dependencies, you have multiple options of installation:\n\n- With pip
(preferred), do `pip install shortuuid`.\n- With setuptools, do `easy_install
shortuuid`.\n- To install the source, download it from\n https://githu
b.com/stochastic-technologies/shortuuid and run `python setup.py\n
install`.\n\n\nUsage\n-----\n\nTo use `shortuuid`, just import it in your
project like so:\n\n```python\n>>> import shortuuid\n```\n\nYou can then
generate a short UUID:\n\n```python\n>>>
shortuuid.uuid()\n\'vytxeTZskVKR7C7WgdSP3d\'\n```\n\nIf you prefer a version 5
UUID, you can pass a name (DNS or URL) to the call and it will\nbe used as a
namespace (`uuid.NAMESPACE_DNS` or `uuid.NAMESPACE_URL`) for the
resulting\nUUID:\n\n```python\n>>>
shortuuid.uuid(name="example.com")\n\'wpsWLdLt9nscn2jbTD3uxe\'\n\n>>>
shortuuid.uuid(name="<http://example.com>")\n\'c8sh5y9hdSMS6zVnrvf53T\'\n```\n\nYou
can also generate a cryptographically secure random string (using
`os.urandom()`\ninternally) with:\n\n```python\n>>>
shortuuid.ShortUUID().random(length=22)\n\'RaF56o2r58hTKT7AYS9doj\'\n```\n\nTo
see the alphabet that is being used to generate new UUIDs:\n\n```python\n>>>
shortuuid.get_alphabet()\n\'23456789ABCDEFGHJKLMNPQRSTU
VWXYZabcdefghijkmnopqrstuvwxyz\'\n```\n\nIf you want to use your own alphabet
to generate UUIDs, use `set_alphabet()`:\n\n```python\n>>>
shortuuid.set_alphabet("aaaaabcdefgh1230123")\n>>>
shortuuid.uuid()\n\'0agee20aa1hehebcagddhedddc0d2chhab3b\'\n```\n\n`shortuuid`
will automatically sort and remove duplicates from your alphabet to
ensure\nconsistency:\n\n```python\n>>>
shortuuid.get_alphabet()\n\'0123abcdefgh\'\n```\n\nIf the default 22 digits are
too long for you, you can get shorter IDs by just\ntruncating the string to the
desired length. The IDs won\'t be universally unique any\nlonger, but the
probability of a collision will still be very low.\n\nTo serialize existing
UUIDs, use `encode()` and `decode()`:\n\n```python\n>>> import uuid\n>>> u =
uuid.uuid4()\n>>> u\nUUID(\'6ca4f0f8-2508-4bac-b8f1-5d1e3da2247a\')\n\n>>> s =
shortuuid.encode(u)\n>>> s\n\'cu8Eo9RyrUsV4MXEiDZpLM\'\n\n>>>
shortuuid.decode(s) == u\nTrue\n\n>>> short = s[:7]\n>>>
short\n\'cu8Eo9R\'\n\n>>> h = shortuui
d.decode(short)\nUUID(\'00000000-0000-0000-0000-00b8c0b9f952\')\n\n>>>
shortuuid.decode(shortuuid.encode(h)) == h\nTrue\n```\n\n\nClass-based
usage\n-----------------\n\nIf you need to have various alphabets per-thread,
you can use the `ShortUUID` class,\nlike so:\n\n```python\n>>> su =
shortuuid.ShortUUID(alphabet="01345678")\n>>>
su.uuid()\n\'034636353306816784480643806546503818874456\'\n\n>>>
su.get_alphabet()\n\'01345678\'\n\n>>>
su.set_alphabet("21345687654123456")\n>>>
su.get_alphabet()\n\'12345678\'\n```\n\n\nCommand-line
usage\n------------------\n\n`shortuuid` provides a simple way to generate a
short UUID in a terminal:\n\n```bash\n$ python3 -m
shortuuid\nfZpeF6gcskHbSpTgpQCkcJ\n```\n\n(Replace `python3` with `py` if you
are using Windows).\n\n\nDjango field\n------------\n\n`shortuuid` includes a
Django field that generates random short UUIDs by default, for\nyour
convenience:\n\n```python\nfrom shortuuid.django_fields import
ShortUUIDField\n\nclass MyModel(models.Model):
\n # A primary key ID of length 16 and a short alphabet.\n id =
ShortUUIDField(\n length=16,\n max_length=40,\n
prefix="id_",\n alphabet="abcdefg1234",\n primary_key=True,\n
)\n\n # A short UUID of length 22 and the default alphabet.\n api_key =
ShortUUIDField()\n```\n\nThe field is the same as the `CharField`, with a
`length` argument (the length of the\nID), an `alphabet` argument, and the
`default` argument removed. Everything else is\nexactly the same, e.g. `index`,
`help_text`, `max_length`, etc.\n\n\nCompatibility
note\n------------------\n\nVersions of ShortUUID prior to 1.0.0 generated
UUIDs with their MSB last, i.e. reversed.\nThis was later fixed, but if you
have some UUIDs stored as a string with the old method,\nyou need to pass
`legacy=True` to `decode()` when converting your strings back to UUIDs.\n\nThat
option will go away in the future, so you will want to convert your UUIDs
to\nstrings using the new method. This can
be done like so:\n\n```python\n>>> new_uuid_str = encode(decode(old_uuid_str,
legacy=True))\n```\n\nLicense\n-------\n\n`shortuuid` is distributed under the
BSD license.\n',
+ 'long_description': 'Description\n===========\n\n`shortuuid` is a simple
python library that generates concise, unambiguous, URL-safe\nUUIDs.\n\nOften,
one needs to use non-sequential IDs in places where users will see them, but
the\nIDs must be as concise and easy to use as possible. `shortuuid` solves
this problem by\ngenerating uuids using Python\'s built-in `uuid` module and
then translating them to\nbase57 using lowercase and uppercase letters and
digits, and removing similar-looking\ncharacters such as l, 1, I, O and
0.\n\n[](https://travis-ci.org/skorokithakis/shortuuid)\n\n\nInstallation\n------------\n\nTo
install `shortuuid` you need:\n\n- Python 3.x.\n\nIf you have the
dependencies, you have multiple options of installation:\n\n- With pip
(preferred), do `pip install shortuuid`.\n- With setuptools, do `easy_install
shortuuid`.\n- To install the source, download it from\n https://githu
b.com/stochastic-technologies/shortuuid and run `python setup.py\n
install`.\n\n\nUsage\n-----\n\nTo use `shortuuid`, just import it in your
project like so:\n\n```python\n>>> import shortuuid\n```\n\nYou can then
generate a short UUID:\n\n```python\n>>>
shortuuid.uuid()\n\'vytxeTZskVKR7C7WgdSP3d\'\n```\n\nIf you prefer a version 5
UUID, you can pass a name (DNS or URL) to the call and it will\nbe used as a
namespace (`uuid.NAMESPACE_DNS` or `uuid.NAMESPACE_URL`) for the
resulting\nUUID:\n\n```python\n>>>
shortuuid.uuid(name="example.com")\n\'exu3DTbj2ncsn9tLdLWspw\'\n\n>>>
shortuuid.uuid(name="<http://example.com>")\n\'shortuuid.uuid(name="<http://example.com>")\'\n```\n\nYou
can also generate a cryptographically secure random string (using
`os.urandom()`\ninternally) with:\n\n```python\n>>>
shortuuid.ShortUUID().random(length=22)\n\'RaF56o2r58hTKT7AYS9doj\'\n```\n\nTo
see the alphabet that is being used to generate new UUIDs:\n\n```python\n>>>
shortuuid.get_alphabet()\n\'234567
89ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\'\n```\n\nIf you want to
use your own alphabet to generate UUIDs, use
`set_alphabet()`:\n\n```python\n>>>
shortuuid.set_alphabet("aaaaabcdefgh1230123")\n>>>
shortuuid.uuid()\n\'0agee20aa1hehebcagddhedddc0d2chhab3b\'\n```\n\n`shortuuid`
will automatically sort and remove duplicates from your alphabet to
ensure\nconsistency:\n\n```python\n>>>
shortuuid.get_alphabet()\n\'0123abcdefgh\'\n```\n\nIf the default 22 digits are
too long for you, you can get shorter IDs by just\ntruncating the string to the
desired length. The IDs won\'t be universally unique any\nlonger, but the
probability of a collision will still be very low.\n\nTo serialize existing
UUIDs, use `encode()` and `decode()`:\n\n```python\n>>> import uuid\n>>> u =
uuid.uuid4()\n>>> u\nUUID(\'6ca4f0f8-2508-4bac-b8f1-5d1e3da2247a\')\n\n>>> s =
shortuuid.encode(u)\n>>> s\n\'MLpZDiEXM4VsUryR9oE8uc\'\n\n>>>
shortuuid.decode(s) == u\nTrue\n\n>>> short = s[:7]\n>>> short\n\'MLpZDiE\
'\n\n>>> h =
shortuuid.decode(short)\nUUID(\'00000000-0000-0000-0000-009a5b27f8b9\')\n\n>>>
shortuuid.decode(shortuuid.encode(h)) == h\nTrue\n```\n\n\nClass-based
usage\n-----------------\n\nIf you need to have various alphabets per-thread,
you can use the `ShortUUID` class,\nlike so:\n\n```python\n>>> su =
shortuuid.ShortUUID(alphabet="01345678")\n>>>
su.uuid()\n\'034636353306816784480643806546503818874456\'\n\n>>>
su.get_alphabet()\n\'01345678\'\n\n>>>
su.set_alphabet("21345687654123456")\n>>>
su.get_alphabet()\n\'12345678\'\n```\n\n\nCommand-line
usage\n------------------\n\n`shortuuid` provides a simple way to generate a
short UUID in a terminal:\n\n```bash\n$
shortuuid\nfZpeF6gcskHbSpTgpQCkcJ\n```\n\n\nDjango
field\n------------\n\n`shortuuid` includes a Django field that generates
random short UUIDs by default, for\nyour convenience:\n\n```python\nfrom
shortuuid.django_fields import ShortUUIDField\n\nclass MyModel(models.Model):\n
# A primary key ID of length 16 and a short
alphabet.\n id = ShortUUIDField(\n length=16,\n
max_length=40,\n prefix="id_",\n alphabet="abcdefg1234",\n
primary_key=True,\n )\n\n # A short UUID of length 22 and the default
alphabet.\n api_key = ShortUUIDField()\n```\n\nThe field is the same as the
`CharField`, with a `length` argument (the length of the\nID), an `alphabet`
argument, and the `default` argument removed. Everything else is\nexactly the
same, e.g. `index`, `help_text`, `max_length`, etc.\n\n\nCompatibility
note\n------------------\n\nVersions of ShortUUID prior to 1.0.0 generated
UUIDs with their MSB last, i.e. reversed.\nThis was later fixed, but if you
have some UUIDs stored as a string with the old method,\nyou need to pass
`legacy=True` to `decode()` when converting your strings back to UUIDs.\n\nThat
option will go away in the future, so you will want to convert your UUIDs
to\nstrings using the new method. This can be done like so:\n\n```python\n>>>
new_uuid_str
= encode(decode(old_uuid_str,
legacy=True))\n```\n\nLicense\n-------\n\n`shortuuid` is distributed under the
BSD license.\n',
'author': 'Stavros Korokithakis',
'author_email': '[email protected]',
'maintainer': None,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/shortuuid-1.0.8/shortuuid/django_fields.py
new/shortuuid-1.0.9/shortuuid/django_fields.py
--- old/shortuuid-1.0.8/shortuuid/django_fields.py 2021-11-08
22:54:03.408503800 +0100
+++ new/shortuuid-1.0.9/shortuuid/django_fields.py 2022-05-08
11:53:02.233916000 +0200
@@ -13,7 +13,7 @@
if "max_length" not in kwargs:
# If `max_length` was not specified, set it here.
- kwargs["max_length"] = self.length
+ kwargs["max_length"] = self.length + len(self.prefix)
self.alphabet = kwargs.pop("alphabet", None)
kwargs["default"] = self._generate_uuid