Skip to content

Commit

Permalink
Add Hatch configuration. Command line arguments are not working, i.e.…
Browse files Browse the repository at this point in the history
… ride --version
  • Loading branch information
HelioGuilherme66 committed Sep 15, 2024
1 parent 414d250 commit b6b2e5b
Show file tree
Hide file tree
Showing 6 changed files with 595 additions and 341 deletions.
95 changes: 95 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "robotframework-ride"
dynamic = ["version"]
description = "RIDE :: Robot Framework Test Data Editor"
license = "Apache-2.0"
license-files = { paths = ["LICENSE.txt"] }
requires-python = ">=3.8, <3.13"
authors = [
{ name = "Robot Framework Developers", email = "[email protected]" },
]
maintainers = [
{ name = "Hélio Guilherme", email = "[email protected]" },
]
keywords = [
"robotframework",
"testautomation",
"testing",
"test editor",
"IDE",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"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",
"Topic :: Software Development :: Testing",
]
dependencies = [
"psutil",
"Pygments",
"PyPubSub",
"Pywin32; platform_system == 'Windows'",
"wxPython",
]

[project.urls]
Download = "https://pypi.python.org/pypi/robotframework-ride"
Homepage = "https://github.com/robotframework/RIDE/"

[tool.hatch.version]
path = "src/robotide/version.py"

[tool.hatch.build.targets.sdist]
include = [
"/src",
]
[tool.hatch.build.targets.wheel]
packages = ["src/robotide"]

[project.scripts]
ride_postinstall = "robotide.postinstall:main"

[project.gui-scripts]
ride = "robotide:main"

[tool.hatch.envs.test]
dependencies = [
"pytest",
"coverage",
]

[[tool.hatch.envs.test.matrix]]
python = ["3.12"]
version = ["2.1b1"]

[tool.poetry]
name = "robotframework-ride"
version = "2.1b1"
description = "RIDE :: Robot Framework Test Data Editor"
authors = ["Robot Framework Developers <[email protected]>"]
license = "Apache-2.0 license"
readme = "README.adoc"
packages = [{include = "robotide"}]

[tool.poetry.dependencies]
python = "^3.8"
wxPython = "^4.0.1"
pywin32 = { version = "*", markers = "sys_platform == 'win32'" }
pygments = "*"
robotframework = "*"
pypubsub = "*"
psutil = "*"

[tool.poetry.group.test.dependencies]
pytest = "*"
pytest-mock = "*"
coverage = "*"
2 changes: 1 addition & 1 deletion src/robotide/application/updatenotifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from .. import version
from ..utils.versioncomparator import cmp_versions, parse_version
from ..widgets import ButtonWithHandler, HtmlWindow, RIDEDialog
from ..postinstall.__main__ import MessageDialog
from ..postinstall import MessageDialog

_ = wx.GetTranslation # To keep linter/code analyser happy
builtins.__dict__['_'] = wx.GetTranslation
Expand Down
Loading

0 comments on commit b6b2e5b

Please sign in to comment.