@@ -501,7 +501,7 @@ import os
501
501
502
502
from jupyter_packaging import (
503
503
create_cmdclass , install_npm , ensure_targets ,
504
- combine_commands , ensure_python , get_version ,
504
+ combine_commands , get_version ,
505
505
)
506
506
import setuptools
507
507
@@ -510,9 +510,6 @@ HERE = os.path.abspath(os.path.dirname(__file__))
510
510
# The name of the project
511
511
name =" jlab_ext_example"
512
512
513
- # Ensure a valid python version
514
- ensure_python (" >=3.6" )
515
-
516
513
# Get our version
517
514
version = get_version (os .path .join (name , " _version.py" ))
518
515
@@ -562,10 +559,11 @@ setup_args = dict(
562
559
cmdclass = cmdclass ,
563
560
packages =setuptools .find_packages (),
564
561
install_requires =[
565
- " jupyterlab~=3.0.0b3 " ,
562
+ " jupyterlab~=3.0.0b4 " ,
566
563
],
567
564
zip_safe =False ,
568
565
include_package_data =True ,
566
+ python_requires =" >=3.6" ,
569
567
license =" BSD-3-Clause" ,
570
568
platforms =" Linux, Mac OS X, Windows" ,
571
569
keywords =[" Jupyter" , " JupyterLab" ],
@@ -584,7 +582,6 @@ setup_args = dict(
584
582
if __name__ == " __main__" :
585
583
setuptools .setup (** setup_args )
586
584
587
-
588
585
` ` `
589
586
590
587
But in this case, it is a bit more complicated to build the frontend extension and ship it
@@ -593,7 +590,7 @@ the frontend NPM package needs to be built and inserted in the Python package. T
593
590
done using a special ` cmdclass ` :
594
591
595
592
` ` ` py
596
- # setup .py #L45 - L53
593
+ # setup .py #L42 - L50
597
594
598
595
cmdclass = create_cmdclass (" jsdeps" ,
599
596
package_data_spec =package_data_spec ,
@@ -609,15 +606,15 @@ cmdclass["jsdeps"] = combine_commands(
609
606
Basically it will build the frontend NPM package:
610
607
611
608
` ` ` py
612
- # setup .py #L51 - L51
609
+ # setup .py #L48 - L48
613
610
614
611
install_npm (HERE , build_cmd =" build:all" , npm =[" jlpm" ]),
615
612
` ` `
616
613
617
614
It will ensure one of the generated JS files is ` lib /jlabextexample .js ` :
618
615
619
616
` ` ` py
620
- # setup .py #L26 - L29
617
+ # setup .py #L23 - L26
621
618
622
619
jstargets = [
623
620
os .path .join (HERE , " lib" , " index.js" ),
0 commit comments