-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
51 lines (45 loc) · 1.16 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
import shutil
import subprocess
from setuptools import setup, find_namespace_packages
import setuptools.command.build
class Build(setuptools.command.build.build):
"""
Generate resources_rc.py before building the source distribution.
"""
def run(self):
pyside6_rcc = shutil.which("pyside6-rcc")
subprocess.check_call(
[
pyside6_rcc,
"-o",
"src/cocktail/resources/resources_rc.py",
"resources/resources.qrc",
]
)
setuptools.command.build.build.run(self)
setup(
name="cocktail",
version="0.4.0",
description="Cocktail",
package_dir={"": "src"},
package_data={"": ["**/*.sql"]},
packages=find_namespace_packages(where="src"),
install_requires=[
"PySide6",
"qtawesome",
"platformdirs",
"blurhash-python",
],
entry_points={
"console_scripts": [
"cocktail = cocktail.ui.__main__:main",
],
},
extras_require={
"dev": ["pre-commit", "black", "pyinstaller"],
"dist": ["pyinstaller"],
},
cmdclass={
"build": Build,
},
)