Skip to content

Commit

Permalink
Merge pull request #118 from packethost/release-1.44.0
Browse files Browse the repository at this point in the history
Release 1.44.0
  • Loading branch information
displague authored May 20, 2021
2 parents 8cdc676 + 9fb23d9 commit a2c8098
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.44.0] - Unreleased
## [1.45.0] - Unreleased
### Added
### Changed
### Fixed

## [1.44.0] - 2021-05-20
### Added
- User-Agent header added to client requests #113
- `Metro` class added (https://feedback.equinixmetal.com/changelog/new-metros-feature-live) #110
- Adds `metro` property to `DeviceBatch`, `Device`, `IPAddress`, `VLan` #110
- Adds `metro` to `create_device`, `reserve_ip_address`, `create_vlan`, `create_connection` #110
- Adds `list_metros`, `validate_metro_capacity` to `Manager` #110
- Adds `CODE_OF_CONDUCT.md`, `SUPPORT.md`, `OWNERS.md` #102, #101, #100
- Adds package metadata for `author`, `author_email`, `copyright` #114
### Changed
- `facility` is now optional in `create_device`, `reserve_ip_address`, `create_vlan`, `create_connection` #110
- CI is using GH Actions instead of Drone #115
### Fixed
- Handles when IPAddress Facility is null in API responses #117

## [1.43.1] - 2020-09-04
### Fixed
- ResponseError fixed for Python2.7 compatibility
Expand Down
4 changes: 2 additions & 2 deletions packet/Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def __init__(self, data, manager):
self.bonding_mode = data.get("bonding_mode")
self.created_at = data.get("created_at")
self.updated_at = data.get("updated_at")
self.ipxe_script_url = data.get("ipxe_script_url", None)
self.ipxe_script_url = data.get("ipxe_script_url")
self.always_pxe = data.get("always_pxe", False)
self.storage = data.get("storage")
self.customdata = data.get("customdata", None)
self.customdata = data.get("customdata")
self.operating_system = OperatingSystem(data["operating_system"])
self.facility = data.get("facility")
self.metro = data.get("metro")
Expand Down
4 changes: 2 additions & 2 deletions packet/Vlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ def __init__(self, data, manager):
self.facility_code = data.get("facility_code")
self.metro_code = data.get("metro_code")
self.created_at = data.get("created_at")
facility = data.get("facility", None)
facility = data.get("facility")
self.facility = Facility(facility) if facility else None
metro = data.get("metro", None)
metro = data.get("metro")
self.metro = Metro(metro) if metro else None

try:
Expand Down
2 changes: 1 addition & 1 deletion packet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"""library to interact with the Packet API"""

__version__ = "1.43.1"
__version__ = "1.44.0"
__author__ = "Equinix Metal Engineers"
__author_email__ = "support@equinixmetal.com"
__license__ = "LGPL v3"
Expand Down
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ def get_version(rel_path):
setup(
name="packet-python",
version=get_version("packet/__init__.py"),
description="Packet API client",
description="Equinix Metal (Packet) API client",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/packethost/packet-python",
author="Equinix Metal Developers",
author_email="support@equinixmetal.com",
license="LGPL v3",
keywords="packet api client",
keywords="equinix metal packet api client infrastructure",
packages=["packet"],
install_requires="requests",
setup_requires=["pytest-runner"],
Expand All @@ -50,6 +50,7 @@ def get_version(rel_path):
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
Expand All @@ -58,5 +59,7 @@ def get_version(rel_path):
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)

0 comments on commit a2c8098

Please sign in to comment.