-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·83 lines (75 loc) · 2.21 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python3
"""
##################################################################################
#
# Website As App
# Run any website as standalone desktop application
#
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
# @copyright 2023-2024 Marcin Orlowski
# @license https://www.opensource.org/licenses/mit-license.php MIT
# @link https://github.com/MarcinOrlowski/website-as-app
#
# @file setup.py
#
#####
#
# https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
#
# python -m venv venv
# source venv/bin/activate
# pip install -r requirements-dev.txt
# python -m build
# # Reinstall the app (do not do "install --upgrade" as cached bytecode can not be updated)
# pip uninstall --yes dist/website_as_app-1.0.0-py3-none-any.whl
# # intentionally no --upgrade for install to enforce conflict if not uninstalled fully first.
# pip install dist/website_as_app-1.0.0-py3-none-any.whl
# twine upload dist/*
#
"""
from setuptools import setup, find_packages
from websiteapp.const import Const
with open('README.md', 'r') as fh:
readme = fh.read()
setup(
name=Const.APP_PROJECT_NAME,
version=Const.APP_VERSION,
packages=find_packages(),
install_requires=[
'argparse>=1.4.0',
'PySide6',
'PyQtWebEngine',
'fasteners',
],
entry_points={
'console_scripts': [
'webapp = websiteapp.webapp:WebApp.run',
'runasapp = websiteapp.webapp:WebApp.run',
],
},
package_data={
'websiteapp': [
'icons/default.png',
'icons/logo.png',
],
},
author='Marcin Orlowski',
author_email='[email protected]',
description=Const.APP_DESCRIPTION,
long_description=readme,
long_description_content_type='text/markdown',
url=Const.APP_URL,
keywords='webapp desktop app',
project_urls={
'Bug Tracker': f'{Const.APP_URL}/issues/',
'Documentation': Const.APP_URL,
'Source Code': Const.APP_URL,
},
# https://choosealicense.com/
license='MIT License',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
)