Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prep for 2.2 release #214

Merged
merged 1 commit into from Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/src/markdown/about/changelog.md
@@ -1,9 +1,9 @@
# Changelog

## 2.2.0.dev
## 2.2.0

- **NEW**: `:link` and `:any-link` no longer include `#!html <link>` due to a change in the level 4 selector
specification.
specification. This actually yields more sane results.
- **FIX**: BeautifulSoup, when using `find`, is quite forgiving of odd types that a user may place in an element's
attribute value. Soup Sieve will also now be more forgiving and attempt to match these unexpected values in a sane
manner by normalizing them before compare. (#212)
Expand Down
9 changes: 3 additions & 6 deletions docs/src/markdown/about/contributing.md
Expand Up @@ -3,13 +3,10 @@
## Become a Sponsor :octicons-heart-fill-16:{: .heart-throb}

Open source projects take time and money. Help support the project by becoming a sponsor. You can add your support at
any tier you feel comfortable with. No amount is too little.
any tier you feel comfortable with. No amount is too little. We also accept one time contributions via PayPal.

:octicons-mark-github-16: [GitHub Sponsors ](https://github.com/sponsors/facelessuser)

If you'd like to do a one time contribution, you can do so via PayPal.

:fontawesome-brands-paypal: [PayPal](https://www.paypal.me/facelessuser)
[:octicons-mark-github-16: GitHub Sponsors](https://github.com/sponsors/facelessuser){: .md-button .md-button--primary }
[:fontawesome-brands-paypal: PayPal](https://www.paypal.me/facelessuser){ .md-button}

## Bug Reports

Expand Down
2 changes: 1 addition & 1 deletion docs/src/markdown/index.md
@@ -1,4 +1,4 @@
# Soup Sieve
# Quick Start

## Overview

Expand Down
4 changes: 2 additions & 2 deletions mkdocs.yml
Expand Up @@ -23,8 +23,8 @@ theme:
- navigation.tabs

nav:
- Usage:
- Soup Sieve: index.md
- Home:
- Quick Start: index.md
- API: api.md
- F.A.Q.: faq.md
- Beautiful Soup Differences: differences.md
Expand Down
7 changes: 5 additions & 2 deletions soupsieve/__meta__.py
Expand Up @@ -153,11 +153,14 @@ def _get_canonical(self):
return ver


def parse_version(ver, pre=False):
def parse_version(ver):
"""Parse version into a comparable Version tuple."""

m = RE_VER.match(ver)

if m is None:
raise ValueError("'{}' is not a valid version".format(ver))

# Handle major, minor, micro
major = int(m.group('major'))
minor = int(m.group('minor')) if m.group('minor') else 0
Expand Down Expand Up @@ -185,5 +188,5 @@ def parse_version(ver, pre=False):
return Version(major, minor, micro, release, pre, post, dev)


__version_info__ = Version(2, 2, 0, ".dev")
__version_info__ = Version(2, 2, 0, "final")
__version__ = __version_info__._get_canonical()
2 changes: 2 additions & 0 deletions tests/test_versions.py
Expand Up @@ -89,3 +89,5 @@ def test_asserts(self):
Version(1, 2, 3, pre=1)
with self.assertRaises(ValueError):
Version(1, 2, 3, dev=1)
with self.assertRaises(ValueError):
parse_version('bad&version')