Skip to content

Commit

Permalink
Merge pull request #67 from remi-dupre/gen-stubs
Browse files Browse the repository at this point in the history
fix python package name for deployment
  • Loading branch information
remi-dupre authored Feb 3, 2025
2 parents d7562c1 + b2ff18c commit a08f742
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 27 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,11 @@ jobs:
[".", "compact-calendar", "opening-hours-py", "opening-hours-syntax"]
features: [""]
include:
- crate: "."
features: "log"
- crate: "."
features: "log,auto-country"
- crate: "."
features: "log,auto-country,auto-timezone"
- crate: "."
features: "log,auto-timezone"
- crate: "opening-hours-syntax"
features: "log"
- { crate: ".", features: "log" }
- { crate: ".", features: "log,auto-country" }
- { crate: ".", features: "log,auto-country,auto-timezone" }
- { crate: ".", features: "log,auto-timezone" }
- { crate: "opening-hours-syntax", features: "log" }
defaults:
run:
working-directory: ${{ matrix.crate }}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.0.2

### Python

- Fix deployment.

## 1.0.1

### Python
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opening-hours"
version = "1.0.1"
version = "1.0.2"
authors = ["Rémi Dupré <remi@dupre.io>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand Down Expand Up @@ -34,9 +34,9 @@ disable-test-timeouts = []

[dependencies]
chrono = "0.4"
compact-calendar = { path = "compact-calendar", version = "1.0.1" }
compact-calendar = { path = "compact-calendar", version = "1.0.2" }
flate2 = "1.0"
opening-hours-syntax = { path = "opening-hours-syntax", version = "1.0.1" }
opening-hours-syntax = { path = "opening-hours-syntax", version = "1.0.2" }
sunrise-next = "1.2"

# Feature: log (default)
Expand All @@ -51,7 +51,7 @@ tzf-rs = { version = "0.4", default-features = false, optional = true }

[build-dependencies]
chrono = "0.4"
compact-calendar = { path = "compact-calendar", version = "1.0.1" }
compact-calendar = { path = "compact-calendar", version = "1.0.2" }
country-boundaries = { version = "1.2", optional = true }
flate2 = "1.0"
rustc_version = "0.4.0"
Expand Down
2 changes: 1 addition & 1 deletion compact-calendar/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "compact-calendar"
version = "1.0.1"
version = "1.0.2"
authors = ["Rémi Dupré <remi@dupre.io>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions opening-hours-py/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opening-hours-py"
version = "1.0.1"
version = "1.0.2"
authors = ["Rémi Dupré <remi@dupre.io>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand All @@ -23,12 +23,12 @@ pyo3-stub-gen = "0.7"
[dependencies.opening-hours-rs]
package = "opening-hours"
path = ".."
version = "1.0.1"
version = "1.0.2"
features = ["log", "auto-country", "auto-timezone"]

[dependencies.opening-hours-syntax]
path = "../opening-hours-syntax"
version = "1.0.1"
version = "1.0.2"
features = ["log"]

[dependencies.pyo3]
Expand Down
2 changes: 1 addition & 1 deletion opening-hours-py/src/bin/stub_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use std::fs::File;
use std::io::Read;

const STUB_SOURCE_PATH: &str = "opening_hours.pyi";
const STUB_SOURCE_PATH: &str = "opening_hours_py.pyi";
const STUB_TARGET_PATH: &str = "../opening_hours.pyi";

// ⚠️ Do not copy this code as it is optimized for concision and not performance.
Expand Down
2 changes: 1 addition & 1 deletion opening-hours-syntax/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opening-hours-syntax"
version = "1.0.1"
version = "1.0.2"
authors = ["Rémi Dupré <remi@dupre.io>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "opening_hours"
name = "opening_hours_py"
dynamic = ["version"]

[tool.poetry]
name = "opening_hours"
version = "1.0.1"
name = "opening_hours_py"
version = "1.0.2"
description = "A parser for the opening_hours fields from OpenStreetMap."
authors = ["Rémi Dupré <remi@dupre.io>"]
package-mode = false
Expand Down

0 comments on commit a08f742

Please sign in to comment.