-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (53 loc) · 1.68 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
import subprocess
from pathlib import Path
from setuptools import find_packages, setup
from setuptools.command.develop import develop
from setuptools.command.install import install
def _install_gui_web_npm_deps():
subprocess.run("cd bigsheets/adapters/ui/gui/web-files && npm i", shell=True)
class PostDevelopCommand(develop):
def run(self):
super().run()
_install_gui_web_npm_deps()
class PostInstallCommand(install):
def run(self):
super().run()
_install_gui_web_npm_deps()
setup(
name="BigSheets",
version="1.0b1",
url="https://github.com/bustawin/bigsheets",
project_urls={
"Documentation": "https://github.com/bustawin/bigsheets",
"Code": "https://github.com/bustawin/bigsheets",
"Issue tracker": "https://github.com/bustawin/bigsheets/issues/",
},
license="Private",
author="Xavier Bustamante",
author_email="[email protected]",
description="Sheets",
packages=find_packages(),
include_package_data=True,
python_requires=">=3.8",
long_description=Path("README.rst").read_text("utf8"),
install_requires=[
"pywebview",
"python-decouple",
"punq",
"zipstream_new",
"more_itertools",
"ordered-set-37",
],
extras_require={
"test": ["pytest"],
"build": ["pyinstaller"],
"coverage": ["coverage"],
},
cmdclass={"develop": PostDevelopCommand, "install": PostInstallCommand},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
],
)