Skip to content

Commit 8adc226

Browse files
authored
Merge branch 'master' into test-pilot
2 parents 5f02068 + e37b14d commit 8adc226

17 files changed

+199
-2065
lines changed

.github/nglview-gha.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ channels:
44
- conda-forge
55

66
dependencies:
7-
- python>=3.6
8-
- pip
97
- jupyter-packaging
108
- qcelemental
119
- traitlets
@@ -15,15 +13,12 @@ dependencies:
1513
- notebook
1614
- mock
1715
- coverage
18-
- nose
1916
- pytest
2017
- pytest-cov
21-
- coveralls
2218
- pandas
2319
- ase
2420
- biopython
2521
- pymatgen
26-
- simpletraj
2722
- matplotlib
2823
- moviepy
2924
- imageio
@@ -32,5 +27,9 @@ dependencies:
3227
- rdkit
3328
- mdanalysis
3429
- mdtraj
35-
- parmed
36-
- ambertools
30+
- ambertools # have both pytraj and parmed
31+
- pip
32+
- pip:
33+
- simpletraj
34+
35+

.github/workflows/build-extension.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install node
1818
uses: actions/setup-node@v1
1919
with:
20-
node-version: '16.x'
20+
node-version: '20.x'
2121
- name: Install Python
2222
uses: actions/setup-python@v2
2323
with:

.github/workflows/test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
strategy:
1717
matrix:
1818
os: [ubuntu-latest, macos-latest]
19-
python-version: [3.9]
19+
python-version: [3.9, 3.11, 3.12]
2020

2121
steps:
2222
- name: Checkout nglview repository
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2424

2525
- name: Cache conda
26-
uses: actions/cache@v3
26+
uses: actions/cache@v4
2727
env:
2828
CACHE_NUMBER: 2 # Increase this value to reset cache if .github/nglview-gha.yml has not changed
2929
with:
@@ -32,7 +32,7 @@ jobs:
3232
${{ matrix.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('.github/nglview-gha.yml') }}
3333

3434
- name: Set up conda environment
35-
uses: conda-incubator/setup-miniconda@v2
35+
uses: conda-incubator/setup-miniconda@v3
3636
with:
3737
auto-update-conda: true
3838
auto-activate-base: false
@@ -52,4 +52,4 @@ jobs:
5252
run: |
5353
python setup.py sdist
5454
pip install dist/*gz
55-
python -c "import nglview as nv; print(nv.__version__)"
55+
python -c "import nglview as nv; print(nv.__version__)"

binder/environment.yml

-16
This file was deleted.

binder/postBuild

-5
This file was deleted.

binder/runtime.txt

-1
This file was deleted.

js/.eslintignore

-5
This file was deleted.

js/.eslintrc

-21
This file was deleted.

js/eslint.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
files: ["**/*.ts"],
3+
languageOptions: {
4+
parser: require('@typescript-eslint/parser'), // Specifies the ESLint parser
5+
}
6+
};

js/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
4646
"clean:labextension": "rimraf myextension/labextension",
4747
"clean:all": "yarn run clean:lib && yarn run clean:labextension",
48-
"eslint": "eslint . --ext .ts,.tsx --fix",
49-
"eslint:check": "eslint . --ext .ts,.tsx",
48+
"eslint": "eslint '**/*.ts' --fix",
49+
"eslint:check": "eslint '**/*.ts'",
5050
"install:extension": "jupyter labextension develop --overwrite .",
5151
"prepare": "yarn run clean && yarn run build:prod",
5252
"watch": "run-p watch:src watch:labextension",
@@ -70,11 +70,11 @@
7070
"@types/mocha": "^2.2.48",
7171
"@types/node": "^16.0.0",
7272
"@types/requirejs": "^2.1.31",
73-
"@typescript-eslint/eslint-plugin": "^4.8.1",
74-
"@typescript-eslint/parser": "^4.8.1",
73+
"@typescript-eslint/eslint-plugin": "^7.13.1",
74+
"@typescript-eslint/parser": "^7.13.1",
7575
"babel-register": "^6.11.6",
7676
"css-loader": "^0.23.1",
77-
"eslint": "^7.14.0",
77+
"eslint": "^8.5.6",
7878
"file-loader": "^1.1.6",
7979
"json-loader": "^0.5.4",
8080
"mkdirp": "^1.0.3",
@@ -83,7 +83,7 @@
8383
"prettier": "^2.1.1",
8484
"rimraf": "^3.0.2",
8585
"style-loader": "^0.13.1",
86-
"typescript": "~4.1.3",
86+
"typescript": "~5.4.5",
8787
"webpack": "^3.12.0"
8888
},
8989
"sideEffects": [

nglview/static/extension.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if (window.require) {
8484
module.exports = {
8585
load_ipython_extension: function () { }
8686
};
87-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZW5zaW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2V4dGVuc2lvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2RUFBNkU7QUFDN0UsNEVBQTRFO0FBQzVFLGdEQUFnRDtBQUVoRCxzQkFBc0I7QUFDdEIsSUFBSSxNQUFNLENBQUMsT0FBTyxFQUFFO0lBQ2hCLE1BQU0sQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDO1FBQ2xCLEdBQUcsRUFBRTtZQUNELEdBQUcsRUFBRztnQkFDRixvQkFBb0IsRUFBRSx1Q0FBdUM7YUFDaEU7U0FDSjtLQUNKLENBQUMsQ0FBQztDQUNOO0FBRUQsNkNBQTZDO0FBQzdDLE1BQU0sQ0FBQyxPQUFPLEdBQUc7SUFDYixzQkFBc0IsRUFBRSxjQUFZLENBQUM7Q0FDeEMsQ0FBQyJ9
87+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZW5zaW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2V4dGVuc2lvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2RUFBNkU7QUFDN0UsNEVBQTRFO0FBQzVFLGdEQUFnRDtBQUVoRCxzQkFBc0I7QUFDdEIsSUFBSSxNQUFNLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDakIsTUFBTSxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUM7UUFDbEIsR0FBRyxFQUFFO1lBQ0QsR0FBRyxFQUFHO2dCQUNGLG9CQUFvQixFQUFFLHVDQUF1QzthQUNoRTtTQUNKO0tBQ0osQ0FBQyxDQUFDO0FBQ1AsQ0FBQztBQUVELDZDQUE2QztBQUM3QyxNQUFNLENBQUMsT0FBTyxHQUFHO0lBQ2Isc0JBQXNCLEVBQUUsY0FBWSxDQUFDO0NBQ3hDLENBQUMifQ==
8888

8989
/***/ })
9090
/******/ ])});;

nglview/static/index.js

+160-151
Large diffs are not rendered by default.

nglview/static/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nglview/staticlab/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
4646
"clean:labextension": "rimraf myextension/labextension",
4747
"clean:all": "yarn run clean:lib && yarn run clean:labextension",
48-
"eslint": "eslint . --ext .ts,.tsx --fix",
49-
"eslint:check": "eslint . --ext .ts,.tsx",
48+
"eslint": "eslint '**/*.ts' --fix",
49+
"eslint:check": "eslint '**/*.ts'",
5050
"install:extension": "jupyter labextension develop --overwrite .",
5151
"prepare": "yarn run clean && yarn run build:prod",
5252
"watch": "run-p watch:src watch:labextension",
@@ -70,11 +70,11 @@
7070
"@types/mocha": "^2.2.48",
7171
"@types/node": "^16.0.0",
7272
"@types/requirejs": "^2.1.31",
73-
"@typescript-eslint/eslint-plugin": "^4.8.1",
74-
"@typescript-eslint/parser": "^4.8.1",
73+
"@typescript-eslint/eslint-plugin": "^7.13.1",
74+
"@typescript-eslint/parser": "^7.13.1",
7575
"babel-register": "^6.11.6",
7676
"css-loader": "^0.23.1",
77-
"eslint": "^7.14.0",
77+
"eslint": "^8.5.6",
7878
"file-loader": "^1.1.6",
7979
"json-loader": "^0.5.4",
8080
"mkdirp": "^1.0.3",
@@ -83,7 +83,7 @@
8383
"prettier": "^2.1.1",
8484
"rimraf": "^3.0.2",
8585
"style-loader": "^0.13.1",
86-
"typescript": "~4.1.3",
86+
"typescript": "~5.4.5",
8787
"webpack": "^3.12.0"
8888
},
8989
"sideEffects": [
@@ -101,7 +101,7 @@
101101
}
102102
},
103103
"_build": {
104-
"load": "static/remoteEntry.21d0885d0060a84340da.js",
104+
"load": "static/remoteEntry.4aa080b2a45dbecd0a13.js",
105105
"extension": "./extension",
106106
"style": "./style"
107107
}

nglview/staticlab/static/third-party-licenses.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
{
1010
"name": "css-loader",
11-
"versionInfo": "6.9.0",
11+
"versionInfo": "6.11.0",
1212
"licenseId": "MIT",
1313
"extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
1414
},
@@ -20,9 +20,9 @@
2020
},
2121
{
2222
"name": "jquery-ui",
23-
"versionInfo": "1.13.2",
23+
"versionInfo": "1.13.3",
2424
"licenseId": "MIT",
25-
"extractedText": "Copyright jQuery Foundation and other contributors, https://jquery.org/\n\nThis software consists of voluntary contributions made by many\nindividuals. For exact contribution history, see the revision history\navailable at https://github.com/jquery/jquery-ui\n\nThe following license applies to all parts of this software except as\ndocumented below:\n\n====\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n====\n\nCopyright and related rights for sample code are waived via CC0. Sample\ncode is defined as all source code contained within the demos directory.\n\nCC0: http://creativecommons.org/publicdomain/zero/1.0/\n\n====\n\nAll files located in the node_modules and external directories are\nexternally maintained libraries used by this software which have their\nown licenses; we recommend you read them, as their terms may differ from\nthe terms above.\n"
25+
"extractedText": "Copyright OpenJS Foundation and other contributors, https://openjsf.org/\n\nThis software consists of voluntary contributions made by many\nindividuals. For exact contribution history, see the revision history\navailable at https://github.com/jquery/jquery-ui\n\nThe following license applies to all parts of this software except as\ndocumented below:\n\n====\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n====\n\nCopyright and related rights for sample code are waived via CC0. Sample\ncode is defined as all source code contained within the demos directory.\n\nCC0: http://creativecommons.org/publicdomain/zero/1.0/\n\n====\n\nAll files located in the node_modules and external directories are\nexternally maintained libraries used by this software which have their\nown licenses; we recommend you read them, as their terms may differ from\nthe terms above.\n"
2626
},
2727
{
2828
"name": "ngl",

setup.py

+3-11
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
create_cmdclass,
1717
)
1818

19-
import versioneer
20-
from versioneer import get_cmdclass
21-
22-
sdist = get_cmdclass()['sdist']
23-
build_py = get_cmdclass()['build_py']
24-
2519
here = os.path.dirname(os.path.abspath(__file__))
2620
node_root = os.path.join(here, 'js')
2721
is_repo = os.path.exists(os.path.join(here, '.git'))
@@ -151,14 +145,12 @@ def run(self):
151145
data_files_spec=data_files_spec
152146
)
153147
cmdclass['jsdeps'] = NPM
154-
cmdclass['version'] = get_cmdclass()['version']
155-
cmdclass['build_py'] = js_prerelease(build_py)
156-
cmdclass['sdist'] = js_prerelease(sdist, strict=True)
157148
cmdclass['egg_info'] = js_prerelease(egg_info)
158149

159150
setup_args = {
160151
'name': 'nglview',
161-
'version': versioneer.get_version(),
152+
"use_scm_version": True,
153+
"setup_requires": ['setuptools_scm'],
162154
'description': 'IPython widget to interactively view molecular structures and trajectories.',
163155
'include_package_data': True,
164156
'license': "MIT",
@@ -196,7 +188,7 @@ def run(self):
196188
"htmd": ["htmd"],
197189
"qcelemental": ["qcelemental"],
198190
},
199-
'packages': set(find_packages() +
191+
'packages': set(find_packages() +
200192
['nglview',
201193
'nglview.static',
202194
'nglview.staticlab',

0 commit comments

Comments
 (0)