Files
bearhub/setup.py
Sebastian Palencsar 4a119968bc Release 0.10.7-bearhub.6
Complete M1 identity work, fix runtime URL regressions, repair the test
suite, add CI, migrate packaging/AppImage branding to Bearhub, and
document the Qt6/PySide6 migration plan.
2026-06-26 19:22:28 +02:00

70 lines
1.8 KiB
Python

import os
from setuptools import setup, find_packages
DESCRIPTION = (
"Community-maintained fork of bauh focused on modern Linux compatibility"
)
AUTHOR = "Vinicius Moreira"
AUTHOR_EMAIL = "vinicius_fmoreira@hotmail.com"
DIST_NAME = 'bearhub'
APP_PACKAGE = 'bauh'
URL = "https://github.com/spalencsar/" + DIST_NAME
file_dir = os.path.dirname(os.path.abspath(__file__))
if os.getenv('BAUH_SETUP_NO_REQS'):
requirements = []
else:
with open(f'{file_dir}/requirements.txt', 'r') as f:
requirements = [line.strip() for line in f.readlines() if line]
with open(file_dir + '/{}/__init__.py'.format(APP_PACKAGE), 'r') as f:
exec(f.readlines()[0])
setup(
name=DIST_NAME,
version=eval('__version__'),
description=DESCRIPTION,
long_description=DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
python_requires=">=3.5",
url=URL,
packages=find_packages(exclude=["tests.*", "tests"]),
package_data={
APP_PACKAGE: [
"view/resources/locale/*",
"view/resources/img/*",
"view/resources/style/*",
"view/resources/style/*/img/*",
"gems/*/resources/img/*",
"gems/*/resources/locale/*",
],
"bearhub": ["desktop/*"],
},
install_requires=requirements,
test_suite="tests",
entry_points={
"console_scripts": [
"bearhub=bearhub.app:main",
"bearhub-tray=bearhub.app:tray",
"bearhub-cli=bearhub.cli.app:main"
]
},
include_package_data=True,
license="zlib/libpng",
classifiers=[
'Topic :: Utilities',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8'
]
)