linkapy 1.1.0__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,26 @@
1
+ ## Pull Request naming scheme
2
+ Make sure the PR has a title that adheres to the following scheme:
3
+
4
+ - fix: description of bugfix.
5
+ - feat: description of new feature.
6
+ - build: description of changes to the build system or external dependencies.
7
+ - chore: description of changes that do not modify src or test files.
8
+ - ci: description of changes to CI configuration files and scripts.
9
+ - docs: description of changes to documentation.
10
+ - style: description of changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc).
11
+ - refactor: description of code changes that neither fixes a bug nor adds a feature.
12
+ - perf: description of changes that improve performance.
13
+ - test: description of changes to tests.
14
+
15
+ If functionality is broken, append a `!` to the type, e.g. `fix!:` or `feat!:`, to indicate a breaking change.
16
+
17
+ ## Pull Request Checklist
18
+
19
+ - [ ] Documentation has been updated
20
+ - [ ] API change
21
+ - [ ] CLI change
22
+ - [ ] Test is included
23
+
24
+ ## Description of Changes
25
+
26
+ <!-- Describe what you changed and why -->
@@ -0,0 +1,21 @@
1
+ name: build_docs
2
+ on: [push, pull_request]
3
+ jobs:
4
+ pytests:
5
+ runs-on: ubuntu-latest
6
+ strategy:
7
+ matrix:
8
+ python-version: ["3.10"]
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - uses: actions/setup-python@v5
12
+ with:
13
+ python-version: ${{ matrix.python-version }}
14
+ cache: 'pip'
15
+ - name: test
16
+ run: |
17
+ pip install .[docs]
18
+ - name: docs
19
+ run: |
20
+ cd docs
21
+ sphinx-build -b html . _build
@@ -0,0 +1,8 @@
1
+ name: Ruff
2
+ on: [push, pull_request]
3
+ jobs:
4
+ ruff:
5
+ runs-on: ubuntu-latest
6
+ steps:
7
+ - uses: actions/checkout@v4
8
+ - uses: astral-sh/ruff-action@v1
@@ -0,0 +1,51 @@
1
+ name: installation
2
+ on: [push, pull_request]
3
+ jobs:
4
+ pip_install_linux:
5
+ runs-on: ubuntu-latest
6
+ strategy:
7
+ matrix:
8
+ python-version: ["3.10", "3.11", "3.12"]
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - uses: actions/setup-python@v5
12
+ with:
13
+ python-version: ${{ matrix.python-version }}
14
+ cache: 'pip'
15
+ - name: base
16
+ run: |
17
+ pip install .
18
+ - name: test
19
+ run: |
20
+ pip install .[dev]
21
+ - name: docs
22
+ run: |
23
+ pip install .[docs]
24
+ pip_install_macos:
25
+ runs-on: macos-latest
26
+ strategy:
27
+ matrix:
28
+ python-version: ["3.10", "3.11", "3.12"]
29
+ steps:
30
+ - uses: actions/checkout@v4
31
+ - uses: actions/setup-python@v5
32
+ with:
33
+ python-version: ${{ matrix.python-version }}
34
+ cache: 'pip'
35
+ - name: base
36
+ run: |
37
+ pip install .
38
+ pip_install_windows:
39
+ runs-on: windows-latest
40
+ strategy:
41
+ matrix:
42
+ python-version: ["3.10", "3.11", "3.12"]
43
+ steps:
44
+ - uses: actions/checkout@v4
45
+ - uses: actions/setup-python@v5
46
+ with:
47
+ python-version: ${{ matrix.python-version }}
48
+ cache: 'pip'
49
+ - name: base
50
+ run: |
51
+ pip install .
@@ -0,0 +1,169 @@
1
+ name: pypi
2
+
3
+ on:
4
+ push:
5
+
6
+ permissions:
7
+ contents: read
8
+
9
+ jobs:
10
+ linux:
11
+ runs-on: ${{ matrix.platform.runner }}
12
+ strategy:
13
+ matrix:
14
+ platform:
15
+ - runner: ubuntu-22.04
16
+ target: x86_64
17
+ - runner: ubuntu-22.04
18
+ target: x86
19
+ - runner: ubuntu-22.04
20
+ target: aarch64
21
+ - runner: ubuntu-22.04
22
+ target: armv7
23
+ - runner: ubuntu-22.04
24
+ target: s390x
25
+ - runner: ubuntu-22.04
26
+ target: ppc64le
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - uses: actions/setup-python@v5
30
+ with:
31
+ python-version: 3.x
32
+ - name: Build wheels
33
+ uses: PyO3/maturin-action@v1
34
+ with:
35
+ target: ${{ matrix.platform.target }}
36
+ args: --release --out dist --find-interpreter
37
+ sccache: 'true'
38
+ manylinux: auto
39
+ - name: Upload wheels
40
+ uses: actions/upload-artifact@v4
41
+ with:
42
+ name: wheels-linux-${{ matrix.platform.target }}
43
+ path: dist
44
+
45
+ musllinux:
46
+ runs-on: ${{ matrix.platform.runner }}
47
+ strategy:
48
+ matrix:
49
+ platform:
50
+ - runner: ubuntu-22.04
51
+ target: x86_64
52
+ - runner: ubuntu-22.04
53
+ target: x86
54
+ - runner: ubuntu-22.04
55
+ target: aarch64
56
+ - runner: ubuntu-22.04
57
+ target: armv7
58
+ steps:
59
+ - uses: actions/checkout@v4
60
+ - uses: actions/setup-python@v5
61
+ with:
62
+ python-version: 3.x
63
+ - name: Build wheels
64
+ uses: PyO3/maturin-action@v1
65
+ with:
66
+ target: ${{ matrix.platform.target }}
67
+ args: --release --out dist --find-interpreter
68
+ sccache: 'true'
69
+ manylinux: musllinux_1_2
70
+ - name: Upload wheels
71
+ uses: actions/upload-artifact@v4
72
+ with:
73
+ name: wheels-musllinux-${{ matrix.platform.target }}
74
+ path: dist
75
+
76
+ windows:
77
+ runs-on: ${{ matrix.platform.runner }}
78
+ strategy:
79
+ matrix:
80
+ platform:
81
+ - runner: windows-latest
82
+ target: x64
83
+ - runner: windows-latest
84
+ target: x86
85
+ steps:
86
+ - uses: actions/checkout@v4
87
+ - uses: actions/setup-python@v5
88
+ with:
89
+ python-version: 3.x
90
+ architecture: ${{ matrix.platform.target }}
91
+ - name: Build wheels
92
+ uses: PyO3/maturin-action@v1
93
+ with:
94
+ target: ${{ matrix.platform.target }}
95
+ args: --release --out dist --find-interpreter
96
+ sccache: 'true'
97
+ - name: Upload wheels
98
+ uses: actions/upload-artifact@v4
99
+ with:
100
+ name: wheels-windows-${{ matrix.platform.target }}
101
+ path: dist
102
+
103
+ macos:
104
+ runs-on: ${{ matrix.platform.runner }}
105
+ strategy:
106
+ matrix:
107
+ platform:
108
+ - runner: macos-13
109
+ target: x86_64
110
+ - runner: macos-14
111
+ target: aarch64
112
+ steps:
113
+ - uses: actions/checkout@v4
114
+ - uses: actions/setup-python@v5
115
+ with:
116
+ python-version: 3.x
117
+ - name: Build wheels
118
+ uses: PyO3/maturin-action@v1
119
+ with:
120
+ target: ${{ matrix.platform.target }}
121
+ args: --release --out dist --find-interpreter
122
+ sccache: 'true'
123
+ - name: Upload wheels
124
+ uses: actions/upload-artifact@v4
125
+ with:
126
+ name: wheels-macos-${{ matrix.platform.target }}
127
+ path: dist
128
+
129
+ sdist:
130
+ runs-on: ubuntu-latest
131
+ steps:
132
+ - uses: actions/checkout@v4
133
+ - name: Build sdist
134
+ uses: PyO3/maturin-action@v1
135
+ with:
136
+ command: sdist
137
+ args: --out dist
138
+ - name: Upload sdist
139
+ uses: actions/upload-artifact@v4
140
+ with:
141
+ name: wheels-sdist
142
+ path: dist
143
+
144
+ release:
145
+ name: Release
146
+ runs-on: ubuntu-latest
147
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
148
+ needs: [linux, musllinux, windows, macos, sdist]
149
+ permissions:
150
+ # Use to sign the release artifacts
151
+ id-token: write
152
+ # Used to upload release artifacts
153
+ contents: write
154
+ # Used to generate artifact attestation
155
+ attestations: write
156
+ steps:
157
+ - uses: actions/download-artifact@v4
158
+ - name: Generate artifact attestation
159
+ uses: actions/attest-build-provenance@v1
160
+ with:
161
+ subject-path: 'wheels-*/*'
162
+ - name: Publish to PyPI
163
+ if: "startsWith(github.ref, 'refs/tags/')"
164
+ uses: PyO3/maturin-action@v1
165
+ env:
166
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
167
+ with:
168
+ command: upload
169
+ args: --non-interactive --skip-existing wheels-*/*
@@ -0,0 +1,19 @@
1
+ on:
2
+ push:
3
+ branches:
4
+ - main
5
+
6
+ permissions:
7
+ contents: write
8
+ pull-requests: write
9
+
10
+ name: release-please
11
+
12
+ jobs:
13
+ release-please:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: googleapis/release-please-action@v4
17
+ with:
18
+ token: ${{ secrets.RELEASE_PLEASE }}
19
+ release-type: rust
@@ -0,0 +1,20 @@
1
+ name: pytests
2
+ on: [push, pull_request]
3
+ jobs:
4
+ pytests:
5
+ runs-on: ubuntu-latest
6
+ strategy:
7
+ matrix:
8
+ python-version: ["3.10"]
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - uses: actions/setup-python@v5
12
+ with:
13
+ python-version: ${{ matrix.python-version }}
14
+ cache: 'pip'
15
+ - name: test
16
+ run: |
17
+ pip install .[dev]
18
+ - name: run tests
19
+ run: |
20
+ pytest -v
@@ -0,0 +1,162 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
110
+ .pdm.toml
111
+ .pdm-python
112
+ .pdm-build/
113
+
114
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115
+ __pypackages__/
116
+
117
+ # Celery stuff
118
+ celerybeat-schedule
119
+ celerybeat.pid
120
+
121
+ # SageMath parsed files
122
+ *.sage.py
123
+
124
+ # Environments
125
+ .env
126
+ .venv
127
+ env/
128
+ venv/
129
+ ENV/
130
+ env.bak/
131
+ venv.bak/
132
+
133
+ # Spyder project settings
134
+ .spyderproject
135
+ .spyproject
136
+
137
+ # Rope project settings
138
+ .ropeproject
139
+
140
+ # mkdocs documentation
141
+ /site
142
+
143
+ # mypy
144
+ .mypy_cache/
145
+ .dmypy.json
146
+ dmypy.json
147
+
148
+ # Pyre type checker
149
+ .pyre/
150
+
151
+ # pytype static type analyzer
152
+ .pytype/
153
+
154
+ # Cython debug symbols
155
+ cython_debug/
156
+
157
+ # PyCharm
158
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
159
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
161
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
162
+ #.idea/
@@ -0,0 +1,25 @@
1
+ # Read the Docs configuration file
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Set the OS, Python version, and other tools you might need
8
+ build:
9
+ os: ubuntu-22.04
10
+ tools:
11
+ python: "3.12"
12
+ rust: "1.82"
13
+ apt_packages:
14
+ - clang
15
+
16
+ # Build documentation in the "docs/" directory with Sphinx
17
+ sphinx:
18
+ configuration: docs/conf.py
19
+
20
+ python:
21
+ install:
22
+ - method: pip
23
+ path: .
24
+ extra_requirements:
25
+ - docs
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ ## [1.1.0](https://github.com/WardDeb/linkapy/compare/v1.0.0...v1.1.0) (2025-07-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * automated pypi upload on release ([#10](https://github.com/WardDeb/linkapy/issues/10)) ([d190211](https://github.com/WardDeb/linkapy/commit/d190211286d8d5fb0a1c10f86f16b62fee6acda1))
9
+ * versioning, libname, templates ([#7](https://github.com/WardDeb/linkapy/issues/7)) ([da6bc41](https://github.com/WardDeb/linkapy/commit/da6bc41b0845a0ab1116cb52dfa4db701d129a96))
10
+
11
+ ## 1.0.0 (2025-07-26)
12
+
13
+
14
+ ### Features
15
+
16
+ * release please ([da22150](https://github.com/WardDeb/linkapy/commit/da221505a6e27dcd75102640e8a4b201d9e1e862))