This repository was archived by the owner on Mar 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathsetup.py.j2
More file actions
42 lines (39 loc) · 1.31 KB
/
setup.py.j2
File metadata and controls
42 lines (39 loc) · 1.31 KB
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
{% extends '_base.py.j2' %}
{% block content %}
import setuptools # type: ignore
setuptools.setup(
name='{{ api.naming.warehouse_package_name }}',
version='0.0.1',
{% if api.naming.namespace -%}
packages=setuptools.PEP420PackageFinder.find(),
namespace_packages={{ api.naming.namespace_packages }},
{% else -%}
packages=setuptools.find_packages(),
{% endif -%}
platforms='Posix; MacOS X; Windows',
include_package_data=True,
install_requires=(
'google-api-core[grpc] >= 1.17.0, < 2.0.0dev',
'libcst >= 0.2.5',
'proto-plus >= 0.4.0',
{%- if api.requires_package(('google', 'iam', 'v1')) %}
'grpc-google-iam-v1',
{%- endif %}
),
python_requires='>={% if opts.lazy_import %}3.7{% else %}3.6{% endif %}',{# Lazy import requires module-level getattr #}
scripts=[
'scripts/fixup_keywords.py',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
],
zip_safe=False,
)
{% endblock %}