-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for scripts/get_version_from_toml.py
- Loading branch information
1 parent
153df5d
commit 35898c2
Showing
4 changed files
with
36 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[build-system] | ||
requires = [ "poetry-core>=1.0.4",] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = [ "py37", "py38", "py39", "py310",] | ||
exclude = "((.eggs | .git | .pytest_cache | build | dist))" | ||
|
||
[tool.poetry] | ||
name = "rasa" | ||
version = "3.7.1rc1" | ||
description = "Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants" | ||
authors = [ "Rasa Technologies GmbH <[email protected]>",] | ||
maintainers = [ "Tom Bocklisch <[email protected]>",] | ||
homepage = "https://rasa.com" | ||
repository = "https://github.com/rasahq/rasa" | ||
documentation = "https://rasa.com/docs" | ||
classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Topic :: Software Development :: Libraries",] | ||
keywords = [ "nlp", "machine-learning", "machine-learning-library", "bot", "bots", "botkit", "rasa conversational-agents", "conversational-ai", "chatbot", "chatbot-framework", "bot-framework",] | ||
include = [ "LICENSE.txt", "README.md", "rasa/shared/core/training_data/visualization.html", "rasa/cli/default_config.yml", "rasa/shared/importers/*", "rasa/utils/schemas/*", "rasa/keys",] | ||
readme = "README.md" | ||
license = "Apache-2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from scripts.get_version_from_toml import get_rasa_version_from_pyproject | ||
import os | ||
|
||
|
||
def test_version_from_toml(): | ||
pyproject_file_path = os.path.dirname(__file__) + '/test.toml' | ||
expected = "3.7.1rc1" | ||
version = get_rasa_version_from_pyproject(pyproject_file=pyproject_file_path) | ||
assert version == expected |