mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 21:44:16 +02:00
- Native runtime under bearhub/ (api, commons, gems, view/util, view/core, view/qt) - bauh/ compatibility re-export shims for legacy imports - Phase D: canonical __version__/__app_name__ in bearhub/__init__.py; pyproject.toml and setup.py point at bearhub package - Native gem loader at bearhub/view/core/gems.py - Namespace compatibility tests (159 tests passing) - Documentation: CHANGELOG [Unreleased], NAMESPACE_MIGRATION, ROADMAP, README, CONTRIBUTING, docs/qt6-migration.md, packaging/aur/README.md
72 lines
1.9 KiB
Python
72 lines
1.9 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 = 'bearhub'
|
|
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:
|
|
for line in f:
|
|
if line.startswith('__version__'):
|
|
exec(line)
|
|
break
|
|
|
|
|
|
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: [
|
|
"desktop/*",
|
|
"view/resources/locale/*",
|
|
"view/resources/img/*",
|
|
"view/resources/style/*",
|
|
"view/resources/style/*/img/*",
|
|
"gems/*/resources/img/*",
|
|
"gems/*/resources/locale/*",
|
|
],
|
|
},
|
|
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'
|
|
]
|
|
) |