packaging adjustments

This commit is contained in:
MaxOhn
2021-12-29 11:07:42 +01:00
parent b94b8b4afb
commit df29791454
2 changed files with 18 additions and 3 deletions
+5
View File
@@ -64,9 +64,14 @@ params1 = ScoreParams(
)
params2 = ScoreParams(mods = 24)
# provide params for a single score, returns a list with one element
[result] = calculator.calculate(params1)
# provide multiple params
results = calculator.calculate([params1, params2])
assert result == results[0]
print(f'PP: {results[0].pp}/{results[1].pp} | Stars: {results[1].stars}')
```
+13 -3
View File
@@ -1,14 +1,24 @@
[build-system]
requires = ["maturin>=0.12,<0.13"]
requires = ["maturin>=0.12,<0.13", "setuptools", "setuptools-rust", "wheel"]
build-backend = "maturin"
[project]
name = "rosu-pp-py"
version = "0.4.0"
requires-python = ">=3.6"
description = "osu! difficulty and pp calculation for all modes"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
packages = [{ include = "rosu_pp_py" }]
authors = [{ name = "Max Ohn", email = "ohn.m@hotmail.de" }]
readme = "README.md"
license = { file = "LICENSE" }
repository = "https://github.com/MaxOhn/rosu-pp-py"
keywords = ["osu", "pp", "stars", "performance", "difficulty"]