ulistis built and published bymaturin, so make sure you havematurininstalled before developing anything;pytestandpytest-covis the testing framework forulist, we aim to 100% test coverage;Flake8andmypyare the linters forulist, they help us to check the code style, bugs and type annotation;sphinxauto-generates API documentation forulist.
- Run
maturin developto build the crate and install it as a python module directly in the current virtualenv. Note that while maturin develop is faster, it doesn’t support all the features that running pip install aftermaturin buildsupports. - Run
maturin buildto build the wheels and store them in a folder (target/wheels by default). - Run
maturin build --releaseIf we want to benchmark the package.
- Run
cd tests && sh run.shto test your branch locally.
The docker images before version 0.5.0 are saved in https://hub.docker.com/repository/docker/tushushu/ulist
- Build by docker, please run
docker run -it -i <image ID>, and then runmaturin build. - Customize the build, please consider to change the arguments
gh_username,ulist_homeandbranchin theDockerfilebefore building. - run
docker cp <containerId>:/home/ulist/ulist/target/wheels /host/path/targetto copy the wheel for Linux to local disk.