Skip to content

Commit

Permalink
Prep for 2.2 release (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Feb 9, 2021
1 parent 0ba6ce8 commit 1758104
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
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')

0 comments on commit 1758104

Please sign in to comment.