-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·56 lines (53 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
55
56
#!/usr/bin/env python3
from typing import Dict, Any
from pathlib import Path
import setuptools
pkg = 'xpdt'
version_file = Path(pkg) / '__version__.py'
v: Dict[str, Any] = {}
exec(version_file.read_text(), v)
setuptools.setup(
name=v['__title__'],
version=v['__version__'],
description=v['__description__'],
author=v['__author__'],
author_email=v['__author_email__'],
package_data={
pkg: ['py.typed'],
},
install_requires=[
'jinja2',
'toml',
],
long_description=Path('README.md').read_text(),
long_description_content_type="text/markdown",
include_package_data=True,
license=v['__license__'],
platforms='any',
packages=[
pkg,
f'{pkg}.templates',
],
url=v['__url__'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Operating System :: OS Independent',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
],
entry_points={
'console_scripts': [
f'{pkg} = {pkg}.__main__:main',
],
},
)