Skip to content

Commit b955a55

Browse files
committed
Release 0.4.1
Also fix some clippy lints along the way
1 parent d725eef commit b955a55

File tree

6 files changed

+29
-11
lines changed

6 files changed

+29
-11
lines changed

Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["konstin <[email protected]>"]
33
name = "pyo3-pack"
4-
version = "0.4.0"
4+
version = "0.4.1"
55
description = "Build and publish crates with pyo3 bindings as python packages"
66
exclude = ["get-fourtytwo/**/*", "integration-test/**/*", "sysconfig/*"]
77
readme = "Readme.md"

Changelog.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.4.1] - 2018-12-15
9+
10+
### Added
11+
12+
* You can now specify [trove classifiers](https://pypi.org/classifiers/) in your Cargo.toml with `package.metadata.pyo3-pack.classifier``, e.g.
13+
```toml
14+
[package.metadata.pyo3-pack]
15+
classifier = ["Programming Language :: Python"]
16+
```
17+
818
## [0.4.0] - 2018-11-20
919

1020
### Changed
@@ -135,7 +145,8 @@ points-0.1.0-py2.py3-none-manylinux1_x86_64.whl | 2,8M | 752K | 85K
135145

136146
* Initial Release
137147

138-
[Unreleased]: https://github.com/pyo3/pyo3-pack/compare/v0.4.0...HEAD
148+
[Unreleased]: https://github.com/pyo3/pyo3-pack/compare/v0.4.1...HEAD
149+
[0.4.1]: https://github.com/pyo3/pyo3-pack/compare/v0.4.0...0.4.1
139150
[0.4.0]: https://github.com/pyo3/pyo3-pack/compare/v0.3.10...0.4.0
140151
[0.3.10]: https://github.com/pyo3/pyo3-pack/compare/v0.3.9...v0.3.10
141152
[0.3.9]: https://github.com/pyo3/pyo3-pack/compare/v0.3.8...v0.3.9

Readme.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can also install pyo3-pack from source, though it's an older version:
2424
cargo install pyo3-pack
2525
```
2626

27-
There are three main subsommands:
27+
There are three main subcommands:
2828

2929
* `publish` builds the crate into python packages and publishes them to pypi.
3030
* `build` builds the wheels and stores them in a folder (`target/wheels` by default), but doesn't upload them.
@@ -41,6 +41,13 @@ Pip allows adding so called console scripts, which are shell commands that execu
4141
get_42 = "get_fourtytwo:DummyClass.get_42"
4242
```
4343

44+
You can also specify [trove classifiers](https://pypi.org/classifiers/) in your Cargo.toml under `package.metadata.pyo3-pack.classifier`, e.g.:
45+
46+
```toml
47+
[package.metadata.pyo3-pack]
48+
classifier = ["Programming Language :: Python"]
49+
```
50+
4451
## pyo3 and rust-cpython
4552

4653
For pyo3 and rust-cpython, pyo3-pack can only build packages for installed python versions, so you might want to use pyenv, deadsnakes or docker for building. If you don't set your own interpreters with `-i`, a heuristic is used to search for python installations. You can get a list all found versions with the `list-python` subcommand.

src/build_options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl BuildOptions {
9898
pyo3_pack:
9999
Some(CargoTomlMetadataPyo3Pack {
100100
scripts: Some(ref scripts),
101-
classifier: _,
101+
..
102102
}),
103103
}) => scripts.clone(),
104104
_ => HashMap::new(),

src/metadata.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use crate::cargo_toml::CargoTomlMetadataPyo3Pack;
21
use crate::cargo_toml::CargoTomlMetadata;
2+
use crate::cargo_toml::CargoTomlMetadataPyo3Pack;
33
use crate::CargoToml;
44
use failure::{Error, ResultExt};
55
use regex::Regex;
@@ -86,8 +86,8 @@ impl Metadata21 {
8686
Some(CargoTomlMetadata {
8787
pyo3_pack:
8888
Some(CargoTomlMetadataPyo3Pack {
89-
scripts: _,
9089
classifier: Some(ref classifier),
90+
..
9191
}),
9292
}) => classifier.clone(),
9393
_ => Vec::new(),
@@ -115,7 +115,7 @@ impl Metadata21 {
115115
maintainer: None,
116116
maintainer_email: None,
117117
license: cargo_toml.package.license.clone(),
118-
classifier: classifier,
118+
classifier,
119119
requires_dist: Vec::new(),
120120
provides_dist: Vec::new(),
121121
obsoletes_dist: Vec::new(),

0 commit comments

Comments
 (0)