cinderx 0.0.1__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.
Potentially problematic release.
This version of cinderx might be problematic. Click here for more details.
- cinderx-0.0.1/LICENSE +21 -0
- cinderx-0.0.1/PKG-INFO +23 -0
- cinderx-0.0.1/README.md +8 -0
- cinderx-0.0.1/setup.cfg +4 -0
- cinderx-0.0.1/setup.py +38 -0
- cinderx-0.0.1/src/cinderx/cinderx.cpp +35 -0
- cinderx-0.0.1/src/cinderx.egg-info/PKG-INFO +23 -0
- cinderx-0.0.1/src/cinderx.egg-info/SOURCES.txt +9 -0
- cinderx-0.0.1/src/cinderx.egg-info/dependency_links.txt +1 -0
- cinderx-0.0.1/src/cinderx.egg-info/top_level.txt +1 -0
- cinderx-0.0.1/test/test_main.py +11 -0
cinderx-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
cinderx-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: cinderx
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: High-performance Python runtime extensions
|
|
5
|
+
Home-page: https://github.com/facebookincubator/cinder
|
|
6
|
+
Author: Meta Platforms
|
|
7
|
+
Author-email: cinder@meta.com
|
|
8
|
+
Classifier: Development Status :: 1 - Planning
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: ==3.12.*
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
|
|
16
|
+
# CinderX
|
|
17
|
+
|
|
18
|
+
High-performance Python runtime extensions
|
|
19
|
+
|
|
20
|
+
Note: currently the only way to use Cinder is as an [alternative Python runtime](https://github.com/facebookincubator/cinder),
|
|
21
|
+
which isn't [officially supported](https://github.com/facebookincubator/cinder#is-this-supported).
|
|
22
|
+
|
|
23
|
+
This extension is a work-in-progress aimed at extracting parts of Cinder as a pip-installable extension.
|
cinderx-0.0.1/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# CinderX
|
|
2
|
+
|
|
3
|
+
High-performance Python runtime extensions
|
|
4
|
+
|
|
5
|
+
Note: currently the only way to use Cinder is as an [alternative Python runtime](https://github.com/facebookincubator/cinder),
|
|
6
|
+
which isn't [officially supported](https://github.com/facebookincubator/cinder#is-this-supported).
|
|
7
|
+
|
|
8
|
+
This extension is a work-in-progress aimed at extracting parts of Cinder as a pip-installable extension.
|
cinderx-0.0.1/setup.cfg
ADDED
cinderx-0.0.1/setup.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
#
|
|
4
|
+
# This source code is licensed under the MIT license found in the
|
|
5
|
+
# LICENSE file in the root directory of this source tree.
|
|
6
|
+
|
|
7
|
+
import setuptools
|
|
8
|
+
|
|
9
|
+
with open("README.md", "r", encoding="utf-8") as fh:
|
|
10
|
+
long_description = fh.read()
|
|
11
|
+
|
|
12
|
+
setuptools.setup(
|
|
13
|
+
name="cinderx",
|
|
14
|
+
version="0.0.1",
|
|
15
|
+
author="Meta Platforms",
|
|
16
|
+
author_email="cinder@meta.com",
|
|
17
|
+
description="High-performance Python runtime extensions",
|
|
18
|
+
long_description=long_description,
|
|
19
|
+
long_description_content_type="text/markdown",
|
|
20
|
+
url="https://github.com/facebookincubator/cinder",
|
|
21
|
+
classifiers=[
|
|
22
|
+
"Development Status :: 1 - Planning",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"License :: OSI Approved :: MIT License",
|
|
25
|
+
"Operating System :: OS Independent",
|
|
26
|
+
],
|
|
27
|
+
ext_modules=[
|
|
28
|
+
setuptools.Extension(
|
|
29
|
+
"cinderx",
|
|
30
|
+
sources=["src/cinderx/cinderx.cpp"],
|
|
31
|
+
extra_compile_args=["-std=c++11", "-Wall", "-Wextra"],
|
|
32
|
+
language="c++",
|
|
33
|
+
)
|
|
34
|
+
],
|
|
35
|
+
package_dir={"": "src"},
|
|
36
|
+
packages=setuptools.find_packages(where="src"),
|
|
37
|
+
python_requires="==3.12.*",
|
|
38
|
+
)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#include <Python.h>
|
|
2
|
+
|
|
3
|
+
static PyObject *hello(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(arg)) {
|
|
4
|
+
Py_RETURN_NONE;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
static PyMethodDef cinderx_methods[] = {
|
|
8
|
+
{"hello", reinterpret_cast<PyCFunction>(hello), METH_NOARGS, "Say hello"},
|
|
9
|
+
{nullptr, nullptr, 0, nullptr}};
|
|
10
|
+
|
|
11
|
+
static struct PyModuleDef cinderxmodule = {
|
|
12
|
+
PyModuleDef_HEAD_INIT,
|
|
13
|
+
"cinderx",
|
|
14
|
+
"Scaffolding for CinderX extension module",
|
|
15
|
+
/*m_size=*/0,
|
|
16
|
+
cinderx_methods,
|
|
17
|
+
/*m_slots=*/nullptr,
|
|
18
|
+
/*m_traverse=*/nullptr,
|
|
19
|
+
/*m_clear=*/nullptr,
|
|
20
|
+
/*m_free=*/nullptr,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
PyMODINIT_FUNC PyInit_cinderx(void) {
|
|
24
|
+
PyObject *module = PyState_FindModule(&cinderxmodule);
|
|
25
|
+
if (module != nullptr) {
|
|
26
|
+
Py_INCREF(module);
|
|
27
|
+
return module;
|
|
28
|
+
}
|
|
29
|
+
module = PyModule_Create(&cinderxmodule);
|
|
30
|
+
if (module == nullptr) {
|
|
31
|
+
return nullptr;
|
|
32
|
+
}
|
|
33
|
+
PyState_AddModule(module, &cinderxmodule);
|
|
34
|
+
return module;
|
|
35
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: cinderx
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: High-performance Python runtime extensions
|
|
5
|
+
Home-page: https://github.com/facebookincubator/cinder
|
|
6
|
+
Author: Meta Platforms
|
|
7
|
+
Author-email: cinder@meta.com
|
|
8
|
+
Classifier: Development Status :: 1 - Planning
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: ==3.12.*
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
|
|
16
|
+
# CinderX
|
|
17
|
+
|
|
18
|
+
High-performance Python runtime extensions
|
|
19
|
+
|
|
20
|
+
Note: currently the only way to use Cinder is as an [alternative Python runtime](https://github.com/facebookincubator/cinder),
|
|
21
|
+
which isn't [officially supported](https://github.com/facebookincubator/cinder#is-this-supported).
|
|
22
|
+
|
|
23
|
+
This extension is a work-in-progress aimed at extracting parts of Cinder as a pip-installable extension.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cinderx
|