Skip to content

Commit

Permalink
Merge branch 'main' into pr/21
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Oct 27, 2024
2 parents 79f2df1 + 7f03bca commit d12104d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/alexdlaird/amazon-orders/compare/1.1.4...HEAD)
## [Unreleased](https://github.com/alexdlaird/amazon-orders/compare/2.0.0...HEAD)

## [2.0.0](https://github.com/alexdlaird/amazon-orders/compare/1.1.4...2.0.0) - 2024-10-26

### Added

- Support for Amazon's new `data-component` tags.
- Simplified integration tests to more quickly catch regressions.
- Bug fixes and stability improvements.
- `order_class` to the config file, which allows `Order` to be extended.
- `order_class` to the config file, which allows for overriding the `Order` class.
- `shipment_class` to the config file, which allows for overriding the `Shipment` class.
- Simplified integration tests to more quickly catch regressions.
- Bug fixes and stability improvements.

### Changed

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Python Versions](https://img.shields.io/pypi/pyversions/amazon-orders.svg)](https://pypi.org/project/amazon-orders)
[![Coverage](https://img.shields.io/codecov/c/github/alexdlaird/amazon-orders)](https://codecov.io/gh/alexdlaird/amazon-orders)
[![Build](https://img.shields.io/github/actions/workflow/status/alexdlaird/amazon-orders/build.yml)](https://github.com/alexdlaird/amazon-orders/actions/workflows/build.yml)
[![Docs](https://img.shields.io/readthedocs/amazon-orders)](https://amazon-orders.readthedocs.io/en/latest)
[![Docs](https://img.shields.io/readthedocs/amazon-orders)](https://amazon-orders.readthedocs.io)
[![GitHub License](https://img.shields.io/github/license/alexdlaird/amazon-orders)](https://github.com/alexdlaird/amazon-orders/blob/main/LICENSE)

`amazon-orders` is an unofficial library that provides a command line interface alongside a programmatic API that can
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

| Version | Supported |
|---------|--------------------|
| 1.1.x | :white_check_mark: |
| < 1.0 | :x: |
| 2.0.x | :white_check_mark: |
| < 2.0 | :x: |

## Reporting a Vulnerability

Expand Down
2 changes: 1 addition & 1 deletion amazonorders/entity/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,5 @@ def _parse_refund_completed_date(self) -> Optional[date]:
return value

def _if_full_details(self,
value: Any) -> Union[Any | None]:
value: Any) -> Union[Any, None]:
return value if self.full_details else None
10 changes: 10 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ Configuration
:private-members:
:show-inheritance:

.. automodule:: amazonorders.constants
:members:
:private-members:
:show-inheritance:

.. automodule:: amazonorders.selectors
:members:
:private-members:
:show-inheritance:

Entities
--------

Expand Down
2 changes: 1 addition & 1 deletion docs/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ To see what the effected page looks like, `enable debug mode`_, then rerun your
``debug`` mode saves parsed HTML files locally for you so you can inspect the DOM and compare it to
the parsing code within ``amazon-orders``. This may give you some insight in to what changed.
In ``amazon-orders``, look for code that uses `BeautifulSoup's CSS select() methods <https://www.crummy.com/software/BeautifulSoup/bs4/doc/#css-selectors-through-the-css-property>`_.
CSS selector strings used by ``amazon-orders`` are defined in variables in :class:`~amazonorders.selectors.Selectors``
CSS selector strings used by ``amazon-orders`` are defined in variables in :class:`~amazonorders.selectors.Selectors`
and can be easily overridden.

If you identify the issue, please `submit a bug report <https://github.com/alexdlaird/amazon-orders/issues/new?assignees=&labels=bug&projects=&template=bug-report.yml>`_.
Expand Down

0 comments on commit d12104d

Please sign in to comment.