No project description provided
Project description
em_fares_to_xml
Rust powered Python module for converting fare objects coming from the batch fare service into xml Facebook feed items objects.
Testing and benchmarking.
In order to run tests type in the project root:
$ cargo test --no-default-features
For run benchmarking:
$ cargo bench --no-default-features
Dependencies:
python3-dev
package is required to bi installed to be able to compile.
Building the python module.
Use maturin for create/publish python module.
Compile
cargo build
Publish
docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin publish -i python3.9 -u -p
New Way to publish
docker run --rm --platform linux/amd64 -v $(pwd):/io ghcr.io/pyo3/maturin build -i python3.9
twine upload target\wheels\em_fares_to_xml--cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
this will ask the token from pypi
How to test with cargo on docker
- first time
docker build -t farelib .
- when running tests, examples:
docker run --rm -v $(pwd):/app farelib sh -c "cargo test --no-default-features"
docker run --rm -v $(pwd):/app farelib sh -c "cargo test --test test_parse_json"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file em_fares_to_xml-2.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: em_fares_to_xml-2.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eef9a1e154b5a60edd711601cfbd9effb8bc608e6e2fdca3d1cd653c6c2223f0 |
|
MD5 | 5e0f1fe3d6518ad4c7824c8a9e87e07e |
|
BLAKE2b-256 | 27f8399d8f1d44f4a4d6f47eccf5e8065744ca86b9f416742978ad1cba2d5690 |