Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
py-heptapod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
heptapod
py-heptapod
Merge requests
!103
Merged stable branch into default and improved conditional import comment
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Merged stable branch into default and improved conditional import comment
topic/default/merge-stable
into
branch/default
Overview
0
Commits
12
Pipelines
2
Changes
3
Merged
Georges Racinet
requested to merge
topic/default/merge-stable
into
branch/default
7 months ago
Overview
0
Commits
12
Pipelines
2
Changes
3
Expand
0
0
Merge request reports
Compare
branch/default
branch/default (base)
and
latest version
latest version
9ac98bdb
12 commits,
7 months ago
3 files
+
8
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
heptapod/tests/test_package.py
+
4
−
3
Options
@@ -6,4 +6,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
try
:
from
pkg_resources
import
packaging
Version
=
packaging
.
version
.
Version
# pragma no cover
except
ImportError
:
# pragma no cover
@@ -9,9 +10,9 @@
except
ImportError
:
# pragma no cover
#
one day, `packaging` might not be vendored in
`pkg_resources`
any more
import
packaging
#
Seen first on Python >=3.11 but should be about
`pkg_resources`
version
from
packaging
.version
import
Version
import
heptapod
def
test_package_version
():
# the Version class accepts only PEP440 compliant version strings
@@ -12,7 +13,7 @@
import
heptapod
def
test_package_version
():
# the Version class accepts only PEP440 compliant version strings
packaging
.
version
.
Version
(
heptapod
.
__version__
)
Version
(
heptapod
.
__version__
)
Loading