-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (58 loc) · 2.13 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
import os
import sys
import shutil
from setuptools import setup, find_packages
from webtk import __version__ as version
def read_file(fn: str) -> str:
f = open(os.path.join(cwd, fn), 'r', encoding=encoding)
result = f.read()
f.close()
return result
encoding = 'utf-8'
cwd = os.path.dirname(__file__) or os.getcwd()
readme_content = read_file('README.md')
license_content = read_file('LICENSE.md')
requirements_content = read_file('requirements.txt')
if 'sdist' in sys.argv or 'bdist_wheel' in sys.argv:
dist_path = os.path.join(cwd, 'dist')
if os.path.isdir(dist_path):
shutil.rmtree(dist_path)
setup(
name='pwebtk',
author='Pixelsuft',
url='https://github.com/Pyxelsuft/webtk',
project_urls={
'Readme': 'https://github.com/Pyxelsuft/webtk/blob/main/README.md',
'Issue tracker': 'https://github.com/Pyxelsuft/webtk/issues'
},
version=version,
packages=find_packages(),
license='GPLV3+',
description='Simple python library for creating web-based desktop apps',
long_description=readme_content,
long_description_content_type='text/markdown',
include_package_data=True,
install_requires=tuple(x for x in requirements_content.split('\n') if x.strip()),
python_requires='>=3.6',
classifiers=[
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Topic :: Multimedia',
'Topic :: Software Development',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12'
],
zip_safe=True,
py_modules=['webtk'],
package_dir={'': '.'},
keywords='webtk'
)