winrt-Windows.UI.Composition 2.0.0b1__tar.gz → 2.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.
- winrt_windows_ui_composition-2.0.1/PKG-INFO +33 -0
- winrt_windows_ui_composition-2.0.1/all-requirements.txt +11 -0
- {winrt-Windows.UI.Composition-2.0.0b1 → winrt_windows_ui_composition-2.0.1}/py.Windows.UI.Composition.cpp +239 -3
- {winrt-Windows.UI.Composition-2.0.0b1 → winrt_windows_ui_composition-2.0.1}/pyproject.toml +7 -4
- winrt_windows_ui_composition-2.0.1/pywinrt-version.txt +1 -0
- {winrt-Windows.UI.Composition-2.0.0b1 → winrt_windows_ui_composition-2.0.1}/requirements.txt +2 -2
- winrt_windows_ui_composition-2.0.1/setup.py +31 -0
- {winrt-Windows.UI.Composition-2.0.0b1 → winrt_windows_ui_composition-2.0.1}/winrt/_winrt_windows_ui_composition.pyi +149 -10
- {winrt-Windows.UI.Composition-2.0.0b1 → winrt_windows_ui_composition-2.0.1}/winrt/windows/ui/composition/__init__.py +3 -1
- winrt_windows_ui_composition-2.0.1/winrt/windows/ui/composition/py.typed +0 -0
- winrt_windows_ui_composition-2.0.1/winrt_Windows.UI.Composition.egg-info/PKG-INFO +33 -0
- {winrt-Windows.UI.Composition-2.0.0b1 → winrt_windows_ui_composition-2.0.1}/winrt_Windows.UI.Composition.egg-info/SOURCES.txt +1 -0
- winrt_windows_ui_composition-2.0.1/winrt_Windows.UI.Composition.egg-info/requires.txt +12 -0
- winrt-Windows.UI.Composition-2.0.0b1/PKG-INFO +0 -22
- winrt-Windows.UI.Composition-2.0.0b1/all-requirements.txt +0 -11
- winrt-Windows.UI.Composition-2.0.0b1/pywinrt-version.txt +0 -1
- winrt-Windows.UI.Composition-2.0.0b1/setup.py +0 -17
- winrt-Windows.UI.Composition-2.0.0b1/winrt_Windows.UI.Composition.egg-info/PKG-INFO +0 -22
- winrt-Windows.UI.Composition-2.0.0b1/winrt_Windows.UI.Composition.egg-info/requires.txt +0 -12
- {winrt-Windows.UI.Composition-2.0.0b1 → winrt_windows_ui_composition-2.0.1}/README.md +0 -0
- {winrt-Windows.UI.Composition-2.0.0b1 → winrt_windows_ui_composition-2.0.1}/setup.cfg +0 -0
- {winrt-Windows.UI.Composition-2.0.0b1 → winrt_windows_ui_composition-2.0.1}/winrt_Windows.UI.Composition.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.UI.Composition-2.0.0b1 → winrt_windows_ui_composition-2.0.1}/winrt_Windows.UI.Composition.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.UI.Composition
|
|
3
|
+
Version: 2.0.1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Requires-Python: <3.13,>=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.0.1
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.0.1; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics[all]==2.0.1; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.0.1; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Graphics.Effects[all]==2.0.1; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.System[all]==2.0.1; extra == "all"
|
|
24
|
+
Requires-Dist: winrt-Windows.UI[all]==2.0.1; extra == "all"
|
|
25
|
+
Requires-Dist: winrt-Windows.UI.Core[all]==2.0.1; extra == "all"
|
|
26
|
+
|
|
27
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
28
|
+
|
|
29
|
+
# winrt-Windows.UI.Composition
|
|
30
|
+
|
|
31
|
+
Windows Runtime (WinRT) APIs for for the `Windows.UI.Composition` namespace.
|
|
32
|
+
|
|
33
|
+
This package provides the `winrt.windows.ui.composition` module.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Foundation[all]==2.0.1
|
|
4
|
+
winrt-Windows.Foundation.Collections[all]==2.0.1
|
|
5
|
+
winrt-Windows.Foundation.Numerics[all]==2.0.1
|
|
6
|
+
winrt-Windows.Graphics[all]==2.0.1
|
|
7
|
+
winrt-Windows.Graphics.DirectX[all]==2.0.1
|
|
8
|
+
winrt-Windows.Graphics.Effects[all]==2.0.1
|
|
9
|
+
winrt-Windows.System[all]==2.0.1
|
|
10
|
+
winrt-Windows.UI[all]==2.0.1
|
|
11
|
+
winrt-Windows.UI.Core[all]==2.0.1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.UI.Composition.h"
|
|
4
4
|
|
|
@@ -15348,6 +15348,219 @@ namespace py::cpp::Windows::UI::Composition
|
|
|
15348
15348
|
_type_slots_CompositionTarget
|
|
15349
15349
|
};
|
|
15350
15350
|
|
|
15351
|
+
// ----- CompositionTexture class --------------------
|
|
15352
|
+
|
|
15353
|
+
static PyObject* _new_CompositionTexture(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
15354
|
+
{
|
|
15355
|
+
static_assert(py::py_type<winrt::Windows::UI::Composition::CompositionTexture>::type_name);
|
|
15356
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::UI::Composition::CompositionTexture>::type_name);
|
|
15357
|
+
return nullptr;
|
|
15358
|
+
}
|
|
15359
|
+
|
|
15360
|
+
static void _dealloc_CompositionTexture(py::wrapper::Windows::UI::Composition::CompositionTexture* self) noexcept
|
|
15361
|
+
{
|
|
15362
|
+
auto tp = Py_TYPE(self);
|
|
15363
|
+
std::destroy_at(&self->obj);
|
|
15364
|
+
tp->tp_free(self);
|
|
15365
|
+
Py_DECREF(tp);
|
|
15366
|
+
}
|
|
15367
|
+
|
|
15368
|
+
static PyObject* CompositionTexture_get_SourceRect(py::wrapper::Windows::UI::Composition::CompositionTexture* self, void* /*unused*/) noexcept
|
|
15369
|
+
{
|
|
15370
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionTexture", L"SourceRect"))
|
|
15371
|
+
{
|
|
15372
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
15373
|
+
return nullptr;
|
|
15374
|
+
}
|
|
15375
|
+
|
|
15376
|
+
try
|
|
15377
|
+
{
|
|
15378
|
+
return py::convert(self->obj.SourceRect());
|
|
15379
|
+
}
|
|
15380
|
+
catch (...)
|
|
15381
|
+
{
|
|
15382
|
+
py::to_PyErr();
|
|
15383
|
+
return nullptr;
|
|
15384
|
+
}
|
|
15385
|
+
}
|
|
15386
|
+
|
|
15387
|
+
static int CompositionTexture_put_SourceRect(py::wrapper::Windows::UI::Composition::CompositionTexture* self, PyObject* arg, void* /*unused*/) noexcept
|
|
15388
|
+
{
|
|
15389
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionTexture", L"SourceRect"))
|
|
15390
|
+
{
|
|
15391
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
15392
|
+
return -1;
|
|
15393
|
+
}
|
|
15394
|
+
|
|
15395
|
+
if (arg == nullptr)
|
|
15396
|
+
{
|
|
15397
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
15398
|
+
return -1;
|
|
15399
|
+
}
|
|
15400
|
+
|
|
15401
|
+
try
|
|
15402
|
+
{
|
|
15403
|
+
auto param0 = py::convert_to<winrt::Windows::Graphics::RectInt32>(arg);
|
|
15404
|
+
|
|
15405
|
+
self->obj.SourceRect(param0);
|
|
15406
|
+
return 0;
|
|
15407
|
+
}
|
|
15408
|
+
catch (...)
|
|
15409
|
+
{
|
|
15410
|
+
py::to_PyErr();
|
|
15411
|
+
return -1;
|
|
15412
|
+
}
|
|
15413
|
+
}
|
|
15414
|
+
|
|
15415
|
+
static PyObject* CompositionTexture_get_ColorSpace(py::wrapper::Windows::UI::Composition::CompositionTexture* self, void* /*unused*/) noexcept
|
|
15416
|
+
{
|
|
15417
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionTexture", L"ColorSpace"))
|
|
15418
|
+
{
|
|
15419
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
15420
|
+
return nullptr;
|
|
15421
|
+
}
|
|
15422
|
+
|
|
15423
|
+
try
|
|
15424
|
+
{
|
|
15425
|
+
return py::convert(self->obj.ColorSpace());
|
|
15426
|
+
}
|
|
15427
|
+
catch (...)
|
|
15428
|
+
{
|
|
15429
|
+
py::to_PyErr();
|
|
15430
|
+
return nullptr;
|
|
15431
|
+
}
|
|
15432
|
+
}
|
|
15433
|
+
|
|
15434
|
+
static int CompositionTexture_put_ColorSpace(py::wrapper::Windows::UI::Composition::CompositionTexture* self, PyObject* arg, void* /*unused*/) noexcept
|
|
15435
|
+
{
|
|
15436
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionTexture", L"ColorSpace"))
|
|
15437
|
+
{
|
|
15438
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
15439
|
+
return -1;
|
|
15440
|
+
}
|
|
15441
|
+
|
|
15442
|
+
if (arg == nullptr)
|
|
15443
|
+
{
|
|
15444
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
15445
|
+
return -1;
|
|
15446
|
+
}
|
|
15447
|
+
|
|
15448
|
+
try
|
|
15449
|
+
{
|
|
15450
|
+
auto param0 = py::convert_to<winrt::Windows::Graphics::DirectX::DirectXColorSpace>(arg);
|
|
15451
|
+
|
|
15452
|
+
self->obj.ColorSpace(param0);
|
|
15453
|
+
return 0;
|
|
15454
|
+
}
|
|
15455
|
+
catch (...)
|
|
15456
|
+
{
|
|
15457
|
+
py::to_PyErr();
|
|
15458
|
+
return -1;
|
|
15459
|
+
}
|
|
15460
|
+
}
|
|
15461
|
+
|
|
15462
|
+
static PyObject* CompositionTexture_get_AlphaMode(py::wrapper::Windows::UI::Composition::CompositionTexture* self, void* /*unused*/) noexcept
|
|
15463
|
+
{
|
|
15464
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionTexture", L"AlphaMode"))
|
|
15465
|
+
{
|
|
15466
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
15467
|
+
return nullptr;
|
|
15468
|
+
}
|
|
15469
|
+
|
|
15470
|
+
try
|
|
15471
|
+
{
|
|
15472
|
+
return py::convert(self->obj.AlphaMode());
|
|
15473
|
+
}
|
|
15474
|
+
catch (...)
|
|
15475
|
+
{
|
|
15476
|
+
py::to_PyErr();
|
|
15477
|
+
return nullptr;
|
|
15478
|
+
}
|
|
15479
|
+
}
|
|
15480
|
+
|
|
15481
|
+
static int CompositionTexture_put_AlphaMode(py::wrapper::Windows::UI::Composition::CompositionTexture* self, PyObject* arg, void* /*unused*/) noexcept
|
|
15482
|
+
{
|
|
15483
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Composition.CompositionTexture", L"AlphaMode"))
|
|
15484
|
+
{
|
|
15485
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
15486
|
+
return -1;
|
|
15487
|
+
}
|
|
15488
|
+
|
|
15489
|
+
if (arg == nullptr)
|
|
15490
|
+
{
|
|
15491
|
+
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
15492
|
+
return -1;
|
|
15493
|
+
}
|
|
15494
|
+
|
|
15495
|
+
try
|
|
15496
|
+
{
|
|
15497
|
+
auto param0 = py::convert_to<winrt::Windows::Graphics::DirectX::DirectXAlphaMode>(arg);
|
|
15498
|
+
|
|
15499
|
+
self->obj.AlphaMode(param0);
|
|
15500
|
+
return 0;
|
|
15501
|
+
}
|
|
15502
|
+
catch (...)
|
|
15503
|
+
{
|
|
15504
|
+
py::to_PyErr();
|
|
15505
|
+
return -1;
|
|
15506
|
+
}
|
|
15507
|
+
}
|
|
15508
|
+
|
|
15509
|
+
static PyObject* _assign_array_CompositionTexture(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
15510
|
+
{
|
|
15511
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::UI::Composition::CompositionTexture>>();
|
|
15512
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
15513
|
+
{
|
|
15514
|
+
return nullptr;
|
|
15515
|
+
}
|
|
15516
|
+
Py_RETURN_NONE;
|
|
15517
|
+
}
|
|
15518
|
+
|
|
15519
|
+
static PyObject* _from_CompositionTexture(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
15520
|
+
{
|
|
15521
|
+
try
|
|
15522
|
+
{
|
|
15523
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
15524
|
+
return py::convert(return_value.as<winrt::Windows::UI::Composition::CompositionTexture>());
|
|
15525
|
+
}
|
|
15526
|
+
catch (...)
|
|
15527
|
+
{
|
|
15528
|
+
py::to_PyErr();
|
|
15529
|
+
return nullptr;
|
|
15530
|
+
}
|
|
15531
|
+
}
|
|
15532
|
+
|
|
15533
|
+
static PyMethodDef _methods_CompositionTexture[] = {
|
|
15534
|
+
{ "_assign_array_", _assign_array_CompositionTexture, METH_O | METH_STATIC, nullptr },
|
|
15535
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_CompositionTexture), METH_O | METH_STATIC, nullptr },
|
|
15536
|
+
{ }
|
|
15537
|
+
};
|
|
15538
|
+
|
|
15539
|
+
static PyGetSetDef _getset_CompositionTexture[] = {
|
|
15540
|
+
{ "source_rect", reinterpret_cast<getter>(CompositionTexture_get_SourceRect), reinterpret_cast<setter>(CompositionTexture_put_SourceRect), nullptr, nullptr },
|
|
15541
|
+
{ "color_space", reinterpret_cast<getter>(CompositionTexture_get_ColorSpace), reinterpret_cast<setter>(CompositionTexture_put_ColorSpace), nullptr, nullptr },
|
|
15542
|
+
{ "alpha_mode", reinterpret_cast<getter>(CompositionTexture_get_AlphaMode), reinterpret_cast<setter>(CompositionTexture_put_AlphaMode), nullptr, nullptr },
|
|
15543
|
+
{ }
|
|
15544
|
+
};
|
|
15545
|
+
|
|
15546
|
+
static PyType_Slot _type_slots_CompositionTexture[] =
|
|
15547
|
+
{
|
|
15548
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_CompositionTexture) },
|
|
15549
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CompositionTexture) },
|
|
15550
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CompositionTexture) },
|
|
15551
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CompositionTexture) },
|
|
15552
|
+
{ },
|
|
15553
|
+
};
|
|
15554
|
+
|
|
15555
|
+
static PyType_Spec type_spec_CompositionTexture =
|
|
15556
|
+
{
|
|
15557
|
+
"winrt._winrt_windows_ui_composition.CompositionTexture",
|
|
15558
|
+
sizeof(py::wrapper::Windows::UI::Composition::CompositionTexture),
|
|
15559
|
+
0,
|
|
15560
|
+
Py_TPFLAGS_DEFAULT,
|
|
15561
|
+
_type_slots_CompositionTexture
|
|
15562
|
+
};
|
|
15563
|
+
|
|
15351
15564
|
// ----- CompositionTransform class --------------------
|
|
15352
15565
|
|
|
15353
15566
|
static PyObject* _new_CompositionTransform(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
@@ -20324,9 +20537,18 @@ namespace py::cpp::Windows::UI::Composition
|
|
|
20324
20537
|
{
|
|
20325
20538
|
try
|
|
20326
20539
|
{
|
|
20327
|
-
auto
|
|
20540
|
+
auto _key = py::convert_to<winrt::hstring>(key);
|
|
20541
|
+
auto value = self->obj.TryLookup(_key);
|
|
20328
20542
|
|
|
20329
20543
|
if (!value) {
|
|
20544
|
+
if constexpr (std::is_base_of_v<winrt::Windows::Foundation::IUnknown, decltype(value)>)
|
|
20545
|
+
{
|
|
20546
|
+
if (self->obj.HasKey(_key))
|
|
20547
|
+
{
|
|
20548
|
+
Py_RETURN_NONE;
|
|
20549
|
+
}
|
|
20550
|
+
}
|
|
20551
|
+
|
|
20330
20552
|
PyErr_SetObject(PyExc_KeyError, key);
|
|
20331
20553
|
return nullptr;
|
|
20332
20554
|
}
|
|
@@ -20731,9 +20953,18 @@ namespace py::cpp::Windows::UI::Composition
|
|
|
20731
20953
|
{
|
|
20732
20954
|
try
|
|
20733
20955
|
{
|
|
20734
|
-
auto
|
|
20956
|
+
auto _key = py::convert_to<winrt::hstring>(key);
|
|
20957
|
+
auto value = self->obj.TryLookup(_key);
|
|
20735
20958
|
|
|
20736
20959
|
if (!value) {
|
|
20960
|
+
if constexpr (std::is_base_of_v<winrt::Windows::Foundation::IUnknown, decltype(value)>)
|
|
20961
|
+
{
|
|
20962
|
+
if (self->obj.HasKey(_key))
|
|
20963
|
+
{
|
|
20964
|
+
Py_RETURN_NONE;
|
|
20965
|
+
}
|
|
20966
|
+
}
|
|
20967
|
+
|
|
20737
20968
|
PyErr_SetObject(PyExc_KeyError, key);
|
|
20738
20969
|
return nullptr;
|
|
20739
20970
|
}
|
|
@@ -29515,6 +29746,11 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_composition(void) noexcept
|
|
|
29515
29746
|
return nullptr;
|
|
29516
29747
|
}
|
|
29517
29748
|
|
|
29749
|
+
if (py::register_python_type(module.get(), &type_spec_CompositionTexture, object_bases.get(), nullptr) == -1)
|
|
29750
|
+
{
|
|
29751
|
+
return nullptr;
|
|
29752
|
+
}
|
|
29753
|
+
|
|
29518
29754
|
if (py::register_python_type(module.get(), &type_spec_CompositionTransform, object_bases.get(), nullptr) == -1)
|
|
29519
29755
|
{
|
|
29520
29756
|
return nullptr;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -19,9 +19,9 @@ dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
|
19
19
|
requires-python = ">=3.9,<3.13"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
|
-
# Homepage = "https://github.com/
|
|
23
|
-
|
|
24
|
-
Repository = "https://github.com/
|
|
22
|
+
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
23
|
+
Documentation = "https://pywinrt.readthedocs.io"
|
|
24
|
+
Repository = "https://github.com/pywinrt/pywinrt"
|
|
25
25
|
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
26
|
|
|
27
27
|
[tool.setuptools.dynamic]
|
|
@@ -29,6 +29,9 @@ version = { file = "pywinrt-version.txt" }
|
|
|
29
29
|
dependencies = { file = "requirements.txt" }
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
|
+
[tool.setuptools.package-data]
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
|
+
|
|
32
35
|
[tool.cibuildwheel]
|
|
33
36
|
# use local winrt-sdk build dependency
|
|
34
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.1
|
{winrt-Windows.UI.Composition-2.0.0b1 → winrt_windows_ui_composition-2.0.1}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0.
|
|
3
|
+
winrt-runtime==2.0.1
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_ui_composition",
|
|
26
|
+
sources=["py.Windows.UI.Composition.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|