Mock Version: 2.16 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-fedex-python.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1646606530.601276/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'a440fdd1bfa049dea3acf3b8c8fa0e4c', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1646606530.601276/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-fedex-python.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1646352000 Wrote: /builddir/build/SRPMS/python-fedex-python-0.0.6-1.fc37.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-fedex-python.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1646606530.601276/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueraiseExc=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'dea47ac08f474a30b581d874246efbe1', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1646606530.601276/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-fedex-python.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1646352000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LjsZvw + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf fedex-python-0.0.6 + /usr/bin/gzip -dc /builddir/build/SOURCES/fedex-python-0.0.6.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd fedex-python-0.0.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.cLk6D6 + umask 022 + cd /builddir/build/BUILD + cd fedex-python-0.0.6 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -r Handling setuptools >= 40.8 from default build backend Requirement not satisfied: setuptools >= 40.8 Handling wheel from default build backend Requirement not satisfied: wheel Exiting dependency generation pass: build backend + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-fedex-python-0.0.6-1.fc37.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-fedex-python.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1646606530.601276/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueraiseExc=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '42f1f9a874d74e4f9ff0733ef9fad8d4', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1646606530.601276/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-fedex-python.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1646352000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.OGykHK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf fedex-python-0.0.6 + /usr/bin/gzip -dc /builddir/build/SOURCES/fedex-python-0.0.6.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd fedex-python-0.0.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.5f1GkH + umask 022 + cd /builddir/build/BUILD + cd fedex-python-0.0.6 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -r Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 59.6.0) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.37.0) /usr/lib/python3.10/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( /usr/lib64/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'description_content_type' warnings.warn(msg) HOOK STDOUT: # Fedex Python HOOK STDOUT: HOOK STDOUT: NOT official FedEx python library to use its web services. HOOK STDOUT: This library use [zeep library](https://github.com/mvantellingen/python-zeep) for do WSDL requests. HOOK STDOUT: HOOK STDOUT: ## Installation HOOK STDOUT: HOOK STDOUT: Use the package manager [pip](https://pip.pypa.io/en/stable/) to install fedex-python. HOOK STDOUT: HOOK STDOUT: ```bash HOOK STDOUT: pip install fedex-python HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ## Usage HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: import fedex-python as fedex HOOK STDOUT: HOOK STDOUT: client = fedex.Client( HOOK STDOUT: key, password, account_number, meter_number, HOOK STDOUT: localization=( HOOK STDOUT: fedex.components.auth.Localization.get( HOOK STDOUT: fedex.components.auth.Localization.SPANISH_LATINOAMERICAN HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: test_mode=True HOOK STDOUT: ) HOOK STDOUT: HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a Rate HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, rate_components HOOK STDOUT: HOOK STDOUT: response = client.rate.get_rates( HOOK STDOUT: rate_components.RequestedShipment( HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: preferred_currency=enums.CurrencyCodeEnum.US_DOLLAR, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=rate_components.RequestedPackageLineItem( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, ship_components HOOK STDOUT: HOOK STDOUT: response = self.client.ship.process_shipment( HOOK STDOUT: ship_components.RequestedShipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=common.RequestedPackageLineItemBase( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado 2', HOOK STDOUT: company_name='Costomit client', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v2@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='another street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: label_specification=ship_components.LabelSpecification( HOOK STDOUT: label_format_type=enums.LabelFormatTypeEnum.COMMON2D, HOOK STDOUT: label_stock_type=enums.LabelStockTypeEnum.PAPER_LETTER, HOOK STDOUT: label_printing_orientation= HOOK STDOUT: enums.LabelPrintingOrientationEnum.BOTTOM_EDGE_OF_TEXT_FIRST, HOOK STDOUT: image_type=enums.ImageTypeEnum.PDF HOOK STDOUT: ), HOOK STDOUT: package_count=1, HOOK STDOUT: total_weight=common.Weight( HOOK STDOUT: units=enums.WeightUnits.KG, value=20) HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: , 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums HOOK STDOUT: HOOK STDOUT: response = client.ship.delete_shipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: tracking_id=common.TrackingId( HOOK STDOUT: tracking_id_type=enums.TrackingIdTypeEnum.FEDEX, HOOK STDOUT: tracking_number='the track id number' HOOK STDOUT: ), HOOK STDOUT: deletion_control=enums.DeletionControlEnum.DELETE_ALL_PACKAGES, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Create a pickup HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = client.pickup.create_pickup( HOOK STDOUT: origin_detail=pickup_components.OriginDetail( HOOK STDOUT: buildin_part_description='reference building, HOOK STDOUT: package_location=enums.PackageLocationEnum.FRONT, HOOK STDOUT: building_part_code=enums.BuildingPartCodeEnum.BUILDING, HOOK STDOUT: ready_timestamp='2020-02-15T12:00:00', HOOK STDOUT: company_close_time='19:00:00', HOOK STDOUT: pickup_location=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: total_weight=common.Weight(units=enums.WeightUnits.KG, value=22), HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_count=1, HOOK STDOUT: country_relationship=enums.CountryRelationshipEnum.DOMESTIC, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a pickup HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums HOOK STDOUT: HOOK STDOUT: response = client.pickup.cancel_pickup( HOOK STDOUT: scheduled_date='2020-02-15T12:00:00', HOOK STDOUT: pickup_confirmation_number='1', HOOK STDOUT: location='branch office code given in pickup, HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Pickup availables HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = self.client.pickup.availability( HOOK STDOUT: pickup_components.Availability( HOOK STDOUT: pickup_address=address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ), HOOK STDOUT: pickup_request_type=enums.PickupRequestTypeEnum.FUTURE_DAY, HOOK STDOUT: dispatch_date='2020-02-15', HOOK STDOUT: package_ready_time='12:00:00', HOOK STDOUT: customer_close_time='19:00:00', HOOK STDOUT: carriers=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: number_of_business_days=3, HOOK STDOUT: shipment_attributes=pickup_components.ShipmentAttributes( HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Do a Tracking HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import track_components, enums HOOK STDOUT: response = client.track.track( HOOK STDOUT: selection_details=track_components.SelectionDetails( HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_identifier=track_components.PackageIdentifier( HOOK STDOUT: type=enums.PackageIdentifierType.TRACKING_NUMBER_OR_DOORTAG, HOOK STDOUT: value='yor track', HOOK STDOUT: account_number=clinet.account_number HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: processing_options=enums.ProcessingOptionsEnum.INCLUDE_DETAILED_SCANS, HOOK STDOUT: custom_id='Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: ## Contributing HOOK STDOUT: Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. HOOK STDOUT: HOOK STDOUT: Please make sure to update tests as appropriate. HOOK STDOUT: HOOK STDOUT: ## License HOOK STDOUT: [MIT](https://choosealicense.com/licenses/mit/) HOOK STDOUT: running egg_info HOOK STDOUT: writing fedex_python.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to fedex_python.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to fedex_python.egg-info/requires.txt HOOK STDOUT: writing top-level names to fedex_python.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'fedex_python.egg-info/SOURCES.txt' HOOK STDOUT: writing manifest file 'fedex_python.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.37.0) HOOK STDOUT: # Fedex Python HOOK STDOUT: HOOK STDOUT: NOT official FedEx python library to use its web services. HOOK STDOUT: This library use [zeep library](https://github.com/mvantellingen/python-zeep) for do WSDL requests. HOOK STDOUT: HOOK STDOUT: ## Installation HOOK STDOUT: HOOK STDOUT: Use the package manager [pip](https://pip.pypa.io/en/stable/) to install fedex-python. HOOK STDOUT: HOOK STDOUT: ```bash HOOK STDOUT: pip install fedex-python HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ## Usage HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: import fedex-python as fedex HOOK STDOUT: HOOK STDOUT: client = fedex.Client( HOOK STDOUT: key, password, account_number, meter_number, HOOK STDOUT: localization=( HOOK STDOUT: fedex.components.auth.Localization.get( HOOK STDOUT: fedex.components.auth.Localization.SPANISH_LATINOAMERICAN HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: test_mode=True HOOK STDOUT: ) HOOK STDOUT: HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a Rate HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, rate_components HOOK STDOUT: HOOK STDOUT: response = client.rate.get_rates( HOOK STDOUT: rate_components.RequestedShipment( HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: preferred_currency=enums.CurrencyCodeEnum.US_DOLLAR, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=rate_components.RequestedPackageLineItem( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, ship_components HOOK STDOUT: HOOK STDOUT: response = self.client.ship.process_shipment( HOOK STDOUT: ship_components.RequestedShipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=common.RequestedPackageLineItemBase( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado 2', HOOK STDOUT: company_name='Costomit client', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v2@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='another street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: label_specification=ship_components.LabelSpecification( HOOK STDOUT: label_format_type=enums.LabelFormatTypeEnum.COMMON2D, HOOK STDOUT: label_stock_type=enums.LabelStockTypeEnum.PAPER_LETTER, HOOK STDOUT: label_printing_orientation= HOOK STDOUT: enums.LabelPrintingOrientationEnum.BOTTOM_EDGE_OF_TEXT_FIRST, HOOK STDOUT: image_type=enums.ImageTypeEnum.PDF HOOK STDOUT: ), HOOK STDOUT: package_count=1, HOOK STDOUT: total_weight=common.Weight( HOOK STDOUT: units=enums.WeightUnits.KG, value=20) HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: , 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums HOOK STDOUT: HOOK STDOUT: response = client.ship.delete_shipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: tracking_id=common.TrackingId( HOOK STDOUT: tracking_id_type=enums.TrackingIdTypeEnum.FEDEX, HOOK STDOUT: tracking_number='the track id number' HOOK STDOUT: ), HOOK STDOUT: deletion_control=enums.DeletionControlEnum.DELETE_ALL_PACKAGES, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Create a pickup HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = client.pickup.create_pickup( HOOK STDOUT: origin_detail=pickup_components.OriginDetail( HOOK STDOUT: buildin_part_description='reference building, HOOK STDOUT: package_location=enums.PackageLocationEnum.FRONT, HOOK STDOUT: building_part_code=enums.BuildingPartCodeEnum.BUILDING, HOOK STDOUT: ready_timestamp='2020-02-15T12:00:00', HOOK STDOUT: company_close_time='19:00:00', HOOK STDOUT: pickup_location=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: total_weight=common.Weight(units=enums.WeightUnits.KG, value=22), HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_count=1, HOOK STDOUT: country_relationship=enums.CountryRelationshipEnum.DOMESTIC, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a pickup HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums HOOK STDOUT: HOOK STDOUT: response = client.pickup.cancel_pickup( HOOK STDOUT: scheduled_date='2020-02-15T12:00:00', HOOK STDOUT: pickup_confirmation_number='1', HOOK STDOUT: location='branch office code given in pickup, HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Pickup availables HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = self.client.pickup.availability( HOOK STDOUT: pickup_components.Availability( HOOK STDOUT: pickup_address=address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ), HOOK STDOUT: pickup_request_type=enums.PickupRequestTypeEnum.FUTURE_DAY, HOOK STDOUT: dispatch_date='2020-02-15', HOOK STDOUT: package_ready_time='12:00:00', HOOK STDOUT: customer_close_time='19:00:00', HOOK STDOUT: carriers=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: number_of_business_days=3, HOOK STDOUT: shipment_attributes=pickup_components.ShipmentAttributes( HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Do a Tracking HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import track_components, enums HOOK STDOUT: response = client.track.track( HOOK STDOUT: selection_details=track_components.SelectionDetails( HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_identifier=track_components.PackageIdentifier( HOOK STDOUT: type=enums.PackageIdentifierType.TRACKING_NUMBER_OR_DOORTAG, HOOK STDOUT: value='yor track', HOOK STDOUT: account_number=clinet.account_number HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: processing_options=enums.ProcessingOptionsEnum.INCLUDE_DETAILED_SCANS, HOOK STDOUT: custom_id='Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: ## Contributing HOOK STDOUT: Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. HOOK STDOUT: HOOK STDOUT: Please make sure to update tests as appropriate. HOOK STDOUT: HOOK STDOUT: ## License HOOK STDOUT: [MIT](https://choosealicense.com/licenses/mit/) HOOK STDOUT: running dist_info HOOK STDOUT: writing fedex_python.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to fedex_python.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to fedex_python.egg-info/requires.txt HOOK STDOUT: writing top-level names to fedex_python.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'fedex_python.egg-info/SOURCES.txt' HOOK STDOUT: writing manifest file 'fedex_python.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/fedex-python-0.0.6/fedex_python.dist-info' Handling zeep (>=3.4.0) from wheel metadata: Requires-Dist Requirement not satisfied: zeep (>=3.4.0) Handling pydantic (>=1.6.1) from wheel metadata: Requires-Dist Requirement not satisfied: pydantic (>=1.6.1) + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-fedex-python-0.0.6-1.fc37.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-fedex-python.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1646606530.601276/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueraiseExc=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ea8e098f6f474143a018f952c9efe17f', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1646606530.601276/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-fedex-python.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1646352000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nVfiJb + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf fedex-python-0.0.6 + /usr/bin/gzip -dc /builddir/build/SOURCES/fedex-python-0.0.6.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd fedex-python-0.0.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.0GVt6v + umask 022 + cd /builddir/build/BUILD + cd fedex-python-0.0.6 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -r Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 59.6.0) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.37.0) /usr/lib/python3.10/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( /usr/lib64/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'description_content_type' warnings.warn(msg) HOOK STDOUT: # Fedex Python HOOK STDOUT: HOOK STDOUT: NOT official FedEx python library to use its web services. HOOK STDOUT: This library use [zeep library](https://github.com/mvantellingen/python-zeep) for do WSDL requests. HOOK STDOUT: HOOK STDOUT: ## Installation HOOK STDOUT: HOOK STDOUT: Use the package manager [pip](https://pip.pypa.io/en/stable/) to install fedex-python. HOOK STDOUT: HOOK STDOUT: ```bash HOOK STDOUT: pip install fedex-python HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ## Usage HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: import fedex-python as fedex HOOK STDOUT: HOOK STDOUT: client = fedex.Client( HOOK STDOUT: key, password, account_number, meter_number, HOOK STDOUT: localization=( HOOK STDOUT: fedex.components.auth.Localization.get( HOOK STDOUT: fedex.components.auth.Localization.SPANISH_LATINOAMERICAN HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: test_mode=True HOOK STDOUT: ) HOOK STDOUT: HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a Rate HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, rate_components HOOK STDOUT: HOOK STDOUT: response = client.rate.get_rates( HOOK STDOUT: rate_components.RequestedShipment( HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: preferred_currency=enums.CurrencyCodeEnum.US_DOLLAR, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=rate_components.RequestedPackageLineItem( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, ship_components HOOK STDOUT: HOOK STDOUT: response = self.client.ship.process_shipment( HOOK STDOUT: ship_components.RequestedShipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=common.RequestedPackageLineItemBase( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado 2', HOOK STDOUT: company_name='Costomit client', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v2@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='another street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: label_specification=ship_components.LabelSpecification( HOOK STDOUT: label_format_type=enums.LabelFormatTypeEnum.COMMON2D, HOOK STDOUT: label_stock_type=enums.LabelStockTypeEnum.PAPER_LETTER, HOOK STDOUT: label_printing_orientation= HOOK STDOUT: enums.LabelPrintingOrientationEnum.BOTTOM_EDGE_OF_TEXT_FIRST, HOOK STDOUT: image_type=enums.ImageTypeEnum.PDF HOOK STDOUT: ), HOOK STDOUT: package_count=1, HOOK STDOUT: total_weight=common.Weight( HOOK STDOUT: units=enums.WeightUnits.KG, value=20) HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: , 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums HOOK STDOUT: HOOK STDOUT: response = client.ship.delete_shipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: tracking_id=common.TrackingId( HOOK STDOUT: tracking_id_type=enums.TrackingIdTypeEnum.FEDEX, HOOK STDOUT: tracking_number='the track id number' HOOK STDOUT: ), HOOK STDOUT: deletion_control=enums.DeletionControlEnum.DELETE_ALL_PACKAGES, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Create a pickup HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = client.pickup.create_pickup( HOOK STDOUT: origin_detail=pickup_components.OriginDetail( HOOK STDOUT: buildin_part_description='reference building, HOOK STDOUT: package_location=enums.PackageLocationEnum.FRONT, HOOK STDOUT: building_part_code=enums.BuildingPartCodeEnum.BUILDING, HOOK STDOUT: ready_timestamp='2020-02-15T12:00:00', HOOK STDOUT: company_close_time='19:00:00', HOOK STDOUT: pickup_location=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: total_weight=common.Weight(units=enums.WeightUnits.KG, value=22), HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_count=1, HOOK STDOUT: country_relationship=enums.CountryRelationshipEnum.DOMESTIC, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a pickup HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums HOOK STDOUT: HOOK STDOUT: response = client.pickup.cancel_pickup( HOOK STDOUT: scheduled_date='2020-02-15T12:00:00', HOOK STDOUT: pickup_confirmation_number='1', HOOK STDOUT: location='branch office code given in pickup, HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Pickup availables HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = self.client.pickup.availability( HOOK STDOUT: pickup_components.Availability( HOOK STDOUT: pickup_address=address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ), HOOK STDOUT: pickup_request_type=enums.PickupRequestTypeEnum.FUTURE_DAY, HOOK STDOUT: dispatch_date='2020-02-15', HOOK STDOUT: package_ready_time='12:00:00', HOOK STDOUT: customer_close_time='19:00:00', HOOK STDOUT: carriers=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: number_of_business_days=3, HOOK STDOUT: shipment_attributes=pickup_components.ShipmentAttributes( HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Do a Tracking HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import track_components, enums HOOK STDOUT: response = client.track.track( HOOK STDOUT: selection_details=track_components.SelectionDetails( HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_identifier=track_components.PackageIdentifier( HOOK STDOUT: type=enums.PackageIdentifierType.TRACKING_NUMBER_OR_DOORTAG, HOOK STDOUT: value='yor track', HOOK STDOUT: account_number=clinet.account_number HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: processing_options=enums.ProcessingOptionsEnum.INCLUDE_DETAILED_SCANS, HOOK STDOUT: custom_id='Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: ## Contributing HOOK STDOUT: Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. HOOK STDOUT: HOOK STDOUT: Please make sure to update tests as appropriate. HOOK STDOUT: HOOK STDOUT: ## License HOOK STDOUT: [MIT](https://choosealicense.com/licenses/mit/) HOOK STDOUT: running egg_info HOOK STDOUT: writing fedex_python.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to fedex_python.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to fedex_python.egg-info/requires.txt HOOK STDOUT: writing top-level names to fedex_python.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'fedex_python.egg-info/SOURCES.txt' HOOK STDOUT: writing manifest file 'fedex_python.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.37.0) HOOK STDOUT: # Fedex Python HOOK STDOUT: HOOK STDOUT: NOT official FedEx python library to use its web services. HOOK STDOUT: This library use [zeep library](https://github.com/mvantellingen/python-zeep) for do WSDL requests. HOOK STDOUT: HOOK STDOUT: ## Installation HOOK STDOUT: HOOK STDOUT: Use the package manager [pip](https://pip.pypa.io/en/stable/) to install fedex-python. HOOK STDOUT: HOOK STDOUT: ```bash HOOK STDOUT: pip install fedex-python HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ## Usage HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: import fedex-python as fedex HOOK STDOUT: HOOK STDOUT: client = fedex.Client( HOOK STDOUT: key, password, account_number, meter_number, HOOK STDOUT: localization=( HOOK STDOUT: fedex.components.auth.Localization.get( HOOK STDOUT: fedex.components.auth.Localization.SPANISH_LATINOAMERICAN HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: test_mode=True HOOK STDOUT: ) HOOK STDOUT: HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a Rate HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, rate_components HOOK STDOUT: HOOK STDOUT: response = client.rate.get_rates( HOOK STDOUT: rate_components.RequestedShipment( HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: preferred_currency=enums.CurrencyCodeEnum.US_DOLLAR, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=rate_components.RequestedPackageLineItem( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, ship_components HOOK STDOUT: HOOK STDOUT: response = self.client.ship.process_shipment( HOOK STDOUT: ship_components.RequestedShipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=common.RequestedPackageLineItemBase( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado 2', HOOK STDOUT: company_name='Costomit client', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v2@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='another street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: label_specification=ship_components.LabelSpecification( HOOK STDOUT: label_format_type=enums.LabelFormatTypeEnum.COMMON2D, HOOK STDOUT: label_stock_type=enums.LabelStockTypeEnum.PAPER_LETTER, HOOK STDOUT: label_printing_orientation= HOOK STDOUT: enums.LabelPrintingOrientationEnum.BOTTOM_EDGE_OF_TEXT_FIRST, HOOK STDOUT: image_type=enums.ImageTypeEnum.PDF HOOK STDOUT: ), HOOK STDOUT: package_count=1, HOOK STDOUT: total_weight=common.Weight( HOOK STDOUT: units=enums.WeightUnits.KG, value=20) HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: , 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums HOOK STDOUT: HOOK STDOUT: response = client.ship.delete_shipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: tracking_id=common.TrackingId( HOOK STDOUT: tracking_id_type=enums.TrackingIdTypeEnum.FEDEX, HOOK STDOUT: tracking_number='the track id number' HOOK STDOUT: ), HOOK STDOUT: deletion_control=enums.DeletionControlEnum.DELETE_ALL_PACKAGES, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Create a pickup HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = client.pickup.create_pickup( HOOK STDOUT: origin_detail=pickup_components.OriginDetail( HOOK STDOUT: buildin_part_description='reference building, HOOK STDOUT: package_location=enums.PackageLocationEnum.FRONT, HOOK STDOUT: building_part_code=enums.BuildingPartCodeEnum.BUILDING, HOOK STDOUT: ready_timestamp='2020-02-15T12:00:00', HOOK STDOUT: company_close_time='19:00:00', HOOK STDOUT: pickup_location=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: total_weight=common.Weight(units=enums.WeightUnits.KG, value=22), HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_count=1, HOOK STDOUT: country_relationship=enums.CountryRelationshipEnum.DOMESTIC, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a pickup HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums HOOK STDOUT: HOOK STDOUT: response = client.pickup.cancel_pickup( HOOK STDOUT: scheduled_date='2020-02-15T12:00:00', HOOK STDOUT: pickup_confirmation_number='1', HOOK STDOUT: location='branch office code given in pickup, HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Pickup availables HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = self.client.pickup.availability( HOOK STDOUT: pickup_components.Availability( HOOK STDOUT: pickup_address=address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ), HOOK STDOUT: pickup_request_type=enums.PickupRequestTypeEnum.FUTURE_DAY, HOOK STDOUT: dispatch_date='2020-02-15', HOOK STDOUT: package_ready_time='12:00:00', HOOK STDOUT: customer_close_time='19:00:00', HOOK STDOUT: carriers=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: number_of_business_days=3, HOOK STDOUT: shipment_attributes=pickup_components.ShipmentAttributes( HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Do a Tracking HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import track_components, enums HOOK STDOUT: response = client.track.track( HOOK STDOUT: selection_details=track_components.SelectionDetails( HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_identifier=track_components.PackageIdentifier( HOOK STDOUT: type=enums.PackageIdentifierType.TRACKING_NUMBER_OR_DOORTAG, HOOK STDOUT: value='yor track', HOOK STDOUT: account_number=clinet.account_number HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: processing_options=enums.ProcessingOptionsEnum.INCLUDE_DETAILED_SCANS, HOOK STDOUT: custom_id='Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: ## Contributing HOOK STDOUT: Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. HOOK STDOUT: HOOK STDOUT: Please make sure to update tests as appropriate. HOOK STDOUT: HOOK STDOUT: ## License HOOK STDOUT: [MIT](https://choosealicense.com/licenses/mit/) HOOK STDOUT: running dist_info HOOK STDOUT: writing fedex_python.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to fedex_python.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to fedex_python.egg-info/requires.txt HOOK STDOUT: writing top-level names to fedex_python.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'fedex_python.egg-info/SOURCES.txt' HOOK STDOUT: writing manifest file 'fedex_python.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/fedex-python-0.0.6/fedex_python.dist-info' Handling zeep (>=3.4.0) from wheel metadata: Requires-Dist Requirement satisfied: zeep (>=3.4.0) (installed: zeep 4.1.0) Handling pydantic (>=1.6.1) from wheel metadata: Requires-Dist Requirement satisfied: pydantic (>=1.6.1) (installed: pydantic 1.9.0) + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-fedex-python-0.0.6-1.fc37.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --target x86_64 --nodeps /builddir/build/SPECS/python-fedex-python.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1646606530.601276/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'b498e8a604de41b19004c8cdbe5226fe', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1646606530.601276/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.gaefcloz:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --target x86_64 --nodeps /builddir/build/SPECS/python-fedex-python.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1646352000 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.w3Khxr + umask 022 + cd /builddir/build/BUILD + cd fedex-python-0.0.6 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv fedex_python.dist-info/ removed 'fedex_python.dist-info/METADATA' removed 'fedex_python.dist-info/top_level.txt' removed directory 'fedex_python.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -r Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 59.6.0) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.37.0) /usr/lib/python3.10/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( /usr/lib64/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'description_content_type' warnings.warn(msg) HOOK STDOUT: # Fedex Python HOOK STDOUT: HOOK STDOUT: NOT official FedEx python library to use its web services. HOOK STDOUT: This library use [zeep library](https://github.com/mvantellingen/python-zeep) for do WSDL requests. HOOK STDOUT: HOOK STDOUT: ## Installation HOOK STDOUT: HOOK STDOUT: Use the package manager [pip](https://pip.pypa.io/en/stable/) to install fedex-python. HOOK STDOUT: HOOK STDOUT: ```bash HOOK STDOUT: pip install fedex-python HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ## Usage HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: import fedex-python as fedex HOOK STDOUT: HOOK STDOUT: client = fedex.Client( HOOK STDOUT: key, password, account_number, meter_number, HOOK STDOUT: localization=( HOOK STDOUT: fedex.components.auth.Localization.get( HOOK STDOUT: fedex.components.auth.Localization.SPANISH_LATINOAMERICAN HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: test_mode=True HOOK STDOUT: ) HOOK STDOUT: HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a Rate HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, rate_components HOOK STDOUT: HOOK STDOUT: response = client.rate.get_rates( HOOK STDOUT: rate_components.RequestedShipment( HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: preferred_currency=enums.CurrencyCodeEnum.US_DOLLAR, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=rate_components.RequestedPackageLineItem( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, ship_components HOOK STDOUT: HOOK STDOUT: response = self.client.ship.process_shipment( HOOK STDOUT: ship_components.RequestedShipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=common.RequestedPackageLineItemBase( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado 2', HOOK STDOUT: company_name='Costomit client', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v2@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='another street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: label_specification=ship_components.LabelSpecification( HOOK STDOUT: label_format_type=enums.LabelFormatTypeEnum.COMMON2D, HOOK STDOUT: label_stock_type=enums.LabelStockTypeEnum.PAPER_LETTER, HOOK STDOUT: label_printing_orientation= HOOK STDOUT: enums.LabelPrintingOrientationEnum.BOTTOM_EDGE_OF_TEXT_FIRST, HOOK STDOUT: image_type=enums.ImageTypeEnum.PDF HOOK STDOUT: ), HOOK STDOUT: package_count=1, HOOK STDOUT: total_weight=common.Weight( HOOK STDOUT: units=enums.WeightUnits.KG, value=20) HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: , 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums HOOK STDOUT: HOOK STDOUT: response = client.ship.delete_shipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: tracking_id=common.TrackingId( HOOK STDOUT: tracking_id_type=enums.TrackingIdTypeEnum.FEDEX, HOOK STDOUT: tracking_number='the track id number' HOOK STDOUT: ), HOOK STDOUT: deletion_control=enums.DeletionControlEnum.DELETE_ALL_PACKAGES, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Create a pickup HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = client.pickup.create_pickup( HOOK STDOUT: origin_detail=pickup_components.OriginDetail( HOOK STDOUT: buildin_part_description='reference building, HOOK STDOUT: package_location=enums.PackageLocationEnum.FRONT, HOOK STDOUT: building_part_code=enums.BuildingPartCodeEnum.BUILDING, HOOK STDOUT: ready_timestamp='2020-02-15T12:00:00', HOOK STDOUT: company_close_time='19:00:00', HOOK STDOUT: pickup_location=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: total_weight=common.Weight(units=enums.WeightUnits.KG, value=22), HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_count=1, HOOK STDOUT: country_relationship=enums.CountryRelationshipEnum.DOMESTIC, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a pickup HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums HOOK STDOUT: HOOK STDOUT: response = client.pickup.cancel_pickup( HOOK STDOUT: scheduled_date='2020-02-15T12:00:00', HOOK STDOUT: pickup_confirmation_number='1', HOOK STDOUT: location='branch office code given in pickup, HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Pickup availables HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = self.client.pickup.availability( HOOK STDOUT: pickup_components.Availability( HOOK STDOUT: pickup_address=address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ), HOOK STDOUT: pickup_request_type=enums.PickupRequestTypeEnum.FUTURE_DAY, HOOK STDOUT: dispatch_date='2020-02-15', HOOK STDOUT: package_ready_time='12:00:00', HOOK STDOUT: customer_close_time='19:00:00', HOOK STDOUT: carriers=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: number_of_business_days=3, HOOK STDOUT: shipment_attributes=pickup_components.ShipmentAttributes( HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Do a Tracking HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import track_components, enums HOOK STDOUT: response = client.track.track( HOOK STDOUT: selection_details=track_components.SelectionDetails( HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_identifier=track_components.PackageIdentifier( HOOK STDOUT: type=enums.PackageIdentifierType.TRACKING_NUMBER_OR_DOORTAG, HOOK STDOUT: value='yor track', HOOK STDOUT: account_number=clinet.account_number HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: processing_options=enums.ProcessingOptionsEnum.INCLUDE_DETAILED_SCANS, HOOK STDOUT: custom_id='Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: ## Contributing HOOK STDOUT: Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. HOOK STDOUT: HOOK STDOUT: Please make sure to update tests as appropriate. HOOK STDOUT: HOOK STDOUT: ## License HOOK STDOUT: [MIT](https://choosealicense.com/licenses/mit/) HOOK STDOUT: running egg_info HOOK STDOUT: creating fedex_python.egg-info HOOK STDOUT: writing fedex_python.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to fedex_python.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to fedex_python.egg-info/requires.txt HOOK STDOUT: writing top-level names to fedex_python.egg-info/top_level.txt HOOK STDOUT: writing manifest file 'fedex_python.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest file 'fedex_python.egg-info/SOURCES.txt' HOOK STDOUT: writing manifest file 'fedex_python.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.37.0) HOOK STDOUT: # Fedex Python HOOK STDOUT: HOOK STDOUT: NOT official FedEx python library to use its web services. HOOK STDOUT: This library use [zeep library](https://github.com/mvantellingen/python-zeep) for do WSDL requests. HOOK STDOUT: HOOK STDOUT: ## Installation HOOK STDOUT: HOOK STDOUT: Use the package manager [pip](https://pip.pypa.io/en/stable/) to install fedex-python. HOOK STDOUT: HOOK STDOUT: ```bash HOOK STDOUT: pip install fedex-python HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ## Usage HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: import fedex-python as fedex HOOK STDOUT: HOOK STDOUT: client = fedex.Client( HOOK STDOUT: key, password, account_number, meter_number, HOOK STDOUT: localization=( HOOK STDOUT: fedex.components.auth.Localization.get( HOOK STDOUT: fedex.components.auth.Localization.SPANISH_LATINOAMERICAN HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: test_mode=True HOOK STDOUT: ) HOOK STDOUT: HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a Rate HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, rate_components HOOK STDOUT: HOOK STDOUT: response = client.rate.get_rates( HOOK STDOUT: rate_components.RequestedShipment( HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: preferred_currency=enums.CurrencyCodeEnum.US_DOLLAR, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=rate_components.RequestedPackageLineItem( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=None, HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Make a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, common, ship_components HOOK STDOUT: HOOK STDOUT: response = self.client.ship.process_shipment( HOOK STDOUT: ship_components.RequestedShipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING, HOOK STDOUT: rate_request_types=enums.RateRequestTypeEnum.PREFERRED, HOOK STDOUT: shipping_charges_payment=common.ShippingChargesPayment( HOOK STDOUT: payment_type=enums.PaymentTypeEnum.SENDER, HOOK STDOUT: payor=common.Payor( HOOK STDOUT: responsible_party=common.ContactAddress( HOOK STDOUT: account_number=client.account_number HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: requested_package_line_items=common.RequestedPackageLineItemBase( HOOK STDOUT: weight=common.Weight(units=enums.WeightUnits.KG,value=20), HOOK STDOUT: dimensions=common.Dimensions( HOOK STDOUT: length=22, height=22,width=22, units=enums.LinearUnits.CM HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: shipper=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: recipient=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado 2', HOOK STDOUT: company_name='Costomit client', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v2@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='15530', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='another street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: label_specification=ship_components.LabelSpecification( HOOK STDOUT: label_format_type=enums.LabelFormatTypeEnum.COMMON2D, HOOK STDOUT: label_stock_type=enums.LabelStockTypeEnum.PAPER_LETTER, HOOK STDOUT: label_printing_orientation= HOOK STDOUT: enums.LabelPrintingOrientationEnum.BOTTOM_EDGE_OF_TEXT_FIRST, HOOK STDOUT: image_type=enums.ImageTypeEnum.PDF HOOK STDOUT: ), HOOK STDOUT: package_count=1, HOOK STDOUT: total_weight=common.Weight( HOOK STDOUT: units=enums.WeightUnits.KG, value=20) HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: , 'Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a ship HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums HOOK STDOUT: HOOK STDOUT: response = client.ship.delete_shipment( HOOK STDOUT: ship_timestamp='2020-02-15T12:00:00', HOOK STDOUT: tracking_id=common.TrackingId( HOOK STDOUT: tracking_id_type=enums.TrackingIdTypeEnum.FEDEX, HOOK STDOUT: tracking_number='the track id number' HOOK STDOUT: ), HOOK STDOUT: deletion_control=enums.DeletionControlEnum.DELETE_ALL_PACKAGES, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Create a pickup HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import common, enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = client.pickup.create_pickup( HOOK STDOUT: origin_detail=pickup_components.OriginDetail( HOOK STDOUT: buildin_part_description='reference building, HOOK STDOUT: package_location=enums.PackageLocationEnum.FRONT, HOOK STDOUT: building_part_code=enums.BuildingPartCodeEnum.BUILDING, HOOK STDOUT: ready_timestamp='2020-02-15T12:00:00', HOOK STDOUT: company_close_time='19:00:00', HOOK STDOUT: pickup_location=common.ContactAddress( HOOK STDOUT: contact=common.Contact( HOOK STDOUT: contact_id='Custom id', HOOK STDOUT: person_name='Sergio Alvarado', HOOK STDOUT: company_name='Costomit', HOOK STDOUT: phone_number='55523423324', HOOK STDOUT: eMail_address='sergioal18v@gmail.com' HOOK STDOUT: ), HOOK STDOUT: address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ) HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: total_weight=common.Weight(units=enums.WeightUnits.KG, value=22), HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_count=1, HOOK STDOUT: country_relationship=enums.CountryRelationshipEnum.DOMESTIC, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Cancel a pickup HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums HOOK STDOUT: HOOK STDOUT: response = client.pickup.cancel_pickup( HOOK STDOUT: scheduled_date='2020-02-15T12:00:00', HOOK STDOUT: pickup_confirmation_number='1', HOOK STDOUT: location='branch office code given in pickup, HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: custom_id='Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Pickup availables HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import enums, pickup_components HOOK STDOUT: HOOK STDOUT: response = self.client.pickup.availability( HOOK STDOUT: pickup_components.Availability( HOOK STDOUT: pickup_address=address=common.Address( HOOK STDOUT: postal_code='06040', HOOK STDOUT: country_code='MX', HOOK STDOUT: street_lines='complete street 209', HOOK STDOUT: city='Mexico', HOOK STDOUT: ), HOOK STDOUT: pickup_request_type=enums.PickupRequestTypeEnum.FUTURE_DAY, HOOK STDOUT: dispatch_date='2020-02-15', HOOK STDOUT: package_ready_time='12:00:00', HOOK STDOUT: customer_close_time='19:00:00', HOOK STDOUT: carriers=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: number_of_business_days=3, HOOK STDOUT: shipment_attributes=pickup_components.ShipmentAttributes( HOOK STDOUT: service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, HOOK STDOUT: packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING HOOK STDOUT: ) HOOK STDOUT: ), 'Custom id to send FedEx service' HOOK STDOUT: ) HOOK STDOUT: ``` HOOK STDOUT: HOOK STDOUT: ### Do a Tracking HOOK STDOUT: HOOK STDOUT: ```python HOOK STDOUT: from fedex_python.components import track_components, enums HOOK STDOUT: response = client.track.track( HOOK STDOUT: selection_details=track_components.SelectionDetails( HOOK STDOUT: carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, HOOK STDOUT: package_identifier=track_components.PackageIdentifier( HOOK STDOUT: type=enums.PackageIdentifierType.TRACKING_NUMBER_OR_DOORTAG, HOOK STDOUT: value='yor track', HOOK STDOUT: account_number=clinet.account_number HOOK STDOUT: ) HOOK STDOUT: ), HOOK STDOUT: processing_options=enums.ProcessingOptionsEnum.INCLUDE_DETAILED_SCANS, HOOK STDOUT: custom_id='Custom id to send FedEx service') HOOK STDOUT: ``` HOOK STDOUT: ## Contributing HOOK STDOUT: Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. HOOK STDOUT: HOOK STDOUT: Please make sure to update tests as appropriate. HOOK STDOUT: HOOK STDOUT: ## License HOOK STDOUT: [MIT](https://choosealicense.com/licenses/mit/) HOOK STDOUT: running dist_info HOOK STDOUT: writing fedex_python.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to fedex_python.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to fedex_python.egg-info/requires.txt HOOK STDOUT: writing top-level names to fedex_python.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'fedex_python.egg-info/SOURCES.txt' HOOK STDOUT: writing manifest file 'fedex_python.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/fedex-python-0.0.6/fedex_python.dist-info' Handling zeep (>=3.4.0) from wheel metadata: Requires-Dist Requirement satisfied: zeep (>=3.4.0) (installed: zeep 4.1.0) Handling pydantic (>=1.6.1) from wheel metadata: Requires-Dist Requirement satisfied: pydantic (>=1.6.1) (installed: pydantic 1.9.0) + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.cEMuYR + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/fedex-python-0.0.6/.package_note-python-fedex-python-0.0.6-1.fc37.x86_64.ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' -f /usr/lib/rpm/generate-rpm-note.sh ']' + /usr/lib/rpm/generate-rpm-note.sh python-fedex-python 0.0.6-1.fc37 x86_64 + cd fedex-python-0.0.6 + mkdir -p /builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/fedex-python-0.0.6/.package_note-python-fedex-python-0.0.6-1.fc37.x86_64.ld' + TMPDIR=/builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir + /usr/bin/python3 -m pip wheel --wheel-dir /builddir/build/BUILD/fedex-python-0.0.6/pyproject-wheeldir --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . Processing /builddir/build/BUILD/fedex-python-0.0.6 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) # Fedex Python NOT official FedEx python library to use its web services. This library use [zeep library](https://github.com/mvantellingen/python-zeep) for do WSDL requests. ## Installation Use the package manager [pip](https://pip.pypa.io/en/stable/) to install fedex-python. ```bash pip install fedex-python ``` ## Usage ```python import fedex-python as fedex client = fedex.Client( key, password, account_number, meter_number, localization=( fedex.components.auth.Localization.get( fedex.components.auth.Localization.SPANISH_LATINOAMERICAN ) ), test_mode=True ) ``` ### Make a Rate ```python from fedex_python.components import enums, common, rate_components response = client.rate.get_rates( rate_components.RequestedShipment( dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, rate_request_types=enums.RateRequestTypeEnum.PREFERRED, preferred_currency=enums.CurrencyCodeEnum.US_DOLLAR, shipping_charges_payment=common.ShippingChargesPayment( payment_type=enums.PaymentTypeEnum.SENDER, payor=common.Payor( responsible_party=common.ContactAddress( account_number=client.account_number ) ) ), requested_package_line_items=rate_components.RequestedPackageLineItem( weight=common.Weight(units=enums.WeightUnits.KG,value=20), dimensions=common.Dimensions( length=22, height=22,width=22, units=enums.LinearUnits.CM ) ), shipper=common.ContactAddress( contact=None, address=common.Address( postal_code='06040', country_code='MX', ) ) recipient=common.ContactAddress( contact=None, address=common.Address( postal_code='15530', country_code='MX', ) ) ), 'Custom id to send FedEx service') ``` ### Make a ship ```python from fedex_python.components import enums, common, ship_components response = self.client.ship.process_shipment( ship_components.RequestedShipment( ship_timestamp='2020-02-15T12:00:00', dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING, rate_request_types=enums.RateRequestTypeEnum.PREFERRED, shipping_charges_payment=common.ShippingChargesPayment( payment_type=enums.PaymentTypeEnum.SENDER, payor=common.Payor( responsible_party=common.ContactAddress( account_number=client.account_number ) ) ), requested_package_line_items=common.RequestedPackageLineItemBase( weight=common.Weight(units=enums.WeightUnits.KG,value=20), dimensions=common.Dimensions( length=22, height=22,width=22, units=enums.LinearUnits.CM ) ), shipper=common.ContactAddress( contact=common.Contact( contact_id='Custom id', person_name='Sergio Alvarado', company_name='Costomit', phone_number='55523423324', eMail_address='sergioal18v@gmail.com' ), address=common.Address( postal_code='06040', country_code='MX', street_lines='complete street 209', city='Mexico', ) ) recipient=common.ContactAddress( contact=common.Contact( contact_id='Custom id', person_name='Sergio Alvarado 2', company_name='Costomit client', phone_number='55523423324', eMail_address='sergioal18v2@gmail.com' ), address=common.Address( postal_code='15530', country_code='MX', street_lines='another street 209', city='Mexico', ) ) label_specification=ship_components.LabelSpecification( label_format_type=enums.LabelFormatTypeEnum.COMMON2D, label_stock_type=enums.LabelStockTypeEnum.PAPER_LETTER, label_printing_orientation= enums.LabelPrintingOrientationEnum.BOTTOM_EDGE_OF_TEXT_FIRST, image_type=enums.ImageTypeEnum.PDF ), package_count=1, total_weight=common.Weight( units=enums.WeightUnits.KG, value=20) ) ) , 'Custom id to send FedEx service') ``` ### Cancel a ship ```python from fedex_python.components import common, enums response = client.ship.delete_shipment( ship_timestamp='2020-02-15T12:00:00', tracking_id=common.TrackingId( tracking_id_type=enums.TrackingIdTypeEnum.FEDEX, tracking_number='the track id number' ), deletion_control=enums.DeletionControlEnum.DELETE_ALL_PACKAGES, custom_id='Custom id to send FedEx service' ) ``` ### Create a pickup ```python from fedex_python.components import common, enums, pickup_components response = client.pickup.create_pickup( origin_detail=pickup_components.OriginDetail( buildin_part_description='reference building, package_location=enums.PackageLocationEnum.FRONT, building_part_code=enums.BuildingPartCodeEnum.BUILDING, ready_timestamp='2020-02-15T12:00:00', company_close_time='19:00:00', pickup_location=common.ContactAddress( contact=common.Contact( contact_id='Custom id', person_name='Sergio Alvarado', company_name='Costomit', phone_number='55523423324', eMail_address='sergioal18v@gmail.com' ), address=common.Address( postal_code='06040', country_code='MX', street_lines='complete street 209', city='Mexico', ) ) ), total_weight=common.Weight(units=enums.WeightUnits.KG, value=22), carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, package_count=1, country_relationship=enums.CountryRelationshipEnum.DOMESTIC, custom_id='Custom id to send FedEx service' ) ``` ### Cancel a pickup ```python from fedex_python.components import enums response = client.pickup.cancel_pickup( scheduled_date='2020-02-15T12:00:00', pickup_confirmation_number='1', location='branch office code given in pickup, carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, custom_id='Custom id to send FedEx service' ) ``` ### Pickup availables ```python from fedex_python.components import enums, pickup_components response = self.client.pickup.availability( pickup_components.Availability( pickup_address=address=common.Address( postal_code='06040', country_code='MX', street_lines='complete street 209', city='Mexico', ), pickup_request_type=enums.PickupRequestTypeEnum.FUTURE_DAY, dispatch_date='2020-02-15', package_ready_time='12:00:00', customer_close_time='19:00:00', carriers=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, number_of_business_days=3, shipment_attributes=pickup_components.ShipmentAttributes( service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING ) ), 'Custom id to send FedEx service' ) ``` ### Do a Tracking ```python from fedex_python.components import track_components, enums response = client.track.track( selection_details=track_components.SelectionDetails( carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, package_identifier=track_components.PackageIdentifier( type=enums.PackageIdentifierType.TRACKING_NUMBER_OR_DOORTAG, value='yor track', account_number=clinet.account_number ) ), processing_options=enums.ProcessingOptionsEnum.INCLUDE_DETAILED_SCANS, custom_id='Custom id to send FedEx service') ``` ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. ## License [MIT](https://choosealicense.com/licenses/mit/)/usr/lib64/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'description_content_type' warnings.warn(msg) /usr/lib/python3.10/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running dist_info creating /builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir/pip-modern-metadata-lywo4_k4/fedex_python.egg-info writing /builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir/pip-modern-metadata-lywo4_k4/fedex_python.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir/pip-modern-metadata-lywo4_k4/fedex_python.egg-info/dependency_links.txt writing requirements to /builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir/pip-modern-metadata-lywo4_k4/fedex_python.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir/pip-modern-metadata-lywo4_k4/fedex_python.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir/pip-modern-metadata-lywo4_k4/fedex_python.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir/pip-modern-metadata-lywo4_k4/fedex_python.egg-info/SOURCES.txt' writing manifest file '/builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir/pip-modern-metadata-lywo4_k4/fedex_python.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir/pip-modern-metadata-lywo4_k4/fedex_python.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: fedex-python Building wheel for fedex-python (pyproject.toml): started Running command Building wheel for fedex-python (pyproject.toml) # Fedex Python NOT official FedEx python library to use its web services. This library use [zeep library](https://github.com/mvantellingen/python-zeep) for do WSDL requests. ## Installation Use the package manager [pip](https://pip.pypa.io/en/stable/) to install fedex-python. ```bash pip install fedex-python ``` ## Usage ```python import fedex-python as fedex client = fedex.Client( key, password, account_number, meter_number, localization=( fedex.components.auth.Localization.get( fedex.components.auth.Localization.SPANISH_LATINOAMERICAN ) ), test_mode=True ) ``` ### Make a Rate ```python from fedex_python.components import enums, common, rate_components response = client.rate.get_rates( rate_components.RequestedShipment( dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, rate_request_types=enums.RateRequestTypeEnum.PREFERRED, preferred_currency=enums.CurrencyCodeEnum.US_DOLLAR, shipping_charges_payment=common.ShippingChargesPayment( payment_type=enums.PaymentTypeEnum.SENDER, payor=common.Payor( responsible_party=common.ContactAddress( account_number=client.account_number ) ) ), requested_package_line_items=rate_components.RequestedPackageLineItem( weight=common.Weight(units=enums.WeightUnits.KG,value=20), dimensions=common.Dimensions( length=22, height=22,width=22, units=enums.LinearUnits.CM ) ), shipper=common.ContactAddress( contact=None, address=common.Address( postal_code='06040', country_code='MX', ) ) recipient=common.ContactAddress( contact=None, address=common.Address( postal_code='15530', country_code='MX', ) ) ), 'Custom id to send FedEx service') ``` ### Make a ship ```python from fedex_python.components import enums, common, ship_components response = self.client.ship.process_shipment( ship_components.RequestedShipment( ship_timestamp='2020-02-15T12:00:00', dropoff_type=enums.DropoffTypeEnum.REGULAR_PICKUP, service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING, rate_request_types=enums.RateRequestTypeEnum.PREFERRED, shipping_charges_payment=common.ShippingChargesPayment( payment_type=enums.PaymentTypeEnum.SENDER, payor=common.Payor( responsible_party=common.ContactAddress( account_number=client.account_number ) ) ), requested_package_line_items=common.RequestedPackageLineItemBase( weight=common.Weight(units=enums.WeightUnits.KG,value=20), dimensions=common.Dimensions( length=22, height=22,width=22, units=enums.LinearUnits.CM ) ), shipper=common.ContactAddress( contact=common.Contact( contact_id='Custom id', person_name='Sergio Alvarado', company_name='Costomit', phone_number='55523423324', eMail_address='sergioal18v@gmail.com' ), address=common.Address( postal_code='06040', country_code='MX', street_lines='complete street 209', city='Mexico', ) ) recipient=common.ContactAddress( contact=common.Contact( contact_id='Custom id', person_name='Sergio Alvarado 2', company_name='Costomit client', phone_number='55523423324', eMail_address='sergioal18v2@gmail.com' ), address=common.Address( postal_code='15530', country_code='MX', street_lines='another street 209', city='Mexico', ) ) label_specification=ship_components.LabelSpecification( label_format_type=enums.LabelFormatTypeEnum.COMMON2D, label_stock_type=enums.LabelStockTypeEnum.PAPER_LETTER, label_printing_orientation= enums.LabelPrintingOrientationEnum.BOTTOM_EDGE_OF_TEXT_FIRST, image_type=enums.ImageTypeEnum.PDF ), package_count=1, total_weight=common.Weight( units=enums.WeightUnits.KG, value=20) ) ) , 'Custom id to send FedEx service') ``` ### Cancel a ship ```python from fedex_python.components import common, enums response = client.ship.delete_shipment( ship_timestamp='2020-02-15T12:00:00', tracking_id=common.TrackingId( tracking_id_type=enums.TrackingIdTypeEnum.FEDEX, tracking_number='the track id number' ), deletion_control=enums.DeletionControlEnum.DELETE_ALL_PACKAGES, custom_id='Custom id to send FedEx service' ) ``` ### Create a pickup ```python from fedex_python.components import common, enums, pickup_components response = client.pickup.create_pickup( origin_detail=pickup_components.OriginDetail( buildin_part_description='reference building, package_location=enums.PackageLocationEnum.FRONT, building_part_code=enums.BuildingPartCodeEnum.BUILDING, ready_timestamp='2020-02-15T12:00:00', company_close_time='19:00:00', pickup_location=common.ContactAddress( contact=common.Contact( contact_id='Custom id', person_name='Sergio Alvarado', company_name='Costomit', phone_number='55523423324', eMail_address='sergioal18v@gmail.com' ), address=common.Address( postal_code='06040', country_code='MX', street_lines='complete street 209', city='Mexico', ) ) ), total_weight=common.Weight(units=enums.WeightUnits.KG, value=22), carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, package_count=1, country_relationship=enums.CountryRelationshipEnum.DOMESTIC, custom_id='Custom id to send FedEx service' ) ``` ### Cancel a pickup ```python from fedex_python.components import enums response = client.pickup.cancel_pickup( scheduled_date='2020-02-15T12:00:00', pickup_confirmation_number='1', location='branch office code given in pickup, carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, custom_id='Custom id to send FedEx service' ) ``` ### Pickup availables ```python from fedex_python.components import enums, pickup_components response = self.client.pickup.availability( pickup_components.Availability( pickup_address=address=common.Address( postal_code='06040', country_code='MX', street_lines='complete street 209', city='Mexico', ), pickup_request_type=enums.PickupRequestTypeEnum.FUTURE_DAY, dispatch_date='2020-02-15', package_ready_time='12:00:00', customer_close_time='19:00:00', carriers=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, number_of_business_days=3, shipment_attributes=pickup_components.ShipmentAttributes( service_type=enums.ShipServiceTypeEnum.STANDARD_OVERNIGHT, packaging_type=enums.PackagingTypeEnum.YOUR_PACKAGING ) ), 'Custom id to send FedEx service' ) ``` ### Do a Tracking ```python from fedex_python.components import track_components, enums response = client.track.track( selection_details=track_components.SelectionDetails( carrier_code=enums.CarrierCodeTypeEnum.FEDEX_EXPRESS, package_identifier=track_components.PackageIdentifier( type=enums.PackageIdentifierType.TRACKING_NUMBER_OR_DOORTAG, value='yor track', account_number=clinet.account_number ) ), processing_options=enums.ProcessingOptionsEnum.INCLUDE_DETAILED_SCANS, custom_id='Custom id to send FedEx service') ``` ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. ## License [MIT](https://choosealicense.com/licenses/mit/)/usr/lib64/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'description_content_type' warnings.warn(msg) /usr/lib/python3.10/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/fedex_python copying fedex_python/client.py -> build/lib/fedex_python copying fedex_python/base.py -> build/lib/fedex_python copying fedex_python/__init__.py -> build/lib/fedex_python creating build/lib/fedex_python/services copying fedex_python/services/track.py -> build/lib/fedex_python/services copying fedex_python/services/ship.py -> build/lib/fedex_python/services copying fedex_python/services/rate.py -> build/lib/fedex_python/services copying fedex_python/services/pickup.py -> build/lib/fedex_python/services copying fedex_python/services/__init__.py -> build/lib/fedex_python/services creating build/lib/fedex_python/components copying fedex_python/components/track_components.py -> build/lib/fedex_python/components copying fedex_python/components/ship_components.py -> build/lib/fedex_python/components copying fedex_python/components/rate_components.py -> build/lib/fedex_python/components copying fedex_python/components/pickup_components.py -> build/lib/fedex_python/components copying fedex_python/components/enums.py -> build/lib/fedex_python/components copying fedex_python/components/common.py -> build/lib/fedex_python/components copying fedex_python/components/base.py -> build/lib/fedex_python/components copying fedex_python/components/authentication.py -> build/lib/fedex_python/components copying fedex_python/components/__init__.py -> build/lib/fedex_python/components creating build/lib/fedex_python/wsdl copying fedex_python/wsdl/track_16.wsdl -> build/lib/fedex_python/wsdl copying fedex_python/wsdl/ship_25.wsdl -> build/lib/fedex_python/wsdl copying fedex_python/wsdl/rate_28.wsdl -> build/lib/fedex_python/wsdl copying fedex_python/wsdl/pickup_17.wsdl -> build/lib/fedex_python/wsdl creating build/lib/fedex_python/wsdl/test copying fedex_python/wsdl/test/track_16.wsdl -> build/lib/fedex_python/wsdl/test copying fedex_python/wsdl/test/ship_25.wsdl -> build/lib/fedex_python/wsdl/test copying fedex_python/wsdl/test/rate_28.wsdl -> build/lib/fedex_python/wsdl/test copying fedex_python/wsdl/test/pickup_17.wsdl -> build/lib/fedex_python/wsdl/test installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/fedex_python creating build/bdist.linux-x86_64/wheel/fedex_python/wsdl creating build/bdist.linux-x86_64/wheel/fedex_python/wsdl/test copying build/lib/fedex_python/wsdl/test/pickup_17.wsdl -> build/bdist.linux-x86_64/wheel/fedex_python/wsdl/test copying build/lib/fedex_python/wsdl/test/rate_28.wsdl -> build/bdist.linux-x86_64/wheel/fedex_python/wsdl/test copying build/lib/fedex_python/wsdl/test/ship_25.wsdl -> build/bdist.linux-x86_64/wheel/fedex_python/wsdl/test copying build/lib/fedex_python/wsdl/test/track_16.wsdl -> build/bdist.linux-x86_64/wheel/fedex_python/wsdl/test copying build/lib/fedex_python/wsdl/pickup_17.wsdl -> build/bdist.linux-x86_64/wheel/fedex_python/wsdl copying build/lib/fedex_python/wsdl/rate_28.wsdl -> build/bdist.linux-x86_64/wheel/fedex_python/wsdl copying build/lib/fedex_python/wsdl/ship_25.wsdl -> build/bdist.linux-x86_64/wheel/fedex_python/wsdl copying build/lib/fedex_python/wsdl/track_16.wsdl -> build/bdist.linux-x86_64/wheel/fedex_python/wsdl creating build/bdist.linux-x86_64/wheel/fedex_python/components copying build/lib/fedex_python/components/__init__.py -> build/bdist.linux-x86_64/wheel/fedex_python/components copying build/lib/fedex_python/components/authentication.py -> build/bdist.linux-x86_64/wheel/fedex_python/components copying build/lib/fedex_python/components/base.py -> build/bdist.linux-x86_64/wheel/fedex_python/components copying build/lib/fedex_python/components/common.py -> build/bdist.linux-x86_64/wheel/fedex_python/components copying build/lib/fedex_python/components/enums.py -> build/bdist.linux-x86_64/wheel/fedex_python/components copying build/lib/fedex_python/components/pickup_components.py -> build/bdist.linux-x86_64/wheel/fedex_python/components copying build/lib/fedex_python/components/rate_components.py -> build/bdist.linux-x86_64/wheel/fedex_python/components copying build/lib/fedex_python/components/ship_components.py -> build/bdist.linux-x86_64/wheel/fedex_python/components copying build/lib/fedex_python/components/track_components.py -> build/bdist.linux-x86_64/wheel/fedex_python/components creating build/bdist.linux-x86_64/wheel/fedex_python/services copying build/lib/fedex_python/services/__init__.py -> build/bdist.linux-x86_64/wheel/fedex_python/services copying build/lib/fedex_python/services/pickup.py -> build/bdist.linux-x86_64/wheel/fedex_python/services copying build/lib/fedex_python/services/rate.py -> build/bdist.linux-x86_64/wheel/fedex_python/services copying build/lib/fedex_python/services/ship.py -> build/bdist.linux-x86_64/wheel/fedex_python/services copying build/lib/fedex_python/services/track.py -> build/bdist.linux-x86_64/wheel/fedex_python/services copying build/lib/fedex_python/__init__.py -> build/bdist.linux-x86_64/wheel/fedex_python copying build/lib/fedex_python/base.py -> build/bdist.linux-x86_64/wheel/fedex_python copying build/lib/fedex_python/client.py -> build/bdist.linux-x86_64/wheel/fedex_python running install_egg_info running egg_info creating fedex_python.egg-info writing fedex_python.egg-info/PKG-INFO writing dependency_links to fedex_python.egg-info/dependency_links.txt writing requirements to fedex_python.egg-info/requires.txt writing top-level names to fedex_python.egg-info/top_level.txt writing manifest file 'fedex_python.egg-info/SOURCES.txt' reading manifest file 'fedex_python.egg-info/SOURCES.txt' writing manifest file 'fedex_python.egg-info/SOURCES.txt' Copying fedex_python.egg-info to build/bdist.linux-x86_64/wheel/fedex_python-0.0.6-py3.10.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/fedex_python-0.0.6.dist-info/WHEEL creating '/builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir/pip-wheel-dzdsmjju/tmp8fyogz8w/fedex_python-0.0.6-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'fedex_python/__init__.py' adding 'fedex_python/base.py' adding 'fedex_python/client.py' adding 'fedex_python/components/__init__.py' adding 'fedex_python/components/authentication.py' adding 'fedex_python/components/base.py' adding 'fedex_python/components/common.py' adding 'fedex_python/components/enums.py' adding 'fedex_python/components/pickup_components.py' adding 'fedex_python/components/rate_components.py' adding 'fedex_python/components/ship_components.py' adding 'fedex_python/components/track_components.py' adding 'fedex_python/services/__init__.py' adding 'fedex_python/services/pickup.py' adding 'fedex_python/services/rate.py' adding 'fedex_python/services/ship.py' adding 'fedex_python/services/track.py' adding 'fedex_python/wsdl/pickup_17.wsdl' adding 'fedex_python/wsdl/rate_28.wsdl' adding 'fedex_python/wsdl/ship_25.wsdl' adding 'fedex_python/wsdl/track_16.wsdl' adding 'fedex_python/wsdl/test/pickup_17.wsdl' adding 'fedex_python/wsdl/test/rate_28.wsdl' adding 'fedex_python/wsdl/test/ship_25.wsdl' adding 'fedex_python/wsdl/test/track_16.wsdl' adding 'fedex_python-0.0.6.dist-info/METADATA' adding 'fedex_python-0.0.6.dist-info/WHEEL' adding 'fedex_python-0.0.6.dist-info/top_level.txt' adding 'fedex_python-0.0.6.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Building wheel for fedex-python (pyproject.toml): finished with status 'done' Created wheel for fedex-python: filename=fedex_python-0.0.6-py3-none-any.whl size=241301 sha256=9e50a2f9b2e8c87d13fa7ad555fc3ed12ec700d9594e394df71bc10d2efd0f70 Stored in directory: /builddir/.cache/pip/wheels/73/74/3d/125c94441e24431fce3ced178c614bf5f0ef649c78c29fedb7 Successfully built fedex-python + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.PnXRxm + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64 ++ dirname /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/fedex-python-0.0.6/.package_note-python-fedex-python-0.0.6-1.fc37.x86_64.ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd fedex-python-0.0.6 ++ ls /builddir/build/BUILD/fedex-python-0.0.6/pyproject-wheeldir/fedex_python-0.0.6-py3-none-any.whl ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' ++ xargs basename --multiple + specifier=fedex_python==0.0.6 + TMPDIR=/builddir/build/BUILD/fedex-python-0.0.6/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64 --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/fedex-python-0.0.6/pyproject-wheeldir fedex_python==0.0.6 Using pip 22.0.3 from /usr/lib/python3.10/site-packages/pip (python 3.10) Looking in links: /builddir/build/BUILD/fedex-python-0.0.6/pyproject-wheeldir Processing ./pyproject-wheeldir/fedex_python-0.0.6-py3-none-any.whl Installing collected packages: fedex_python Successfully installed fedex_python-0.0.6 + '[' -d /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/bin ']' + rm -f /builddir/build/BUILD/pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib/python3.10/site-packages ']' + site_dirs+=("/usr/lib/python3.10/site-packages") + '[' /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib64/python3.10/site-packages '!=' /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib/python3.10/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib64/python3.10/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.10/site-packages/fedex_python-0.0.6.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib/python3.10/site-packages/fedex_python-0.0.6.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64 --record /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib/python3.10/site-packages/fedex_python-0.0.6.dist-info/RECORD --output /builddir/build/BUILD/pyproject-record + rm -fv /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib/python3.10/site-packages/fedex_python-0.0.6.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib/python3.10/site-packages/fedex_python-0.0.6.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib/python3.10/site-packages/fedex_python-0.0.6.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib/python3.10/site-packages/fedex_python-0.0.6.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /builddir/build/BUILD/pyproject-files --output-modules /builddir/build/BUILD/pyproject-modules --buildroot /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64 --sitelib /usr/lib/python3.10/site-packages --sitearch /usr/lib64/python3.10/site-packages --python-version 3.10 --pyproject-record /builddir/build/BUILD/pyproject-record --prefix /usr '*' +auto + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 0.0.6-1.fc37 --unique-debug-suffix -0.0.6-1.fc37.x86_64 --unique-debug-src-base python-fedex-python-0.0.6-1.fc37.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/fedex-python-0.0.6 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib/python3.10 using python3.10 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.2gvka3 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/fedex-python-0.0.6/.package_note-python-fedex-python-0.0.6-1.fc37.x86_64.ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' -f /usr/lib/rpm/generate-rpm-note.sh ']' + /usr/lib/rpm/generate-rpm-note.sh python-fedex-python 0.0.6-1.fc37 x86_64 + cd fedex-python-0.0.6 + '[' '!' -f /builddir/build/BUILD/pyproject-modules ']' + PATH=/builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/bin:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib64/python3.10/site-packages:/builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib/python3.10/site-packages + _PYTHONSITE=/builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib64/python3.10/site-packages:/builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64/usr/lib/python3.10/site-packages + PYTHONDONTWRITEBYTECODE=1 + /usr/bin/python3 -s /usr/lib/rpm/redhat/import_all_modules.py -f /builddir/build/BUILD/pyproject-modules -t Check import: fedex_python + RPM_EC=0 ++ jobs -p + exit 0 Processing files: python3-fedex-python-0.0.6-1.fc37.noarch Provides: python-fedex-python = 0.0.6-1.fc37 python3-fedex-python = 0.0.6-1.fc37 python3.10-fedex-python = 0.0.6-1.fc37 python3.10dist(fedex-python) = 0.0.6 python3dist(fedex-python) = 0.0.6 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.10 python3.10dist(pydantic) >= 1.6.1 python3.10dist(zeep) >= 3.4 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64 Wrote: /builddir/build/SRPMS/python-fedex-python-0.0.6-1.fc37.src.rpm Wrote: /builddir/build/RPMS/python3-fedex-python-0.0.6-1.fc37.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.WiZ8oc + umask 022 + cd /builddir/build/BUILD + cd fedex-python-0.0.6 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-fedex-python-0.0.6-1.fc37.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0