-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
71 lines (62 loc) · 1.91 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import subprocess
import setuptools
from setuptools import setup
from disk_treemap import __version__
class BuildStatic(setuptools.Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
cwd = 'disk_treemap/static'
subprocess.call(['npm', 'install'], cwd=cwd)
subprocess.call(['npm', 'run', 'build', '--', '--prod'], cwd=cwd)
with open('README.md', 'r', encoding="utf-8") as fh:
long_description = fh.read()
setup(
name='disk_treemap',
version=__version__,
author='Epix Zhang',
packages=['disk_treemap'],
description='Just another disk usage analyzer with treemap GUI.',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/exzhawk/disk_treemap',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: System Administrators",
"Programming Language :: JavaScript",
"Topic :: Desktop Environment :: File Managers",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: System :: Filesystems",
"Topic :: Utilities",
],
python_requires='>=3.6',
license='MIT',
zip_safe=True,
include_package_data=True,
cmdclass={
'build_static': BuildStatic,
},
install_requires=[
'flask>=2.0',
'tqdm',
'flask-compress',
'boto3',
],
entry_points={
'console_scripts': [
'disk-treemap=disk_treemap.main:main',
]
}
)