Dcicutils

Latest version: v8.11.0

Safety actively analyzes 638346 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 25

7.4.2

=====

* Rewrite test ``test_get_response_json`` as a unit test to get around its flakiness.

7.4.1.1

=======

The ``glacier2`` branch did not bump the version. It continues to call itself version 7.4.1 even though the ``v7.4.1`` does not contain its functionality, so the point of change is retroactiely tagged ``v7.4.1.1``.

* In ``common.py``

* Add constant ``ENCODED_LIFECYCLE_TAG_KEY``

* In ``glacier_utils.py``:

* Accept support for url-encoded tags for GlacierUtils multipart uploads.

* Add support for removing lifecycle tag when copying object.

7.4.1

=====

* In ``glacier_utils.py``:

* Fix calls to ``self.copy_object_back_to_original_location``
in ``restore_glacier_phase_two_copy``.

* In ``qa_utils.py``:

* Make ``boto3.client('s3').put_object`` handle either a string
or bytes object correctly.

* Actively mark tests that are already marked with
``pytest.mark.beanstalk_failure`` to also use ``pytest.mark.skip``
so they don't run and confuse things even when markers are not in play.

* Update some live ecosystem expectations to match present real world state.

* Separate tests of live ecosystem so that the parts that are supposed
to pass reliably are in a separate function from the parts that are
thought to be in legit transition.

* Misc changes to satisfy various syntax checkers.

* One stray call to `print` changed to `PRINT`.

* Various grammar errors fixed in comment strings because
PyCharm now whines about that, and the suggestions seemed reasonable.

7.4.0

=====

* In ``dcicutils.env_utils`` added function ``get_portal_url`` which is
the same as ``get_env_real_url`` but does not access the URL (via the
health page); first usage of which was in foursight-core. 2023-04-16.

* Added ``dcicutils.ssl_certificate_utils``;
first usage of which was in foursight-core. 2023-04-16.

* Added ``dcicutils.scripts.publish_to_pypi``; 2023-04-24.

* Added ``dcicutils.function_cache_decorator``; 2023-04-24;
future help in simplifying some caching in foursight-core APIs.

* Updated ``test/test_task_utils.py`` (``test_pmap_parallelism``):
to increase ``margin_of_error`` to 1.1333.

7.3.1

=====

Add LICENSE.txt (MIT Licenses). The ``pyproject.toml`` already declared that lic
ense, so no real change. Just pro forma.

7.3.0

=====

* In ``dcicutils.command_utils``:

* New decorator ``require_confirmation``

* In ``dcicutils.common``:

* New variable ``ALL_S3_STORAGE_CLASSES``
* New variable ``AVAILABLE_S3_STORAGE_CLASSES``
* New variable ``S3_GLACIER_CLASSES``
* New type hint ``S3GlacierClass``
* New type hint ``S3StorageClass``

* New module ``dcicutils.glacier_utils``:

* Class for interacting with/restoring files from Glacier

* In ``dcicutils.misc_utils``:

* New function ``INPUT``
* New function ``future_datetime``
* New decorator ``managed_property``
* New function ``map_chunked``
* New function ``format_in_radix``
* New function ``parse_in_radix``

* In ``dcicutils.qa_checkers``:

* Fix bug in ``print`` statement recognizer

* In ``dcicutils.qa_utils``:

* Support for Glacier-related operations in ``MockBotoS3Client``:

* Method ``copy_object``
* Method ``delete_object``
* Method ``list_object_versions``
* Method ``restore_object``

* Load ``coveralls`` dependency only dynamically in GA workflow, not in poetry,
because it implicates ``docopt`` library, which needs ``2to3``, and would fail.

Page 7 of 25

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.