ulist
is built and published bymaturin
, so make sure you havematurin
installed before developing anything;pytest
andpytest-cov
is the testing framework forulist
, we aim to 100% test coverage;Flake8
andmypy
are the linters forulist
, they help us to check the code style, bugs and type annotation;sphinx
auto-generates API documentation forulist
.
- Run
maturin develop
to 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 build
supports. - Run
maturin build
to build the wheels and store them in a folder (target/wheels by default). - Run
maturin build --release
If we want to benchmark the package.
- Run
cd tests && sh run.sh
to 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_home
andbranch
in theDockerfile
before building. - run
docker cp <containerId>:/home/ulist/ulist/target/wheels /host/path/target
to copy the wheel for Linux to local disk.