forked from Jaded-Encoding-Thaumaturgy/vs-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (48 loc) · 1.56 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
#!/usr/bin/env python3
import setuptools
from pathlib import Path
package_name = 'vstools'
exec(Path(f'{package_name}/_metadata.py').read_text(), meta := dict[str, str]())
readme = Path('README.md').read_text()
requirements = Path('requirements.txt').read_text()
setuptools.setup(
name=package_name,
version=meta['__version__'],
author=meta['__author_name__'],
author_email=meta['__author_email__'],
maintainer=meta['__maintainer_name__'],
maintainer_email=meta['__maintainer_email__'],
description=meta['__doc__'],
long_description=readme,
long_description_content_type='text/markdown',
project_urls={
'Source Code': 'https://github.com/Jaded-Encoding-Thaumaturgy/vs-tools',
'Contact': 'https://discord.gg/XTpc6Fa9eB',
},
install_requires=requirements,
python_requires='>=3.12',
packages=[
package_name,
f'{package_name}.enums',
f'{package_name}.exceptions',
f'{package_name}.functions',
f'{package_name}.types',
f'{package_name}.utils'
],
package_data={
package_name: ['py.typed', 'utils/*.json']
},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
command_options={
"build_sphinx": {
"project": ("setup.py", package_name),
"version": ("setup.py", meta['__version__']),
"release": ("setup.py", meta['__version__']),
"source_dir": ("setup.py", "docs")
}
}
)