Gemd

Latest version: v2.1.3

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

Scan your dependencies

Page 1 of 8

2.1.3

This release collects two PRs to migrate the [CI / CD](https://en.wikipedia.org/wiki/CI/CD) for this repository from [Travis CI](https://www.travis-ci.com/) to [GitHub Actions](https://docs.github.com/en/actions).

What's Changed
* Add and configure GitHub Actions for testing and deployment (214).
* Remove Travis dependence for testing, build & deploy (215).


**Full Changelog**: https://github.com/CitrineInformatics/gemd-python/compare/v2.1.1...v2.1.3

2.1.1

This is a maintenance release. It cleans up how the [Pint](https://github.com/hgrecco/pint) library is imported and wrapped, which should improve reliability when taking advantage of more advanced formatting. It also resolves some warnings originating from Python migrating how package resources get pulled in. There should be no surprises.

Improvements
* Previously, outputting units with scaling factors could result in strangely formatted strings. To resolve this, we now derive a child class, now possible because boosting the minimum supported Pint. This removes a potential tripping hazard, and generally makes it easier to fold gemd-python into the existing ecosystem. (212)
* Python's migration from [pkg_resources](https://setuptools.pypa.io/en/latest/pkg_resources.html) to [importlib.resources](https://docs.python.org/3.12/library/importlib.resources.html#module-importlib.resources) left gemd-python issuing deprecation warnings. This resolves those by using the new`files` objects. (213)


**Full Changelog**: https://github.com/CitrineInformatics/gemd-python/compare/v2.0.0...v2.1.1

2.0.0

We are thrilled to announce version 2.0.0 of gemd-python. It's been a few years of updates, both technical and quality of life, since our 1.0.0 release, but all of that has been oriented around improving the SDK (as opposed to the underlying data model).

Upgrading to version 2 may necessitate changes to existing scripts. There should be no fundamental changes in functionality between [v1.18.5](https://github.com/CitrineInformatics/gemd-python/tree/v1.18.5) and v2.0.0, so the deprecation messages from the older version should provide a guide to updating your code.

Improvements
* In cases where both the built-in json and the gemd.json `dumps` and / or `loads` methods are used in close proximity in the code, we've used aliases to make it obvious which is which. This should just be a cosmetic change. (208)

What's Removed
* The `name` keyword in LinkByUID's `from_entity` has been removed in favor of `scope`. A user-specified scope is no longer a valid positional argument. (208)
* The `get_value` and `get_enum` methods have been removed from BaseEnumeration. They are no longer necessary, as enumerations now return the values when cast as strings, as in a format statement. (208)
* The `register_classes` method has been removed from the GEMDJson object. Object types are defined during extension of the BaseEntity class, and registered with the deserializer at definition time.
* The `native_uid` keyword in gemd.util's `substitute_links` has been removed in favor of `scope`. (208)


**Full Changelog**: https://github.com/CitrineInformatics/gemd-python/compare/v1.18.5...v2.0.0

1.18.5

This is a maintenance release, anticipating a release of the next major version in the near future.

Improvements
* Units handling is improved, both providing better guardrails and updated parsing. For example, before [60 rpm would convert to 2*pi hertz](https://pint.readthedocs.io/en/0.23/user/angular_frequency.html). This should be a transparent quality of like improvement. (#201 203 209)

Fixes
* The building and testing process has been updated, adding Python 3.12 to the test suite (202), cleaning up the packaging (205 207), addressing the vast majority of documentation build warnings (204), and boosting testing library versions (210).
* Made object definitions a bit more consistent (non-breaking, 206)
* Correct encoding error on Windows with units file extraction (211)


**Full Changelog**: https://github.com/CitrineInformatics/gemd-python/compare/v1.16.7...v1.18.5

1.16.7

Releases for v1.16.3 and v1.16.4 didn't propagate to PyPI, so those release notes are repeated here.

As Python 3.7 hit [End-of-Life](https://devguide.python.org/versions/) 2023-06-27, this PR removes support for it and removes some crutches that were necessary to support it.

Improvements

* Drop reliance on [pkg-resources](https://setuptools.pypa.io/en/latest/pkg_resources.html) in favor of the more modern [importlib.resources](https://docs.python.org/3.10/library/importlib.html#module-importlib.resources). Note that the files methods were not introduced until 3.9, so until support for 3.7 and 3.8 is dropped, we cannot take advantage of them. https://github.com/CitrineInformatics/gemd-python/pull/195
* Modify the Travis-CI testing behavior for faster testing for PRs. https://github.com/CitrineInformatics/gemd-python/pull/197

Fixes

* Only build docs in one test permutation https://github.com/CitrineInformatics/gemd-python/pull/194
* Drop reliance on outdated [toolz](https://pypi.org/project/toolz/) and [Pint](https://pypi.org/project/Pint/) libraries https://github.com/CitrineInformatics/gemd-python/pull/196
* Correct for release issues https://github.com/CitrineInformatics/gemd-python/pull/198 / https://github.com/CitrineInformatics/gemd-python/pull/199 / https://github.com/CitrineInformatics/gemd-python/pull/200

Full Changelog: https://github.com/CitrineInformatics/gemd-python/compare/v1.16.0...v1.16.7

1.16.4

As Python 3.7 hit [End-of-Life](https://devguide.python.org/versions/) 2023-06-27, this PR removes support for it and removes some crutches that were necessary to support it.

Fixes
* Drop reliance on outdated [toolz](https://pypi.org/project/toolz/) and [Pint](https://pypi.org/project/Pint/) libraries #196

**Full Changelog**: https://github.com/CitrineInformatics/gemd-python/compare/v1.16.3...v1.16.4

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.