-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Python 3.12 to test matrix (#204)
* Add python 3.12 to CI test matrix * whatsnew * don't use pkg_resources anymore
- Loading branch information
1 parent
b38dbc2
commit 75df0ad
Showing
5 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
from pkg_resources import parse_version | ||
from packaging.version import Version | ||
import pvanalytics | ||
|
||
|
||
def test___version__(): | ||
# check that the version string is determined correctly. | ||
# if the version string is messed up for some reason, it should be | ||
# '0+unknown', which is not greater than '0.0.1'. | ||
version = parse_version(pvanalytics.__version__) | ||
assert version > parse_version('0.0.1') | ||
version = Version(pvanalytics.__version__) | ||
assert version > Version('0.0.1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ | |
TESTS_REQUIRE = [ | ||
'pytest', | ||
'pytest-cov', | ||
'packaging', | ||
] | ||
|
||
INSTALL_REQUIRES = [ | ||
|