Skip to content

Commit

Permalink
fix: various pypi fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuwn committed Mar 23, 2022
1 parent 4462f6f commit ed05fdf
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 48 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[package]
name = "sen-py"
version = "0.1.0"
name = "senpy-club"
version = "0.1.1"
authors = ["Fuwn <[email protected]>"]
edition = "2021"
description = "The Senpy Club API Wrapper for Python"
readme = "README.rst"
homepage = "https://github.com/senpy-club/sen-py"
readme = "README.md"
homepage = "https://pypi.org/project/senpy-club/"
repository = "https://github.com/senpy-club/sen-py"
license = "GPL-3.0-only"
keywords = ["rust", "anime", "senpy", "senpy-club"]
categories = ["web-programming", "api-bindings"]

[lib]
name = "sen_py"
name = "senpy_club"
crate-type = ["cdylib"]

[dependencies]
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 🐍 `sen-py`

[![PyPI version](https://badge.fury.io/py/senpy-club.svg)](https://badge.fury.io/py/senpy-club)

The Senpy Club API Wrapper for Python

## Usage

```shell
poetry add senpy-club # Poetry
pip install senpy-club # PIP
```

## Examples

Examples can be found within the [`examples/`](./examples) directory.

## License

[GNU General Public License v3.0](https://github.com/senpy-club/sen-py/blob/main/LICENSE)
24 changes: 0 additions & 24 deletions README.rst

This file was deleted.

14 changes: 7 additions & 7 deletions examples/sen.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import sen_py
import senpy_club

print("SENPY_CLUB_API_BASE_URL:", sen_py.SENPY_CLUB_API_BASE_URL)
print("SENPY_CLUB_API_CURRENT_VERSION:", sen_py.SENPY_CLUB_API_CURRENT_VERSION)
print("SENPY_CLUB_API_URL:", sen_py.SENPY_CLUB_API_URL)
print("SENPY_CLUB_API_BASE_URL:", senpy_club.SENPY_CLUB_API_BASE_URL)
print("SENPY_CLUB_API_CURRENT_VERSION:", senpy_club.SENPY_CLUB_API_CURRENT_VERSION)
print("SENPY_CLUB_API_URL:", senpy_club.SENPY_CLUB_API_URL)

random: sen_py.Random = sen_py.Random()
random: senpy_club.Random = senpy_club.Random()
print("Random.image:", random.language)
print("Random.image:", random.image)

print("languages:", sen_py.languages())
print("language(\"C\"):", sen_py.language("C"))
print("languages:", senpy_club.languages())
print("language(\"C\"):", senpy_club.language("C"))
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tool.poetry]
name = "sen-py"
version = "0.1.0"
name = "senpy-club"
version = "0.1.1"
description = "The Senpy Club API Wrapper for Python"
authors = ["Fuwn <[email protected]>"]
license = "GPL-3.0-only"
readme = "README.rst"
readme = "README.md"
repository = "https://github.com/senpy-club/sen-py"
keywords = ["rust", "anime", "senpy", "senpy-club"]

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub fn status() -> PyResult<bool> {
}

#[pymodule]
fn sen_py(_py: Python<'_>, module: &PyModule) -> PyResult<()> {
fn senpy_club(_py: Python<'_>, module: &PyModule) -> PyResult<()> {
module.add("SENPY_CLUB_API_BASE_URL", SENPY_CLUB_API_BASE_URL)?;
module.add(
"SENPY_CLUB_API_CURRENT_VERSION",
Expand Down

0 comments on commit ed05fdf

Please sign in to comment.