d2d-aspose 2026.0.0__py3-none-any.whl
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 d2d-aspose might be problematic. Click here for more details.
aspose/__init__.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import contextlib
|
|
2
|
+
import os
|
|
3
|
+
import subprocess
|
|
4
|
+
import tempfile
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
from d2d_versioning import get_version
|
|
8
|
+
|
|
9
|
+
__version__ = get_version("aspose")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
########################################################################
|
|
13
|
+
def to_html(word_doc: bytes):
|
|
14
|
+
return None
|
aspose/_version.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1001.0.1.dev0+none"
|
aspose/build_version.py
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: d2d-aspose
|
|
3
|
+
Version: 2026.0.0
|
|
4
|
+
Summary: A library for converting open office / word docs to html.
|
|
5
|
+
Author-email: Draft2Digital <developers@draft2digital.com>
|
|
6
|
+
Maintainer-email: Draft2Digital <developers@draft2digital.com>
|
|
7
|
+
License-Expression: LicenseRef-Proprietary
|
|
8
|
+
Project-URL: Home, https://draft2digital.com
|
|
9
|
+
Requires-Python: >=3.12
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Provides-Extra: test
|
|
12
|
+
Requires-Dist: tox>=3.14.6; extra == "test"
|
|
13
|
+
|
|
14
|
+
Simple wrapper around Aspose for words to provide access in Python,
|
|
15
|
+
plus some tests to make sure we are aware when it changes the way
|
|
16
|
+
things are converted.
|
|
17
|
+
|
|
18
|
+
## For Developers, to get started with development on this package
|
|
19
|
+
|
|
20
|
+
#### Create a virtual environment
|
|
21
|
+
Specify the version of python you want to use.
|
|
22
|
+
```
|
|
23
|
+
python3.12 -m venv .venv
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
> **[NOTE]**
|
|
27
|
+
>
|
|
28
|
+
> If you get an error about the command failing due
|
|
29
|
+
> to missing `ensurepip` make sure you have the venv apt package installed.
|
|
30
|
+
>
|
|
31
|
+
> `sudo apt install python3.12-venv`
|
|
32
|
+
|
|
33
|
+
### Activate the virtual environment
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
source .venv/bin/activate
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Install test dependencies
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
pip install .[test]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Run tests
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
python -m unittest discover tests
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
If you want to run tests in a more isolated environment (useful to make sure your dependencies are all working)
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
tox -e 3.12
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Run flake8
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
tox -e flake8
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Build package (you shouldn't need to do this locally, but good to know how it works)
|
|
64
|
+
|
|
65
|
+
Simple way is to run
|
|
66
|
+
```
|
|
67
|
+
pip install build # if not already installed...
|
|
68
|
+
python -m build --wheel
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
This will build a source distribution with the version set to `1000.0.1.dev0+none`.
|
|
72
|
+
|
|
73
|
+
In our build system, we set some environment variables that impact the version.
|
|
74
|
+
|
|
75
|
+
For example:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
BRANCH_NAME=master BUILD_NUMBER=20 python -m build --wheel
|
|
79
|
+
```
|
|
80
|
+
Results in a package with the version set to `0.2.20`.
|
|
81
|
+
|
|
82
|
+
or
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
BRANCH_NAME=web-3555 BUILD_NUMBER=84 python -m build --wheel
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Results in a package with the version set to `1000.0.1.dev84+web.3555`.
|
|
89
|
+
|
|
90
|
+
To update the major or minor version of the product, update the `MAJOR` and `MINOR` variables in `aspose/build_version.py`.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
aspose/__init__.py,sha256=z-bogjNSCq5dCED8qzEIbokWnqLO18hhtItsP2EQwHY,285
|
|
2
|
+
aspose/_version.py,sha256=NFCujEaQJ3r58Yro32IvJLv5QiahkOxfTMSn2WaxZ4k,35
|
|
3
|
+
aspose/build_version.py,sha256=J-AHsRHJ9VlwD4ihMjOMxc36VnhGopa9FhTuL9ciNnY,227
|
|
4
|
+
d2d_aspose-2026.0.0.dist-info/METADATA,sha256=NFWidQQrDLQBSPLJBtQSRD9dbavKWao1l2t1Zrh2qK4,2118
|
|
5
|
+
d2d_aspose-2026.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
6
|
+
d2d_aspose-2026.0.0.dist-info/top_level.txt,sha256=oaVLKmiUSo0u7EtpqKJ11ARBx8ZWhYuUXJdy-lByYWg,7
|
|
7
|
+
d2d_aspose-2026.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
aspose
|