nbgitpuller 1.2.0__tar.gz → 1.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/CHANGELOG.md +47 -0
- {nbgitpuller-1.2.0/nbgitpuller.egg-info → nbgitpuller-1.2.2}/PKG-INFO +15 -3
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/README.md +1 -1
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/handlers.py +10 -1
- nbgitpuller-1.2.2/nbgitpuller/static/dist/bundle.js +2 -0
- nbgitpuller-1.2.2/nbgitpuller/static/dist/bundle.js.map +1 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/static/js/gitsync.js +3 -1
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/static/js/index.js +2 -1
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/templates/page.html +3 -1
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/templates/status.html +1 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/version.py +1 -1
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2/nbgitpuller.egg-info}/PKG-INFO +15 -3
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/pyproject.toml +10 -2
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/setup.py +1 -1
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/tests/test_api.py +7 -3
- nbgitpuller-1.2.0/nbgitpuller/static/dist/bundle.js +0 -2
- nbgitpuller-1.2.0/nbgitpuller/static/dist/bundle.js.map +0 -1
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/LICENSE +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/MANIFEST.in +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/RELEASE.md +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/__init__.py +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/_compat.py +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/etc/jupyter_notebook_config.d/nbgitpuller.json +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/etc/jupyter_server_config.d/nbgitpuller.json +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/pull.py +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller/static/js/gitsyncview.js +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller.egg-info/SOURCES.txt +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller.egg-info/dependency_links.txt +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller.egg-info/entry_points.txt +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller.egg-info/not-zip-safe +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller.egg-info/requires.txt +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/nbgitpuller.egg-info/top_level.txt +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/package.json +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/setup.cfg +0 -0
- {nbgitpuller-1.2.0 → nbgitpuller-1.2.2}/tests/test_gitpuller.py +0 -0
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
## 1.2
|
|
2
2
|
|
|
3
|
+
### 1.2.2 - 2025-01-27
|
|
4
|
+
|
|
5
|
+
([full changelog](https://github.com/jupyterhub/nbgitpuller/compare/1.2.1...1.2.2))
|
|
6
|
+
|
|
7
|
+
#### New features added
|
|
8
|
+
|
|
9
|
+
- Add copy button for link generator [#349](https://github.com/jupyterhub/nbgitpuller/pull/349) ([@jrdnbradford](https://github.com/jrdnbradford))
|
|
10
|
+
|
|
11
|
+
#### Bugs fixed
|
|
12
|
+
|
|
13
|
+
- Update style-sheet links to reflect those from `jupyter-server` [#359](https://github.com/jupyterhub/nbgitpuller/pull/359) ([@possiblyMikeB](https://github.com/possiblyMikeB))
|
|
14
|
+
|
|
15
|
+
#### Contributors to this release
|
|
16
|
+
|
|
17
|
+
([GitHub contributors page for this release](https://github.com/jupyterhub/nbgitpuller/graphs/contributors?from=2024-03-29&to=2025-01-27&type=c))
|
|
18
|
+
|
|
19
|
+
[@agoose77](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Aagoose77+updated%3A2024-03-29..2025-01-27&type=Issues) | [@batpad](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Abatpad+updated%3A2024-03-29..2025-01-27&type=Issues) | [@betatim](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Abetatim+updated%3A2024-03-29..2025-01-27&type=Issues) | [@consideRatio](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3AconsideRatio+updated%3A2024-03-29..2025-01-27&type=Issues) | [@frankier](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Afrankier+updated%3A2024-03-29..2025-01-27&type=Issues) | [@jrdnbradford](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Ajrdnbradford+updated%3A2024-03-29..2025-01-27&type=Issues) | [@manics](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Amanics+updated%3A2024-03-29..2025-01-27&type=Issues) | [@possiblyMikeB](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3ApossiblyMikeB+updated%3A2024-03-29..2025-01-27&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Apre-commit-ci+updated%3A2024-03-29..2025-01-27&type=Issues) | [@welcome](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Awelcome+updated%3A2024-03-29..2025-01-27&type=Issues) | [@yuvipanda](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Ayuvipanda+updated%3A2024-03-29..2025-01-27&type=Issues)
|
|
20
|
+
|
|
21
|
+
### 1.2.1 - 2024-03-29
|
|
22
|
+
|
|
23
|
+
This release provides compatibility with JupyterHub >=4.1.
|
|
24
|
+
|
|
25
|
+
([full changelog](https://github.com/jupyterhub/nbgitpuller/compare/1.2.0...1.2.1))
|
|
26
|
+
|
|
27
|
+
#### Bugs fixed
|
|
28
|
+
|
|
29
|
+
- 403 on failed auth for EventStream [#347](https://github.com/jupyterhub/nbgitpuller/pull/347) ([@minrk](https://github.com/minrk), [@consideRatio](https://github.com/consideRatio))
|
|
30
|
+
- include xsrf token in event stream request [#346](https://github.com/jupyterhub/nbgitpuller/pull/346) ([@minrk](https://github.com/minrk), [@consideRatio](https://github.com/consideRatio), [@yuvipanda](https://github.com/yuvipanda))
|
|
31
|
+
|
|
32
|
+
#### Maintenance and upkeep improvements
|
|
33
|
+
|
|
34
|
+
- Add test for Python 3.12, jupyter_server 1, notebook 5 and 7, and git 2.43 (ubuntu 24.04) [#345](https://github.com/jupyterhub/nbgitpuller/pull/345) ([@consideRatio](https://github.com/consideRatio), [@minrk](https://github.com/minrk), [@yuvipanda](https://github.com/yuvipanda))
|
|
35
|
+
|
|
36
|
+
#### Documentation improvements
|
|
37
|
+
|
|
38
|
+
- Fix automatic merging link in README.md [#328](https://github.com/jupyterhub/nbgitpuller/pull/328) ([@mathbunnyru](https://github.com/mathbunnyru), [@manics](https://github.com/manics))
|
|
39
|
+
- Add a FAQ entry for 'nbgitpuller link selecting profile options' [#322](https://github.com/jupyterhub/nbgitpuller/pull/322) ([@yuvipanda](https://github.com/yuvipanda), [@consideRatio](https://github.com/consideRatio), [@ryanlovett](https://github.com/ryanlovett), [@sgibson91](https://github.com/sgibson91))
|
|
40
|
+
|
|
41
|
+
#### Contributors to this release
|
|
42
|
+
|
|
43
|
+
The following people contributed discussions, new ideas, code and documentation contributions, and review.
|
|
44
|
+
See [our definition of contributors](https://github-activity.readthedocs.io/en/latest/#how-does-this-tool-define-contributions-in-the-reports).
|
|
45
|
+
|
|
46
|
+
([GitHub contributors page for this release](https://github.com/jupyterhub/nbgitpuller/graphs/contributors?from=2023-08-07&to=2024-03-29&type=c))
|
|
47
|
+
|
|
48
|
+
@balajialg ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Abalajialg+updated%3A2023-08-07..2024-03-29&type=Issues)) | @consideRatio ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3AconsideRatio+updated%3A2023-08-07..2024-03-29&type=Issues)) | @fomightez ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Afomightez+updated%3A2023-08-07..2024-03-29&type=Issues)) | @jtpio ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Ajtpio+updated%3A2023-08-07..2024-03-29&type=Issues)) | @manics ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Amanics+updated%3A2023-08-07..2024-03-29&type=Issues)) | @mathbunnyru ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Amathbunnyru+updated%3A2023-08-07..2024-03-29&type=Issues)) | @minrk ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Aminrk+updated%3A2023-08-07..2024-03-29&type=Issues)) | @ryanlovett ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Aryanlovett+updated%3A2023-08-07..2024-03-29&type=Issues)) | @sgibson91 ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Asgibson91+updated%3A2023-08-07..2024-03-29&type=Issues)) | @yuvipanda ([activity](https://github.com/search?q=repo%3Ajupyterhub%2Fnbgitpuller+involves%3Ayuvipanda+updated%3A2023-08-07..2024-03-29&type=Issues))
|
|
49
|
+
|
|
3
50
|
### 1.2.0 - 2023-08-07
|
|
4
51
|
|
|
5
52
|
([full changelog](https://github.com/jupyterhub/nbgitpuller/compare/1.1.1...1.2.0))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: nbgitpuller
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Jupyter Extension to do one-way synchronization of git repositories
|
|
5
5
|
Home-page: https://github.com/jupyterhub/nbgitpuller
|
|
6
6
|
Author: Peter Veerman, YuviPanda
|
|
@@ -16,6 +16,18 @@ Classifier: Programming Language :: Python :: 3
|
|
|
16
16
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
|
+
Requires-Dist: jupyter_server>=1.10.1
|
|
20
|
+
Requires-Dist: tornado
|
|
21
|
+
Dynamic: author
|
|
22
|
+
Dynamic: author-email
|
|
23
|
+
Dynamic: classifier
|
|
24
|
+
Dynamic: description
|
|
25
|
+
Dynamic: description-content-type
|
|
26
|
+
Dynamic: home-page
|
|
27
|
+
Dynamic: license
|
|
28
|
+
Dynamic: platform
|
|
29
|
+
Dynamic: requires-dist
|
|
30
|
+
Dynamic: summary
|
|
19
31
|
|
|
20
32
|
# [nbgitpuller](https://github.com/jupyterhub/nbgitpuller)
|
|
21
33
|
|
|
@@ -28,7 +40,7 @@ License-File: LICENSE
|
|
|
28
40
|
|
|
29
41
|
`nbgitpuller` lets you distribute content in a git repository to your students
|
|
30
42
|
by having them click a simple link. [Automatic
|
|
31
|
-
merging](https://nbgitpuller.readthedocs.io/topic/automatic-merging.html)
|
|
43
|
+
merging](https://nbgitpuller.readthedocs.io/en/latest/topic/automatic-merging.html)
|
|
32
44
|
ensures that your students are never exposed to `git` directly. It is primarily
|
|
33
45
|
used with a JupyterHub, but can also work on students' local computers.
|
|
34
46
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
`nbgitpuller` lets you distribute content in a git repository to your students
|
|
11
11
|
by having them click a simple link. [Automatic
|
|
12
|
-
merging](https://nbgitpuller.readthedocs.io/topic/automatic-merging.html)
|
|
12
|
+
merging](https://nbgitpuller.readthedocs.io/en/latest/topic/automatic-merging.html)
|
|
13
13
|
ensures that your students are never exposed to `git` directly. It is primarily
|
|
14
14
|
used with a JupyterHub, but can also work on students' local computers.
|
|
15
15
|
|
|
@@ -29,6 +29,12 @@ class SyncHandler(JupyterHandler):
|
|
|
29
29
|
if 'git_lock' not in self.settings:
|
|
30
30
|
self.settings['git_lock'] = locks.Lock()
|
|
31
31
|
|
|
32
|
+
def get_login_url(self):
|
|
33
|
+
# raise on failed auth, not redirect
|
|
34
|
+
# can't redirect EventStream to login
|
|
35
|
+
# same as Jupyter's APIHandler
|
|
36
|
+
raise web.HTTPError(403)
|
|
37
|
+
|
|
32
38
|
@property
|
|
33
39
|
def git_lock(self):
|
|
34
40
|
return self.settings['git_lock']
|
|
@@ -148,8 +154,11 @@ class UIHandler(JupyterHandler):
|
|
|
148
154
|
self.get_argument('subPath', '.')
|
|
149
155
|
app = self.get_argument('app', app_env)
|
|
150
156
|
parent_reldir = os.getenv('NBGITPULLER_PARENTPATH', '')
|
|
157
|
+
# Remove trailing slashes before determining default targetPath
|
|
158
|
+
# Otherwise we end up with targetpath being `.`, which always exists (given it is current
|
|
159
|
+
# working directory) and we end up with weird failures
|
|
151
160
|
targetpath = self.get_argument('targetpath', None) or \
|
|
152
|
-
self.get_argument('targetPath', repo.split('/')[-1])
|
|
161
|
+
self.get_argument('targetPath', repo.rstrip('/').split('/')[-1])
|
|
153
162
|
|
|
154
163
|
if urlPath:
|
|
155
164
|
path = urlPath
|