nvidia-cudnn-cu12 0.0.1.dev5__tar.gz → 9.0.0.312__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- PKG-INFO +39 -0
- pyproject.toml +6 -0
- nvidia-cudnn-cu12-0.0.1.dev5/ERROR.txt +0 -11
- nvidia-cudnn-cu12-0.0.1.dev5/PACKAGE_NAME +0 -1
- nvidia-cudnn-cu12-0.0.1.dev5/PKG-INFO +0 -41
- nvidia-cudnn-cu12-0.0.1.dev5/README.rst +0 -10
- nvidia-cudnn-cu12-0.0.1.dev5/nvidia_cudnn_cu12.egg-info/PKG-INFO +0 -41
- nvidia-cudnn-cu12-0.0.1.dev5/nvidia_cudnn_cu12.egg-info/SOURCES.txt +0 -9
- nvidia-cudnn-cu12-0.0.1.dev5/nvidia_cudnn_cu12.egg-info/dependency_links.txt +0 -1
- nvidia-cudnn-cu12-0.0.1.dev5/nvidia_cudnn_cu12.egg-info/top_level.txt +0 -1
- nvidia-cudnn-cu12-0.0.1.dev5/package_info.py +0 -195
- nvidia-cudnn-cu12-0.0.1.dev5/setup.cfg +0 -4
- nvidia-cudnn-cu12-0.0.1.dev5/setup.py +0 -152
PKG-INFO
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: nvidia-cudnn-cu12
|
|
3
|
+
Version: 9.0.0.312
|
|
4
|
+
Summary: cuDNN runtime libraries
|
|
5
|
+
Home-page: https://developer.nvidia.com/cuda-zone
|
|
6
|
+
Author: Nvidia CUDA Installer Team
|
|
7
|
+
Author-email: cuda_installer@nvidia.com
|
|
8
|
+
License: NVIDIA Proprietary Software
|
|
9
|
+
Keywords: cuda,nvidia,runtime,machine learning,deep learning
|
|
10
|
+
Platform: UNKNOWN
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Education
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: Other/Proprietary License
|
|
16
|
+
Classifier: Natural Language :: English
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.5
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
26
|
+
Classifier: Topic :: Scientific/Engineering
|
|
27
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
28
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
29
|
+
Classifier: Topic :: Software Development
|
|
30
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
31
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
32
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
33
|
+
Requires-Python: >=3
|
|
34
|
+
Requires-Dist: nvidia-cublas-cu12
|
|
35
|
+
Requires-Dist: nvidia-cuda-nvrtc-cu12
|
|
36
|
+
|
|
37
|
+
cuDNN runtime libraries containing primitives for deep neural networks.
|
|
38
|
+
|
|
39
|
+
|
pyproject.toml
ADDED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
###########################################################################################
|
|
3
|
-
The package you are trying to install is only a placeholder project on PyPI.org repository.
|
|
4
|
-
This package is hosted on NVIDIA Python Package Index.
|
|
5
|
-
|
|
6
|
-
This package can be installed as:
|
|
7
|
-
```
|
|
8
|
-
$ pip install nvidia-pyindex
|
|
9
|
-
$ pip install nvidia-cudnn-cu12
|
|
10
|
-
```
|
|
11
|
-
###########################################################################################
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nvidia-cudnn-cu12
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: nvidia-cudnn-cu12
|
|
3
|
-
Version: 0.0.1.dev5
|
|
4
|
-
Summary: A fake package to warn the user they are not installing the correct package.
|
|
5
|
-
Home-page: https://github.com/NVIDIA
|
|
6
|
-
Author: Jonathan Dekhtiar
|
|
7
|
-
Author-email: jdekhtiar@nvidia.com
|
|
8
|
-
Maintainer: Jonathan Dekhtiar
|
|
9
|
-
Maintainer-email: jdekhtiar@nvidia.com
|
|
10
|
-
License: Apache2
|
|
11
|
-
Download-URL: https://github.com/NVIDIA
|
|
12
|
-
Description: NVIDIA-CUDNN-CU12
|
|
13
|
-
=================
|
|
14
|
-
|
|
15
|
-
**WARNING:** This project is not functional and is a placeholder from NVIDIA.
|
|
16
|
-
To install, please execute the following:
|
|
17
|
-
|
|
18
|
-
.. code-block:: bash
|
|
19
|
-
|
|
20
|
-
pip install nvidia-pyindex
|
|
21
|
-
pip install nvidia-cudnn-cu12
|
|
22
|
-
|
|
23
|
-
Keywords: nvidia,deep learning,machine learning,supervised learning,unsupervised learning,reinforcement learning,logging
|
|
24
|
-
Platform: Linux
|
|
25
|
-
Classifier: Development Status :: 3 - Alpha
|
|
26
|
-
Classifier: Intended Audience :: Developers
|
|
27
|
-
Classifier: Intended Audience :: Science/Research
|
|
28
|
-
Classifier: Intended Audience :: Information Technology
|
|
29
|
-
Classifier: Topic :: Scientific/Engineering
|
|
30
|
-
Classifier: Topic :: Scientific/Engineering :: Image Recognition
|
|
31
|
-
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
32
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
33
|
-
Classifier: Topic :: Utilities
|
|
34
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
35
|
-
Classifier: Programming Language :: Python :: 3.5
|
|
36
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
37
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
38
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
39
|
-
Classifier: Environment :: Console
|
|
40
|
-
Classifier: Natural Language :: English
|
|
41
|
-
Classifier: Operating System :: OS Independent
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: nvidia-cudnn-cu12
|
|
3
|
-
Version: 0.0.1.dev5
|
|
4
|
-
Summary: A fake package to warn the user they are not installing the correct package.
|
|
5
|
-
Home-page: https://github.com/NVIDIA
|
|
6
|
-
Author: Jonathan Dekhtiar
|
|
7
|
-
Author-email: jdekhtiar@nvidia.com
|
|
8
|
-
Maintainer: Jonathan Dekhtiar
|
|
9
|
-
Maintainer-email: jdekhtiar@nvidia.com
|
|
10
|
-
License: Apache2
|
|
11
|
-
Download-URL: https://github.com/NVIDIA
|
|
12
|
-
Description: NVIDIA-CUDNN-CU12
|
|
13
|
-
=================
|
|
14
|
-
|
|
15
|
-
**WARNING:** This project is not functional and is a placeholder from NVIDIA.
|
|
16
|
-
To install, please execute the following:
|
|
17
|
-
|
|
18
|
-
.. code-block:: bash
|
|
19
|
-
|
|
20
|
-
pip install nvidia-pyindex
|
|
21
|
-
pip install nvidia-cudnn-cu12
|
|
22
|
-
|
|
23
|
-
Keywords: nvidia,deep learning,machine learning,supervised learning,unsupervised learning,reinforcement learning,logging
|
|
24
|
-
Platform: Linux
|
|
25
|
-
Classifier: Development Status :: 3 - Alpha
|
|
26
|
-
Classifier: Intended Audience :: Developers
|
|
27
|
-
Classifier: Intended Audience :: Science/Research
|
|
28
|
-
Classifier: Intended Audience :: Information Technology
|
|
29
|
-
Classifier: Topic :: Scientific/Engineering
|
|
30
|
-
Classifier: Topic :: Scientific/Engineering :: Image Recognition
|
|
31
|
-
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
32
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
33
|
-
Classifier: Topic :: Utilities
|
|
34
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
35
|
-
Classifier: Programming Language :: Python :: 3.5
|
|
36
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
37
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
38
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
39
|
-
Classifier: Environment :: Console
|
|
40
|
-
Classifier: Natural Language :: English
|
|
41
|
-
Classifier: Operating System :: OS Independent
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
#! /usr/bin/python
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
|
-
|
|
4
|
-
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
|
|
18
|
-
MAJOR = 0
|
|
19
|
-
MINOR = 0
|
|
20
|
-
PATCH = 1
|
|
21
|
-
PRE_RELEASE = 'dev5'
|
|
22
|
-
# Use the following formatting: (major, minor, patch, prerelease)
|
|
23
|
-
VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE)
|
|
24
|
-
|
|
25
|
-
__shortversion__ = '.'.join(map(str, VERSION[:3]))
|
|
26
|
-
__version__ = '.'.join(map(str, VERSION[:3])) + "%s" % ''.join(VERSION[3:])
|
|
27
|
-
|
|
28
|
-
__contact_names__ = 'Jonathan Dekhtiar'
|
|
29
|
-
__contact_emails__ = 'jdekhtiar@nvidia.com'
|
|
30
|
-
__homepage__ = 'https://github.com/NVIDIA'
|
|
31
|
-
__repository_url__ = 'https://github.com/NVIDIA'
|
|
32
|
-
__download_url__ = 'https://github.com/NVIDIA'
|
|
33
|
-
__description__ = 'A fake package to warn the user they are not installing ' \
|
|
34
|
-
'the correct package.'
|
|
35
|
-
__license__ = 'Apache2'
|
|
36
|
-
__keywords__ = 'nvidia, deep learning, machine learning, supervised learning,'
|
|
37
|
-
__keywords__ += 'unsupervised learning, reinforcement learning, logging'
|
|
38
|
-
|
|
39
|
-
__faked_packages__ = [
|
|
40
|
-
# Format
|
|
41
|
-
# (package_name, readme_filename, error_filename),
|
|
42
|
-
|
|
43
|
-
# Test Package
|
|
44
|
-
("nvidia-pyindex-test-pkg", None, None), # Do not remove - @DEKHTIARJonathan
|
|
45
|
-
|
|
46
|
-
# DL Frameworks
|
|
47
|
-
("nvidia-tensorflow", "tensorflow.rst", "tensorflow.txt"),
|
|
48
|
-
("nvidia-pytorch", None, None),
|
|
49
|
-
("nvidia-torch", None, None),
|
|
50
|
-
("nvidia-torchvision", None, None),
|
|
51
|
-
("nvidia-mxnet", None, None),
|
|
52
|
-
|
|
53
|
-
# JoC Team Packages
|
|
54
|
-
("nvidia-dllogger", "dllogger.rst", "dllogger.txt"), # ask @ashumak before doing any change
|
|
55
|
-
|
|
56
|
-
# JARVIS
|
|
57
|
-
("nvidia-eff", None, None), # ask @Tomasz Kornuta before doing any change
|
|
58
|
-
("nvidia-tlt", None, None), # ask @Varun Praveen before doing any change
|
|
59
|
-
("nvidia-jarvis", None, None), # ask @Jonathan Cohen before doing any change
|
|
60
|
-
|
|
61
|
-
# Clara
|
|
62
|
-
("nvidia-clara-pipeline-driver", None, None), # ask Alvin Ihsani before doing any change
|
|
63
|
-
|
|
64
|
-
# TensorRT owned packages - Ask @Eric Work before doing any change
|
|
65
|
-
("tensorrt", None, None),
|
|
66
|
-
("nvidia-tensorrt", None, None),
|
|
67
|
-
("graphsurgeon", None, None),
|
|
68
|
-
("onnx-graphsurgeon", None, None),
|
|
69
|
-
("polygraphy", None, None),
|
|
70
|
-
("pytorch-quantization", None, None),
|
|
71
|
-
("uff", None, None),
|
|
72
|
-
|
|
73
|
-
# TF additional libraries
|
|
74
|
-
("nvidia-tensorflow-estimator", None, None),
|
|
75
|
-
("nvidia-horovod", None, None),
|
|
76
|
-
|
|
77
|
-
# Triton Library - Ask @David Goodwin or @David Zier before doing any change
|
|
78
|
-
("tritonclient", "tritonclient.rst", "tritonclient.txt"),
|
|
79
|
-
("triton-model-analyzer", "tritonclient.rst", "tritonclient.txt"),
|
|
80
|
-
|
|
81
|
-
# DALI public wheels - Ask @Janusz Lisiecki before doing any change
|
|
82
|
-
("nvidia-dali", "dali.rst", "dali.txt"),
|
|
83
|
-
|
|
84
|
-
("nvidia-dali-tf-plugin", "dali.rst", "dali.txt"),
|
|
85
|
-
|
|
86
|
-
# DALI TF Plugin wheel used by `nvidia-tensorflow`
|
|
87
|
-
("nvidia-dali-nvtf-plugin", None, None),
|
|
88
|
-
|
|
89
|
-
# DLProf - ask @David Zier before doing any change
|
|
90
|
-
("nvidia-dlprof", None, None),
|
|
91
|
-
("nvidia-tensorboard-plugin-dlprof", None, None),
|
|
92
|
-
("nvidia-tensorboard", None, None),
|
|
93
|
-
("nvidia-pyprof", None, None),
|
|
94
|
-
|
|
95
|
-
# Packages owned by @Robert Clark
|
|
96
|
-
("nvidia-imageinary", None, None),
|
|
97
|
-
("nvidia-bobber", None, None),
|
|
98
|
-
|
|
99
|
-
# CUDA-X Libraries
|
|
100
|
-
("nvidia-cublas", None, None),
|
|
101
|
-
("nvidia-cuda-cupti", None, None),
|
|
102
|
-
("nvidia-cuda-nvcc", None, None),
|
|
103
|
-
("nvidia-cuda-nvrtc", None, None),
|
|
104
|
-
("nvidia-cuda-runtime", None, None),
|
|
105
|
-
("nvidia-cuda-sanitizer-api", None, None),
|
|
106
|
-
("nvidia-cudnn", None, None),
|
|
107
|
-
("nvidia-cufft", None, None),
|
|
108
|
-
("nvidia-curand", None, None),
|
|
109
|
-
("nvidia-cusolver", None, None),
|
|
110
|
-
("nvidia-cusparse", None, None),
|
|
111
|
-
("nvidia-nccl", None, None),
|
|
112
|
-
("nvidia-npp", None, None),
|
|
113
|
-
("nvidia-nsys", None, None),
|
|
114
|
-
("nvidia-nsys-cli", None, None),
|
|
115
|
-
("nvidia-nvjpeg", None, None),
|
|
116
|
-
("nvidia-nvml-dev", None, None),
|
|
117
|
-
("nvidia-nvtx", None, None),
|
|
118
|
-
]
|
|
119
|
-
|
|
120
|
-
CUDA_9_VERS = [
|
|
121
|
-
"9",
|
|
122
|
-
"9.0",
|
|
123
|
-
"9.1",
|
|
124
|
-
"9.2"
|
|
125
|
-
]
|
|
126
|
-
|
|
127
|
-
CUDA_10_VERS = [
|
|
128
|
-
"10",
|
|
129
|
-
"10.0",
|
|
130
|
-
"10.1",
|
|
131
|
-
"10.2"
|
|
132
|
-
]
|
|
133
|
-
|
|
134
|
-
CUDA_11_VERS = [
|
|
135
|
-
"11",
|
|
136
|
-
"11.0",
|
|
137
|
-
"11.1",
|
|
138
|
-
"11.2",
|
|
139
|
-
"11.3",
|
|
140
|
-
"11.4",
|
|
141
|
-
"11.5",
|
|
142
|
-
"11.6"
|
|
143
|
-
]
|
|
144
|
-
|
|
145
|
-
CUDA_12_VERS = [
|
|
146
|
-
"12"
|
|
147
|
-
]
|
|
148
|
-
|
|
149
|
-
ALL_CUDA_VERS = CUDA_9_VERS + CUDA_10_VERS + CUDA_11_VERS + CUDA_12_VERS
|
|
150
|
-
|
|
151
|
-
for __cuda__ in ALL_CUDA_VERS:
|
|
152
|
-
__faked_packages__ += [
|
|
153
|
-
(
|
|
154
|
-
"nvidia-dali-cuda{}".format(__cuda__.replace(".", "")),
|
|
155
|
-
"dali.rst",
|
|
156
|
-
"dali.txt"
|
|
157
|
-
),
|
|
158
|
-
(
|
|
159
|
-
"nvidia-dali-tf-plugin-cuda{}".format(__cuda__.replace(".", "")),
|
|
160
|
-
"dali.rst",
|
|
161
|
-
"dali.txt"
|
|
162
|
-
)
|
|
163
|
-
]
|
|
164
|
-
|
|
165
|
-
CUDA_X_PACKAGES = [
|
|
166
|
-
"nvidia-cublas-cu",
|
|
167
|
-
"nvidia-cuda-cccl-cu",
|
|
168
|
-
"nvidia-cuda-cupti-cu",
|
|
169
|
-
"nvidia-cuda-cuxxfilt-cu",
|
|
170
|
-
"nvidia-cuda-nvcc-cu",
|
|
171
|
-
"nvidia-cuda-nvrtc-cu",
|
|
172
|
-
"nvidia-cuda-opencl-cu",
|
|
173
|
-
"nvidia-cuda-profiler-api-cu",
|
|
174
|
-
"nvidia-cuda-runtime-cu",
|
|
175
|
-
"nvidia-cuda-sanitizer-api-cu",
|
|
176
|
-
"nvidia-cudnn-cu",
|
|
177
|
-
"nvidia-cufft-cu",
|
|
178
|
-
"nvidia-curand-cu",
|
|
179
|
-
"nvidia-cusolver-cu",
|
|
180
|
-
"nvidia-cusparse-cu",
|
|
181
|
-
"nvidia-nccl-cu",
|
|
182
|
-
"nvidia-npp-cu",
|
|
183
|
-
"nvidia-nvjitlink-cu",
|
|
184
|
-
"nvidia-nvjpeg-cu",
|
|
185
|
-
"nvidia-nvml-dev-cu",
|
|
186
|
-
"nvidia-nvtx-cu"
|
|
187
|
-
]
|
|
188
|
-
|
|
189
|
-
__faked_packages__ = []
|
|
190
|
-
|
|
191
|
-
for __cuda_pkg__ in CUDA_X_PACKAGES:
|
|
192
|
-
for __cuda__ in CUDA_12_VERS:
|
|
193
|
-
__faked_packages__ += [
|
|
194
|
-
(__cuda_pkg__ + __cuda__.replace(".", ""), None, None)
|
|
195
|
-
]
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
#! /usr/bin/python
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
|
-
|
|
4
|
-
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
|
|
18
|
-
import os
|
|
19
|
-
import sys
|
|
20
|
-
import codecs
|
|
21
|
-
import fileinput
|
|
22
|
-
import shutil
|
|
23
|
-
|
|
24
|
-
from contextlib import contextmanager
|
|
25
|
-
|
|
26
|
-
from setuptools import setup
|
|
27
|
-
|
|
28
|
-
from package_info import __version__
|
|
29
|
-
|
|
30
|
-
from package_info import __contact_names__
|
|
31
|
-
from package_info import __contact_emails__
|
|
32
|
-
from package_info import __repository_url__
|
|
33
|
-
from package_info import __download_url__
|
|
34
|
-
from package_info import __description__
|
|
35
|
-
from package_info import __license__
|
|
36
|
-
from package_info import __keywords__
|
|
37
|
-
|
|
38
|
-
from package_info import __faked_packages__
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
# Get the long description
|
|
42
|
-
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def build_package(pkg_name):
|
|
46
|
-
|
|
47
|
-
with codecs.open(os.path.join(BASE_DIR, 'README.rst'), encoding='utf-8') as f:
|
|
48
|
-
long_description = f.read()
|
|
49
|
-
|
|
50
|
-
setup(
|
|
51
|
-
name=pkg_name,
|
|
52
|
-
|
|
53
|
-
# Versions should comply with PEP440. For a discussion on single-sourcing
|
|
54
|
-
# the version across setup.py and the project code, see
|
|
55
|
-
# https://packaging.python.org/en/latest/single_source_version.html
|
|
56
|
-
version=__version__,
|
|
57
|
-
description=__description__,
|
|
58
|
-
long_description=long_description,
|
|
59
|
-
|
|
60
|
-
# The project's main homepage.
|
|
61
|
-
url=__repository_url__,
|
|
62
|
-
download_url=__download_url__,
|
|
63
|
-
|
|
64
|
-
# Author details
|
|
65
|
-
author=__contact_names__,
|
|
66
|
-
author_email=__contact_emails__,
|
|
67
|
-
|
|
68
|
-
# maintainer Details
|
|
69
|
-
maintainer=__contact_names__,
|
|
70
|
-
maintainer_email=__contact_emails__,
|
|
71
|
-
|
|
72
|
-
# The licence under which the project is released
|
|
73
|
-
license=__license__,
|
|
74
|
-
classifiers=[
|
|
75
|
-
'Development Status :: 3 - Alpha',
|
|
76
|
-
'Intended Audience :: Developers',
|
|
77
|
-
'Intended Audience :: Science/Research',
|
|
78
|
-
'Intended Audience :: Information Technology',
|
|
79
|
-
'Topic :: Scientific/Engineering',
|
|
80
|
-
'Topic :: Scientific/Engineering :: Image Recognition',
|
|
81
|
-
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
|
82
|
-
'Topic :: Software Development :: Libraries',
|
|
83
|
-
'Topic :: Utilities',
|
|
84
|
-
'License :: OSI Approved :: Apache Software License',
|
|
85
|
-
'Programming Language :: Python :: 3.5',
|
|
86
|
-
'Programming Language :: Python :: 3.6',
|
|
87
|
-
'Programming Language :: Python :: 3.7',
|
|
88
|
-
'Programming Language :: Python :: 3.8',
|
|
89
|
-
'Environment :: Console',
|
|
90
|
-
'Natural Language :: English',
|
|
91
|
-
'Operating System :: OS Independent',
|
|
92
|
-
],
|
|
93
|
-
platforms=["Linux"],
|
|
94
|
-
keywords=__keywords__,
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
if sys.argv[1] == "sdist":
|
|
99
|
-
|
|
100
|
-
def maybe_delete_file(filename):
|
|
101
|
-
try:
|
|
102
|
-
os.remove(filename)
|
|
103
|
-
except FileNotFoundError:
|
|
104
|
-
pass
|
|
105
|
-
|
|
106
|
-
@contextmanager
|
|
107
|
-
def setup_sdist_environment(package_name, readme_filename, error_filename):
|
|
108
|
-
|
|
109
|
-
temporary_files = ["PACKAGE_NAME", "ERROR.txt", "README.rst"]
|
|
110
|
-
for file in temporary_files:
|
|
111
|
-
maybe_delete_file(file)
|
|
112
|
-
|
|
113
|
-
with open("PACKAGE_NAME", "w") as f:
|
|
114
|
-
f.write(__package_name__)
|
|
115
|
-
|
|
116
|
-
if readme_filename is None:
|
|
117
|
-
readme_filename = "_DEFAULT.rst"
|
|
118
|
-
|
|
119
|
-
if error_filename is None:
|
|
120
|
-
error_filename = "_DEFAULT.txt"
|
|
121
|
-
|
|
122
|
-
shutil.copyfile(os.path.join("READMEs", readme_filename), "README.rst")
|
|
123
|
-
shutil.copyfile(os.path.join("ERROR_MESSAGEs", error_filename), "ERROR.txt")
|
|
124
|
-
|
|
125
|
-
def replace_in_file(search_text, new_text, filename):
|
|
126
|
-
with fileinput.input(filename, inplace=True) as f:
|
|
127
|
-
for line in f:
|
|
128
|
-
new_line = line.replace(search_text, new_text)
|
|
129
|
-
print(new_line, end='')
|
|
130
|
-
|
|
131
|
-
replace_in_file("<PACKAGE_NAME>", package_name.upper(), filename="README.rst")
|
|
132
|
-
replace_in_file("==============", "=" * len(package_name), filename="README.rst")
|
|
133
|
-
|
|
134
|
-
replace_in_file("<package_name>", package_name, filename="README.rst")
|
|
135
|
-
replace_in_file("<package_name>", package_name, filename="ERROR.txt")
|
|
136
|
-
|
|
137
|
-
yield
|
|
138
|
-
|
|
139
|
-
for file in temporary_files:
|
|
140
|
-
maybe_delete_file(file)
|
|
141
|
-
|
|
142
|
-
shutil.rmtree("%s.egg-info" % __package_name__.replace("-", "_"))
|
|
143
|
-
|
|
144
|
-
for __package_name__, __readme_file__, __err_file__ in __faked_packages__:
|
|
145
|
-
|
|
146
|
-
print(f"\n[*] Building `{__package_name__}` ...")
|
|
147
|
-
|
|
148
|
-
with setup_sdist_environment(__package_name__, __readme_file__, __err_file__):
|
|
149
|
-
build_package(__package_name__)
|
|
150
|
-
|
|
151
|
-
else:
|
|
152
|
-
raise RuntimeError(open("ERROR.txt", "r").read())
|