#7447 closed enhancement (fixed)
SageNB version and install date / time
Reported by: | mpatel | Owned by: | boothby |
---|---|---|---|
Priority: | minor | Milestone: | sage-4.3 |
Component: | notebook | Keywords: | |
Cc: | was, timdumol | Merged in: | sagenb-0.4.6 |
Authors: | Mitesh Patel | Reviewers: | William Stein |
Report Upstream: | N/A | Work issues: | See comments at #7467 |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by mpatel)
On occasion, it's useful to get the installed SageNB version from inside a Sage process. Here's a possible API:
sage: import sagenb.version sage: sagenb.version.version 0.4.3 sage: sagenb.version.date '2009-11-12 11:56:53'
This is similar to sage.version.
Reminder: If this merges, update #7390's test report generator, which has a notebook version field.
Attachments (3)
Change History (11)
Changed 6 years ago by mpatel
comment:1 Changed 6 years ago by mpatel
- Description modified (diff)
- Status changed from new to needs_review
comment:2 Changed 6 years ago by mpatel
Can distutils or setuptools can do this more simply?
comment:3 Changed 6 years ago by mpatel
See #7467 for a setuptools alternative.
comment:4 Changed 6 years ago by mpatel
- Report Upstream set to N/A
- Status changed from needs_review to needs_info
- Work issues set to See comments at #7467
Changed 6 years ago by mpatel
Cleaner setuptools version. Depends on #7467. This patch only. sagenb repo.
comment:5 Changed 6 years ago by mpatel
- Status changed from needs_info to needs_review
V2 follows (and depends on) the simpler, setuptools-based approach of #7467. The new patch also adds the Sage Notebook version to HTML test reports.
For what it's worth, the local queue is
trac_7390-sagenb_test_report_A.patch trac_7390-sagenb_test_report_B_v2.patch trac_7390-sagenb_test_report_referee.patch trac_7402-pkg_resources.patch trac_7428-publish_last_edited_v2.patch trac_7444-search_after_publish.patch trac_7376-search_by_username_v2.patch trac_1321-sagenb_graphed.patch sagenb_7483.patch sagenb_7482.patch sagenb-7495.patch sagenb_3849.patch trac_7467-setuptools.2.patch trac_7447-sagenb_version_v2.patch trac_4714-sagenb_jsmath_init.patch trac_6855-published_interacts.patch
But please let me know if I should rebase any patch(es).
Changed 6 years ago by was
comment:6 Changed 6 years ago by was
- Status changed from needs_review to positive_review
Nice. I had to rebase it, but that's fine.
comment:7 Changed 6 years ago by was
- Resolution set to fixed
- Status changed from positive_review to closed
I merged this patch into sagenb-0.4.6.
comment:8 Changed 6 years ago by mvngu
- Merged in set to sagenb-0.4.6
- Reviewers set to William Stein
Add version and date to new sagenb source distributions.