-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This release brings experimental `async-evolution` with other improvements * update dependencies * fix documentation issues * refactor `HeuristicContext` trait to avoid using `HeuristicPopulation` directly from it * improve non-determinism based selectors logic * add experimental feature `async-evolution`
- Loading branch information
1 parent
bbd2f1b
commit 794028b
Showing
12 changed files
with
136 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
name: Publish to PyPI with maturin | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
defaults: | ||
run: | ||
working-directory: ./vrp-cli | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --find-interpreter | ||
sccache: 'true' | ||
manylinux: auto | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
windows: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
target: [x64, x86] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
architecture: ${{ matrix.target }} | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --find-interpreter | ||
sccache: 'true' | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
macos: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
target: [x86_64, aarch64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --find-interpreter | ||
sccache: 'true' | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
sdist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build sdist | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
command: sdist | ||
args: --out dist | ||
- name: Upload sdist | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
if: "startsWith(github.ref, 'refs/tags/')" | ||
needs: [linux, windows, macos, sdist] | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: wheels | ||
- name: Publish to PyPI | ||
uses: PyO3/maturin-action@v1 | ||
env: | ||
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
with: | ||
command: upload | ||
args: --skip-existing * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "json-pragmatic" | ||
version = "1.21.0" | ||
version = "1.21.1" | ||
authors = ["Ilya Builuk <[email protected]>"] | ||
license = "Apache-2.0" | ||
keywords = ["vrp", "optimization"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "rosomaxa" | ||
version = "0.5.0" | ||
version = "0.6.0" | ||
edition = "2021" | ||
authors = ["Ilya Builuk <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "vrp-cli" | ||
version = "1.21.0" | ||
version = "1.21.1" | ||
authors = ["Ilya Builuk <[email protected]>"] | ||
license = "Apache-2.0" | ||
keywords = ["vrp", "optimization"] | ||
|
@@ -24,9 +24,9 @@ name = "vrp_cli" | |
crate-type = ["cdylib", "lib"] | ||
|
||
[dependencies] | ||
vrp-core = { path = "../vrp-core", version = "1.21.0", optional = true } | ||
vrp-scientific = { path = "../vrp-scientific", optional = true, version = "1.21.0" } | ||
vrp-pragmatic = { path = "../vrp-pragmatic", version = "1.21.0" } | ||
vrp-core = { path = "../vrp-core", version = "1.21.1", optional = true } | ||
vrp-scientific = { path = "../vrp-scientific", optional = true, version = "1.21.1" } | ||
vrp-pragmatic = { path = "../vrp-pragmatic", version = "1.21.1" } | ||
|
||
csv = { version = "1.2.2", optional = true } | ||
serde_json = "1.0.96" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ mod cli { | |
|
||
pub fn get_app() -> Command { | ||
Command::new("Vehicle Routing Problem Solver") | ||
.version("1.21.0") | ||
.version("1.21.1") | ||
.author("Ilya Builuk <[email protected]>") | ||
.about("A command line interface to Vehicle Routing Problem solver") | ||
.subcommand(get_analyze_app()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "vrp-core" | ||
version = "1.21.0" | ||
version = "1.21.1" | ||
authors = ["Ilya Builuk <[email protected]>"] | ||
license = "Apache-2.0" | ||
keywords = ["vrp", "optimization"] | ||
|
@@ -16,7 +16,7 @@ default = ["rosomaxa"] | |
async-evolution = ["rosomaxa/async-evolution"] | ||
|
||
[dependencies] | ||
rosomaxa = { path = "../rosomaxa", version = "0.5.0", optional = true } | ||
rosomaxa = { path = "../rosomaxa", version = "0.6.0", optional = true } | ||
|
||
rayon = "1.7.0" | ||
rand = { version = "0.8.5", features = ["small_rng"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "vrp-pragmatic" | ||
version = "1.21.0" | ||
version = "1.21.1" | ||
authors = ["Ilya Builuk <[email protected]>"] | ||
license = "Apache-2.0" | ||
keywords = ["vrp", "optimization"] | ||
|
@@ -12,7 +12,7 @@ edition = "2021" | |
description = "An extension logic for solving rich VRP" | ||
|
||
[dependencies] | ||
vrp-core = { path = "../vrp-core", version = "1.21.0" } | ||
vrp-core = { path = "../vrp-core", version = "1.21.1" } | ||
|
||
serde = { version = "1.0.164", features = ["derive"] } | ||
serde_json = "1.0.96" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "vrp-scientific" | ||
version = "1.21.0" | ||
version = "1.21.1" | ||
authors = ["Ilya Builuk <[email protected]>"] | ||
license = "Apache-2.0" | ||
keywords = ["vrp", "optimization"] | ||
|
@@ -12,4 +12,4 @@ edition = "2021" | |
description = "An extension logic for solving scientific VRP" | ||
|
||
[dependencies] | ||
vrp-core = { path = "../vrp-core", version = "1.21.0" } | ||
vrp-core = { path = "../vrp-core", version = "1.21.1" } |