aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-03-31 00:20:18 +0100
committerMatěj Cepl <mcepl@cepl.eu>2024-03-31 00:20:18 +0100
commit6b02ecd5147d53c9eb05dd3f7334fe8f78a04287 (patch)
tree184cf588dd6617d195f8454938deece02fd68de2
parent0436f5cebd288b906288be603b309907ca74be83 (diff)
downloadbugseverywhere-6b02ecd5147d53c9eb05dd3f7334fe8f78a04287.tar.gz
Replace manually written be script with standard entry-point.
-rwxr-xr-xbe26
-rw-r--r--pyproject.toml21
2 files changed, 13 insertions, 34 deletions
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 <abentley@panoramicfeedback.com>
-# Chris Ball <cjb@laptop.org>
-# Gianluca Montecchi <gian@grys.it>
-# Oleg Romanyshyn <oromanyshyn@panoramicfeedback.com>
-# W. Trevor King <wking@tremily.us>
-#
-# 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 <http://www.gnu.org/licenses/>.
-
-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=[