From eea5188a462bcf46957fc63d408ac8418bc02193 Mon Sep 17 00:00:00 2001 From: Tatu Aalto Date: Sat, 30 Mar 2024 02:31:32 +0200 Subject: [PATCH] Define build and version --- pyproject.toml | 13 +++++++++++++ requirements-dev.txt | 2 -- robotframework_browser_translation_fi/__init__.py | 2 ++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c8344ed..bc8649b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,11 @@ classifiers = [ "Framework :: Robot Framework :: Library", "Topic :: Software Development :: Testing :: Acceptance", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", ] @@ -32,6 +37,14 @@ packages = ["robotframework_browser_translation_fi"] [tool.setuptools.package-data] robotframework_browser_translation_fi = ["*.json"] +[tool.semantic_release] +version_toml = [ + "pyproject.toml:project.version", +] +version_variables = [ + "robotframework_browser_translation_fi/__init__.py:__version__", +] + [tool.black] target-version = ['py38'] exclude = ''' diff --git a/requirements-dev.txt b/requirements-dev.txt index e9dd36a..2f08bb9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,8 +2,6 @@ black >= 24.1.1 ruff >= 0.2.1 invoke >= 2.2.0 pytest >= 7.4.2 -twine >= 4.0.2 -rellu >= 0.7 approvaltests == 11.1.3 robotframework-tidy >= 4.9.0 python-semantic-release >= 9.3.1 diff --git a/robotframework_browser_translation_fi/__init__.py b/robotframework_browser_translation_fi/__init__.py index 4437049..59450c8 100644 --- a/robotframework_browser_translation_fi/__init__.py +++ b/robotframework_browser_translation_fi/__init__.py @@ -14,6 +14,8 @@ from pathlib import Path from typing import TypedDict +__version__ = "0.0.1" + class Language(TypedDict): language: str