Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename CLI and Python packages #95

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is autogenerated by maturin v1.7.1
# To update, run
#
# maturin generate-ci github --manifest-path popgetter_py/Cargo.toml
# maturin generate-ci github --manifest-path popgetter-py/Cargo.toml
#
name: Python

Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
target: ${{ matrix.platform.target }}
args: >
--release
--manifest-path popgetter_py/Cargo.toml
--manifest-path popgetter-py/Cargo.toml
--out dist
--find-interpreter
sccache: "true"
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.platform.target }}
# args: --release --out dist --find-interpreter --manifest-path popgetter_py/Cargo.toml
# args: --release --out dist --find-interpreter --manifest-path popgetter-py/Cargo.toml
# sccache: "true"
# before-script-linux: |
# # TODO: update with package instructions specific to target for openssl
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
target: ${{ matrix.platform.target }}
args: >
--release
--manifest-path popgetter_py/Cargo.toml
--manifest-path popgetter-py/Cargo.toml
--out dist
--find-interpreter
sccache: "true"
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
target: ${{ matrix.platform.target }}
args: >
--release
--manifest-path popgetter_py/Cargo.toml
--manifest-path popgetter-py/Cargo.toml
--out dist
--find-interpreter
sccache: "true"
Expand All @@ -183,7 +183,7 @@ jobs:
with:
command: sdist
args: >
--manifest-path popgetter_py/Cargo.toml
--manifest-path popgetter-py/Cargo.toml
--out dist
- name: Upload sdist
uses: actions/upload-artifact@v4
Expand Down
52 changes: 26 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
[workspace]
members = [
"popgetter",
"popgetter_cli",
"popgetter_py"
]
members = ["popgetter-core", "popgetter-cli", "popgetter-py"]

resolver = "2"

Expand Down
4 changes: 2 additions & 2 deletions popgetter_cli/Cargo.toml → popgetter-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "popgetter_cli"
name = "popgetter-cli"
version = "0.2.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -17,7 +17,7 @@ itertools = { workspace = true }
log = { workspace = true }
nonempty = { workspace = true, features = ["serialize"] }
polars = { workspace = true, features = ["lazy", "is_in", "http", "streaming", "parquet", "polars-io", "regex", "strings", "rows"] }
popgetter = { path = "../popgetter" }
popgetter-core = { path = "../popgetter-core" }
pretty_env_logger = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion popgetter_cli/src/cli.rs → popgetter-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use enum_dispatch::enum_dispatch;
use log::{debug, info};
use nonempty::nonempty;
use polars::frame::DataFrame;
use popgetter::{
use popgetter_core::{
config::Config,
data_request_spec::{DataRequestSpec, RegionSpec},
formatters::{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::sync::OnceLock;
use comfy_table::{presets::NOTHING, *};
use itertools::izip;
use polars::{frame::DataFrame, prelude::SortMultipleOptions};
use popgetter::{metadata::ExpandedMetadata, search::SearchResults, COL};
use popgetter_core::{metadata::ExpandedMetadata, search::SearchResults, COL};

static LOOKUP: OnceLock<HashMap<&'static str, &'static str>> = OnceLock::new();

Expand Down
2 changes: 1 addition & 1 deletion popgetter_cli/src/main.rs → popgetter-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anyhow::Result;
use clap::Parser;
use cli::{Cli, RunCommand};
use log::debug;
use popgetter::config::Config;
use popgetter_core::config::Config;

const DEFAULT_LOGGING_LEVEL: &str = "warn";

Expand Down
2 changes: 1 addition & 1 deletion popgetter/Cargo.toml → popgetter-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "popgetter"
name = "popgetter-core"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions popgetter_py/Cargo.toml → popgetter-py/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "popgetter_py"
name = "popgetter-py"
version = "0.1.0"
edition = "2021"

Expand All @@ -11,7 +11,7 @@ crate-type = ["cdylib"]
[dependencies]
anyhow = { workspace = true }
polars = { workspace = true, features = ["lazy", "is_in", "http", "streaming", "parquet", "polars-io", "regex", "strings", "rows"] }
popgetter = { path = "../popgetter" }
popgetter-core = { path = "../popgetter-core" }
pyo3 = { workspace = true, features = ["anyhow", "experimental-async"] }
pyo3-polars ={ workspace = true }
serde = { workspace = true }
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion popgetter_py/src/lib.rs → popgetter-py/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::default::Default;

use ::popgetter::{
use ::popgetter_core::{
config::Config,
data_request_spec::DataRequestSpec,
search::{
Expand Down
Loading