Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lti-xblock-consumer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenJupyter
lti-xblock-consumer
Commits
421db63a
Unverified
Commit
421db63a
authored
3 years ago
by
Mohammad Ahtasham ul Hassan
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #207 from edx/aht/BOM-STANDARDIZE-VERSION-NUMBER-PLACEMENT
Standardize version number placement
parents
133d3e9b
72f06495
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lti_consumer/__init__.py
+2
-0
2 additions, 0 deletions
lti_consumer/__init__.py
setup.py
+18
-1
18 additions, 1 deletion
setup.py
with
20 additions
and
1 deletion
lti_consumer/__init__.py
+
2
−
0
View file @
421db63a
...
...
@@ -3,3 +3,5 @@ Runtime will load the XBlock class from here.
"""
from
.lti_xblock
import
LtiConsumerXBlock
from
.apps
import
LTIConsumerApp
__version__
=
'
3.1.0
'
This diff is collapsed.
Click to expand it.
setup.py
+
18
−
1
View file @
421db63a
...
...
@@ -91,9 +91,26 @@ def is_requirement(line):
with
open
(
'
README.rst
'
)
as
_f
:
long_description
=
_f
.
read
()
def
get_version
(
file_path
):
"""
Extract the version string from the file at the given relative path fragments.
"""
filename
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
file_path
)
with
open
(
filename
,
encoding
=
'
utf-8
'
)
as
opened_file
:
version_file
=
opened_file
.
read
()
version_match
=
re
.
search
(
r
"
(?m)^__version__ = [
'
\"]([^
'
\"]+)[
'
\"]
"
,
version_file
)
if
version_match
:
return
version_match
.
group
(
1
)
raise
RuntimeError
(
'
Unable to find version string.
'
)
VERSION
=
get_version
(
"
lti_consumer/__init__.py
"
)
setup
(
name
=
'
lti-consumer-xblock
'
,
version
=
'
3.1.0
'
,
version
=
VERSION
,
author
=
'
Open edX project
'
,
author_email
=
'
oscm@edx.org
'
,
description
=
'
This XBlock implements the consumer side of the LTI specification.
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment