pyuiua 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.
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -0,0 +1,139 @@
1
+ # This file was originally autogenerated by maturin v1.10.2 with
2
+ #
3
+ # maturin generate-ci github --platform windows --platform macos --platform linux -o .github/workflows/CI.yml
4
+ #
5
+ name: Build
6
+
7
+ on:
8
+ push:
9
+ tags:
10
+ - '*'
11
+ workflow_dispatch:
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ linux:
18
+ if: startsWith(github.ref, 'refs/tags/')
19
+ runs-on: ${{ matrix.platform.runner }}
20
+ strategy:
21
+ matrix:
22
+ platform:
23
+ - runner: ubuntu-22.04
24
+ target: x86_64
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ - uses: actions/setup-python@v5
28
+ with:
29
+ python-version: 3.x
30
+ - name: Build wheels
31
+ uses: PyO3/maturin-action@v1
32
+ with:
33
+ target: ${{ matrix.platform.target }}
34
+ args: --release --out dist --find-interpreter
35
+ sccache: 'true'
36
+ manylinux: auto
37
+ - name: Upload wheels
38
+ uses: actions/upload-artifact@v4
39
+ with:
40
+ name: wheels-linux-${{ matrix.platform.target }}
41
+ path: dist
42
+
43
+ windows:
44
+ if: startsWith(github.ref, 'refs/tags/')
45
+ runs-on: ${{ matrix.platform.runner }}
46
+ strategy:
47
+ matrix:
48
+ platform:
49
+ - runner: windows-latest
50
+ target: x64
51
+ - runner: windows-latest
52
+ target: x86
53
+ steps:
54
+ - uses: actions/checkout@v4
55
+ - uses: actions/setup-python@v5
56
+ with:
57
+ python-version: 3.x
58
+ architecture: ${{ matrix.platform.target }}
59
+ - name: Build wheels
60
+ uses: PyO3/maturin-action@v1
61
+ with:
62
+ target: ${{ matrix.platform.target }}
63
+ args: --release --out dist --find-interpreter
64
+ sccache: 'true'
65
+ - name: Upload wheels
66
+ uses: actions/upload-artifact@v4
67
+ with:
68
+ name: wheels-windows-${{ matrix.platform.target }}
69
+ path: dist
70
+
71
+ macos:
72
+ if: startsWith(github.ref, 'refs/tags/')
73
+ runs-on: ${{ matrix.platform.runner }}
74
+ strategy:
75
+ matrix:
76
+ platform:
77
+ - runner: macos-13
78
+ target: x86_64
79
+ - runner: macos-14
80
+ target: aarch64
81
+ steps:
82
+ - uses: actions/checkout@v4
83
+ - uses: actions/setup-python@v5
84
+ with:
85
+ python-version: 3.x
86
+ - name: Build wheels
87
+ uses: PyO3/maturin-action@v1
88
+ with:
89
+ target: ${{ matrix.platform.target }}
90
+ args: --release --out dist --find-interpreter
91
+ sccache: 'true'
92
+ - name: Upload wheels
93
+ uses: actions/upload-artifact@v4
94
+ with:
95
+ name: wheels-macos-${{ matrix.platform.target }}
96
+ path: dist
97
+
98
+ sdist:
99
+ if: startsWith(github.ref, 'refs/tags/')
100
+ runs-on: ubuntu-latest
101
+ steps:
102
+ - uses: actions/checkout@v4
103
+ - name: Build sdist
104
+ uses: PyO3/maturin-action@v1
105
+ with:
106
+ command: sdist
107
+ args: --out dist
108
+ - name: Upload sdist
109
+ uses: actions/upload-artifact@v4
110
+ with:
111
+ name: wheels-sdist
112
+ path: dist
113
+
114
+ release:
115
+ name: Release
116
+ runs-on: ubuntu-latest
117
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
118
+ needs: [linux, windows, macos, sdist]
119
+ permissions:
120
+ # Use to sign the release artifacts
121
+ id-token: write
122
+ # Used to upload release artifacts
123
+ contents: write
124
+ # Used to generate artifact attestation
125
+ attestations: write
126
+ steps:
127
+ - uses: actions/download-artifact@v4
128
+ - name: Generate artifact attestation
129
+ uses: actions/attest-build-provenance@v2
130
+ with:
131
+ subject-path: 'wheels-*/*'
132
+ - name: Publish to PyPI
133
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
134
+ uses: PyO3/maturin-action@v1
135
+ env:
136
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
137
+ with:
138
+ command: upload
139
+ args: --non-interactive --skip-existing wheels-*/*
@@ -0,0 +1,51 @@
1
+ name: Lint and test
2
+
3
+ on:
4
+ push:
5
+ paths:
6
+ - 'src/**'
7
+ - 'Cargo.toml'
8
+ - 'Cargo.lock'
9
+ - 'pyproject.toml'
10
+ - 'tests/**'
11
+ - '.github/workflows/test.yml'
12
+ pull_request:
13
+ paths:
14
+ - 'src/**'
15
+ - 'Cargo.toml'
16
+ - 'Cargo.lock'
17
+ - 'pyproject.toml'
18
+ - 'tests/**'
19
+ - '.github/workflows/test.yml'
20
+
21
+
22
+ permissions:
23
+ contents: read
24
+
25
+ jobs:
26
+ lint:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v5
30
+
31
+ - name: Install Rust toolchain
32
+ uses: dtolnay/rust-toolchain@stable
33
+ with:
34
+ components: clippy
35
+
36
+ - name: Run cargo clippy
37
+ run: cargo clippy -- -D clippy::pedantic
38
+
39
+ test:
40
+ runs-on: ubuntu-latest
41
+ steps:
42
+ - uses: actions/checkout@v5
43
+
44
+ - name: Install uv
45
+ uses: astral-sh/setup-uv@v5
46
+
47
+ - name: Set up Python
48
+ run: uv python install
49
+
50
+ - name: Run tests
51
+ run: uv run pytest
@@ -0,0 +1,168 @@
1
+ # Generated by Cargo
2
+ # will have compiled files and executables
3
+ debug/
4
+ target/
5
+
6
+ # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
7
+ # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
8
+ Cargo.lock
9
+
10
+ # These are backup files generated by rustfmt
11
+ **/*.rs.bk
12
+
13
+ # MSVC Windows builds of rustc generate these, which store debugging information
14
+ *.pdb
15
+
16
+ # Byte-compiled / optimized / DLL files
17
+ __pycache__/
18
+ *.py[cod]
19
+ *$py.class
20
+
21
+ # C extensions
22
+ *.so
23
+
24
+ # Distribution / packaging
25
+ .Python
26
+ build/
27
+ develop-eggs/
28
+ dist/
29
+ downloads/
30
+ eggs/
31
+ .eggs/
32
+ lib/
33
+ lib64/
34
+ parts/
35
+ sdist/
36
+ var/
37
+ wheels/
38
+ share/python-wheels/
39
+ *.egg-info/
40
+ .installed.cfg
41
+ *.egg
42
+ MANIFEST
43
+
44
+ # PyInstaller
45
+ # Usually these files are written by a python script from a template
46
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
47
+ *.manifest
48
+ *.spec
49
+
50
+ # Installer logs
51
+ pip-log.txt
52
+ pip-delete-this-directory.txt
53
+
54
+ # Unit test / coverage reports
55
+ htmlcov/
56
+ .tox/
57
+ .nox/
58
+ .coverage
59
+ .coverage.*
60
+ .cache
61
+ nosetests.xml
62
+ coverage.xml
63
+ *.cover
64
+ *.py,cover
65
+ .hypothesis/
66
+ .pytest_cache/
67
+ cover/
68
+
69
+ # Translations
70
+ *.mo
71
+ *.pot
72
+
73
+ # Django stuff:
74
+ *.log
75
+ local_settings.py
76
+ db.sqlite3
77
+ db.sqlite3-journal
78
+
79
+ # Flask stuff:
80
+ instance/
81
+ .webassets-cache
82
+
83
+ # Scrapy stuff:
84
+ .scrapy
85
+
86
+ # Sphinx documentation
87
+ docs/_build/
88
+
89
+ # PyBuilder
90
+ .pybuilder/
91
+ target/
92
+
93
+ # Jupyter Notebook
94
+ .ipynb_checkpoints
95
+
96
+ # IPython
97
+ profile_default/
98
+ ipython_config.py
99
+
100
+ # pyenv
101
+ # For a library or package, you might want to ignore these files since the code is
102
+ # intended to run in multiple environments; otherwise, check them in:
103
+ # .python-version
104
+
105
+ # pipenv
106
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
107
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
108
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
109
+ # install all needed dependencies.
110
+ #Pipfile.lock
111
+
112
+ # poetry
113
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
114
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
115
+ # commonly ignored for libraries.
116
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
117
+ #poetry.lock
118
+
119
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
120
+ __pypackages__/
121
+
122
+ # Celery stuff
123
+ celerybeat-schedule
124
+ celerybeat.pid
125
+
126
+ # SageMath parsed files
127
+ *.sage.py
128
+
129
+ # Environments
130
+ .env
131
+ .venv
132
+ env/
133
+ venv/
134
+ ENV/
135
+ env.bak/
136
+ venv.bak/
137
+
138
+ # Spyder project settings
139
+ .spyderproject
140
+ .spyproject
141
+
142
+ # Rope project settings
143
+ .ropeproject
144
+
145
+ # mkdocs documentation
146
+ /site
147
+
148
+ # mypy
149
+ .mypy_cache/
150
+ .dmypy.json
151
+ dmypy.json
152
+
153
+ # Pyre type checker
154
+ .pyre/
155
+
156
+ # pytype static type analyzer
157
+ .pytype/
158
+
159
+ # Cython debug symbols
160
+ cython_debug/
161
+
162
+ # PyCharm
163
+ # JetBrains specific template is maintainted in a separate JetBrains.gitignore that can
164
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
165
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
166
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
167
+ .idea/
168
+