From 6b02ecd5147d53c9eb05dd3f7334fe8f78a04287 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 31 Mar 2024 00:20:18 +0100 Subject: Replace manually written be script with standard entry-point. --- be | 26 -------------------------- pyproject.toml | 21 +++++++++++++-------- 2 files changed, 13 insertions(+), 34 deletions(-) delete mode 100755 be diff --git a/be b/be deleted file mode 100755 index 8a3d1d9..0000000 --- a/be +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env python -# Copyright (C) 2005-2012 Aaron Bentley -# Chris Ball -# Gianluca Montecchi -# Oleg Romanyshyn -# W. Trevor King -# -# This file is part of Bugs Everywhere. -# -# Bugs Everywhere is free software: you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the Free -# Software Foundation, either version 2 of the License, or (at your option) any -# later version. -# -# Bugs Everywhere is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -# more details. -# -# You should have received a copy of the GNU General Public License along with -# Bugs Everywhere. If not, see . - -import sys -import libbe.ui.command_line - -sys.exit(libbe.ui.command_line.main()) diff --git a/pyproject.toml b/pyproject.toml index 6db2b6f..8dd1fe6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,19 @@ classifiers = ["Development Status :: 4 - Beta", description = "Bugtracker supporting distributed revision control" readme = "README" +[project.scripts] +be = "libbe.ui.command_line:main" + +[tool.setuptools] +packages=['libbe', + 'libbe.command', + 'libbe.storage', + 'libbe.storage.util', + 'libbe.storage.vcs', + 'libbe.ui', + 'libbe.ui.util', + 'libbe.util'] + [tool.setuptools_scm] @@ -48,14 +61,6 @@ readme = "README" # version.version())), # platforms=['all'], # long_description=open(os.path.join(_this_dir, 'README.rst'), 'r').read(), -# packages=['libbe', -# 'libbe.command', -# 'libbe.storage', -# 'libbe.storage.util', -# 'libbe.storage.vcs', -# 'libbe.ui', -# 'libbe.ui.util', -# 'libbe.util'], # scripts=['be'], # data_files=data_files, # requires=[ -- cgit