vcf-subset 2.0.0__tar.gz → 2.0.2__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,20 @@
1
+ on:
2
+ pull_request:
3
+ branches:
4
+ - develop
5
+ - main
6
+ push:
7
+ tags:
8
+ - '*.*.*'
9
+ - '*.*.*-rc*'
10
+
11
+ jobs:
12
+ gitleaks:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ fetch-depth: 0
18
+
19
+ - name: Check for GitLeaks
20
+ uses: gacts/gitleaks@v1
@@ -1,9 +1,9 @@
1
- # This file is autogenerated by maturin v1.7.4
1
+ # This file is autogenerated by maturin v1.7.0
2
2
  # To update, run
3
3
  #
4
4
  # maturin generate-ci github
5
5
  #
6
- name: CI
6
+ name: Release package
7
7
 
8
8
  on:
9
9
  release:
@@ -13,6 +13,17 @@ permissions:
13
13
  contents: read
14
14
 
15
15
  jobs:
16
+ cargo:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - uses: actions-rs/toolchain@v1
21
+ with:
22
+ toolchain: stable
23
+ override: true
24
+ - uses: katyo/publish-crates@v2
25
+ with:
26
+ registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
16
27
  linux:
17
28
  runs-on: ${{ matrix.platform.runner }}
18
29
  strategy:
@@ -20,7 +31,9 @@ jobs:
20
31
  platform:
21
32
  - runner: ubuntu-latest
22
33
  target: x86_64
23
- - runner: ubuntu-latest
34
+ # The manylinux2014 i686 container can't resolve vault.centos.org on
35
+ # ubuntu-26.04. See https://github.com/PyO3/maturin-action/issues/484
36
+ - runner: ubuntu-24.04
24
37
  target: x86
25
38
  - runner: ubuntu-latest
26
39
  target: aarch64
@@ -79,59 +92,6 @@ jobs:
79
92
  name: wheels-musllinux-${{ matrix.platform.target }}
80
93
  path: dist
81
94
 
82
- windows:
83
- runs-on: ${{ matrix.platform.runner }}
84
- strategy:
85
- matrix:
86
- platform:
87
- - runner: windows-latest
88
- target: x64
89
- - runner: windows-latest
90
- target: x86
91
- steps:
92
- - uses: actions/checkout@v4
93
- - uses: actions/setup-python@v5
94
- with:
95
- python-version: 3.x
96
- architecture: ${{ matrix.platform.target }}
97
- - name: Build wheels
98
- uses: PyO3/maturin-action@v1
99
- with:
100
- target: ${{ matrix.platform.target }}
101
- args: --release --out dist --find-interpreter
102
- sccache: 'true'
103
- - name: Upload wheels
104
- uses: actions/upload-artifact@v4
105
- with:
106
- name: wheels-windows-${{ matrix.platform.target }}
107
- path: dist
108
-
109
- macos:
110
- runs-on: ${{ matrix.platform.runner }}
111
- strategy:
112
- matrix:
113
- platform:
114
- - runner: macos-12
115
- target: x86_64
116
- - runner: macos-14
117
- target: aarch64
118
- steps:
119
- - uses: actions/checkout@v4
120
- - uses: actions/setup-python@v5
121
- with:
122
- python-version: 3.x
123
- - name: Build wheels
124
- uses: PyO3/maturin-action@v1
125
- with:
126
- target: ${{ matrix.platform.target }}
127
- args: --release --out dist --find-interpreter
128
- sccache: 'true'
129
- - name: Upload wheels
130
- uses: actions/upload-artifact@v4
131
- with:
132
- name: wheels-macos-${{ matrix.platform.target }}
133
- path: dist
134
-
135
95
  sdist:
136
96
  runs-on: ubuntu-latest
137
97
  steps:
@@ -150,23 +110,11 @@ jobs:
150
110
  release:
151
111
  name: Release
152
112
  runs-on: ubuntu-latest
153
- if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
154
- needs: [linux, musllinux, windows, macos, sdist]
155
- permissions:
156
- # Use to sign the release artifacts
157
- id-token: write
158
- # Used to upload release artifacts
159
- contents: write
160
- # Used to generate artifact attestation
161
- attestations: write
113
+ if: "startsWith(github.ref, 'refs/tags/')"
114
+ needs: [linux, musllinux, sdist]
162
115
  steps:
163
116
  - uses: actions/download-artifact@v4
164
- - name: Generate artifact attestation
165
- uses: actions/attest-build-provenance@v1
166
- with:
167
- subject-path: 'wheels-*/*'
168
117
  - name: Publish to PyPI
169
- if: "startsWith(github.ref, 'refs/tags/')"
170
118
  uses: PyO3/maturin-action@v1
171
119
  env:
172
120
  MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
@@ -1,18 +1,6 @@
1
1
  # This file is automatically @generated by Cargo.
2
2
  # It is not intended for manual editing.
3
- version = 3
4
-
5
- [[package]]
6
- name = "autocfg"
7
- version = "1.4.0"
8
- source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
10
-
11
- [[package]]
12
- name = "cfg-if"
13
- version = "1.0.0"
14
- source = "registry+https://github.com/rust-lang/crates.io-index"
15
- checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
3
+ version = 4
16
4
 
17
5
  [[package]]
18
6
  name = "heck"
@@ -20,35 +8,17 @@ version = "0.5.0"
20
8
  source = "registry+https://github.com/rust-lang/crates.io-index"
21
9
  checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
22
10
 
23
- [[package]]
24
- name = "indoc"
25
- version = "2.0.5"
26
- source = "registry+https://github.com/rust-lang/crates.io-index"
27
- checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
28
-
29
11
  [[package]]
30
12
  name = "libc"
31
13
  version = "0.2.159"
32
14
  source = "registry+https://github.com/rust-lang/crates.io-index"
33
15
  checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5"
34
16
 
35
- [[package]]
36
- name = "memoffset"
37
- version = "0.9.1"
38
- source = "registry+https://github.com/rust-lang/crates.io-index"
39
- checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
40
- dependencies = [
41
- "autocfg",
42
- ]
43
-
44
17
  [[package]]
45
18
  name = "once_cell"
46
- version = "1.20.1"
19
+ version = "1.21.4"
47
20
  source = "registry+https://github.com/rust-lang/crates.io-index"
48
- checksum = "82881c4be219ab5faaf2ad5e5e5ecdff8c66bd7402ca3160975c93b24961afd1"
49
- dependencies = [
50
- "portable-atomic",
51
- ]
21
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
52
22
 
53
23
  [[package]]
54
24
  name = "portable-atomic"
@@ -58,46 +28,41 @@ checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
58
28
 
59
29
  [[package]]
60
30
  name = "proc-macro2"
61
- version = "1.0.86"
31
+ version = "1.0.107"
62
32
  source = "registry+https://github.com/rust-lang/crates.io-index"
63
- checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
33
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
64
34
  dependencies = [
65
35
  "unicode-ident",
66
36
  ]
67
37
 
68
38
  [[package]]
69
39
  name = "pyo3"
70
- version = "0.22.3"
40
+ version = "0.30.1"
71
41
  source = "registry+https://github.com/rust-lang/crates.io-index"
72
- checksum = "15ee168e30649f7f234c3d49ef5a7a6cbf5134289bc46c29ff3155fa3221c225"
42
+ checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
73
43
  dependencies = [
74
- "cfg-if",
75
- "indoc",
76
44
  "libc",
77
- "memoffset",
78
45
  "once_cell",
79
46
  "portable-atomic",
80
47
  "pyo3-build-config",
81
48
  "pyo3-ffi",
82
49
  "pyo3-macros",
83
- "unindent",
84
50
  ]
85
51
 
86
52
  [[package]]
87
53
  name = "pyo3-build-config"
88
- version = "0.22.3"
54
+ version = "0.30.1"
89
55
  source = "registry+https://github.com/rust-lang/crates.io-index"
90
- checksum = "e61cef80755fe9e46bb8a0b8f20752ca7676dcc07a5277d8b7768c6172e529b3"
56
+ checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
91
57
  dependencies = [
92
- "once_cell",
93
58
  "target-lexicon",
94
59
  ]
95
60
 
96
61
  [[package]]
97
62
  name = "pyo3-ffi"
98
- version = "0.22.3"
63
+ version = "0.30.1"
99
64
  source = "registry+https://github.com/rust-lang/crates.io-index"
100
- checksum = "67ce096073ec5405f5ee2b8b31f03a68e02aa10d5d4f565eca04acc41931fa1c"
65
+ checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
101
66
  dependencies = [
102
67
  "libc",
103
68
  "pyo3-build-config",
@@ -105,9 +70,9 @@ dependencies = [
105
70
 
106
71
  [[package]]
107
72
  name = "pyo3-macros"
108
- version = "0.22.3"
73
+ version = "0.30.1"
109
74
  source = "registry+https://github.com/rust-lang/crates.io-index"
110
- checksum = "2440c6d12bc8f3ae39f1e775266fa5122fd0c8891ce7520fa6048e683ad3de28"
75
+ checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
111
76
  dependencies = [
112
77
  "proc-macro2",
113
78
  "pyo3-macros-backend",
@@ -117,13 +82,12 @@ dependencies = [
117
82
 
118
83
  [[package]]
119
84
  name = "pyo3-macros-backend"
120
- version = "0.22.3"
85
+ version = "0.30.1"
121
86
  source = "registry+https://github.com/rust-lang/crates.io-index"
122
- checksum = "1be962f0e06da8f8465729ea2cb71a416d2257dff56cbe40a70d3e62a93ae5d1"
87
+ checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
123
88
  dependencies = [
124
89
  "heck",
125
90
  "proc-macro2",
126
- "pyo3-build-config",
127
91
  "quote",
128
92
  "syn",
129
93
  ]
@@ -139,9 +103,9 @@ dependencies = [
139
103
 
140
104
  [[package]]
141
105
  name = "syn"
142
- version = "2.0.79"
106
+ version = "3.0.10"
143
107
  source = "registry+https://github.com/rust-lang/crates.io-index"
144
- checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590"
108
+ checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
145
109
  dependencies = [
146
110
  "proc-macro2",
147
111
  "quote",
@@ -150,9 +114,9 @@ dependencies = [
150
114
 
151
115
  [[package]]
152
116
  name = "target-lexicon"
153
- version = "0.12.16"
117
+ version = "0.13.5"
154
118
  source = "registry+https://github.com/rust-lang/crates.io-index"
155
- checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
119
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
156
120
 
157
121
  [[package]]
158
122
  name = "unicode-ident"
@@ -160,15 +124,9 @@ version = "1.0.13"
160
124
  source = "registry+https://github.com/rust-lang/crates.io-index"
161
125
  checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
162
126
 
163
- [[package]]
164
- name = "unindent"
165
- version = "0.2.3"
166
- source = "registry+https://github.com/rust-lang/crates.io-index"
167
- checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
168
-
169
127
  [[package]]
170
128
  name = "vcf_subset"
171
- version = "2.0.0"
129
+ version = "2.0.2"
172
130
  dependencies = [
173
131
  "pyo3",
174
132
  ]
@@ -1,7 +1,8 @@
1
1
  [package]
2
2
  name = "vcf_subset"
3
- version = "2.0.0"
3
+ version = "2.0.2"
4
4
  edition = "2021"
5
+ readme = "README.md"
5
6
 
6
7
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
8
  [lib]
@@ -9,7 +10,7 @@ name = "vcf_subset"
9
10
  crate-type = ["cdylib"]
10
11
 
11
12
  [dependencies]
12
- pyo3 = "0.22.0"
13
+ pyo3 = { version = "0.30", features = ["extension-module", "abi3-py39", "abi3-py310", "abi3-py311", "abi3-py312", "abi3-py313"] }
13
14
 
14
15
  [profile.dev]
15
16
  opt-level = 3
@@ -0,0 +1,85 @@
1
+ LICENCE TERMS FOR ACCESS TO SOFTWARE AND DATABASE FOR ACADEMIC USE
2
+
3
+ These licence terms apply to all licences granted by THE CHANCELLOR, MASTERS AND SCHOLARS OF THE UNIVERSITY
4
+ OF OXFORD whose administrative offices are at University Offices, Wellington Square, Oxford OX1 2JD,
5
+ United Kingdom (the "University") for use of or access to vcf_subset software ("the Software")
6
+ through this website (the "Website").
7
+
8
+ PLEASE READ THESE LICENCE TERMS CAREFULLY BEFORE USING THE DATABASE OR THE SOFTWARE THROUGH THIS WEBSITE.
9
+ IF YOU DO NOT AGREE TO THESE LICENCE TERMS YOU SHOULD NOT DOWNLOAD OR USE THE SOFTWARE.
10
+
11
+ THE SOFTWARE ARE INTENDED FOR ACADEMICS CARRYING OUT RESEARCH AND NOT FOR USE BY CONSUMERS OR COMMERCIAL BUSINESSES.
12
+
13
+ 1. Academic Use Licence
14
+
15
+ 1.1 The User is granted a limited non-exclusive and non-transferable royalty free licence to access and
16
+ use the Software provided that the User will:
17
+
18
+ (a) limit their use of the Software to their own internal academic non-commercial research which is
19
+ undertaken for the purposes of education or other scholarly use;
20
+
21
+ (b) not use the Software for or on behalf of any third party or to provide a service or integrate all
22
+ or part of the Software into a product for sale or license to third parties;
23
+
24
+ (c) use the Software in accordance with the prevailing instructions and guidance for use given on the
25
+ Website and comply with procedures on the Website for user identification, authentication and access;
26
+
27
+ (d) comply with all applicable laws and regulations with respect to their use of the Software;
28
+
29
+ (e) except to the extent expressly permitted under these terms, not attempt to: reverse compile, disassemble
30
+ or copy, modify, duplicate, create derivative works from, frame, mirror, republish, download, display, transmit,
31
+ or distribute all or any portion of the Software or Website in any form or media or by any means; and
32
+
33
+ (f) ensure that the Copyright Notice “Copyright © 2022, University of Oxford” appears prominently wherever
34
+ results from the Software are used, and is referenced or cited with the Copyright Notice when the Software
35
+ is described in any research publication or on any documents or other material created using the Software.
36
+
37
+ 1.2 the University reserves the right at any time and without liability or prior notice to the User to
38
+ revise, modify and replace the functionality and performance of the access to and operation of the Software.
39
+
40
+ 1.3 The User acknowledges and agrees that the University owns all intellectual property rights in the Software.
41
+ The User shall not have any right, title or interest in or to any results or other output from the Software.
42
+
43
+ 1.4 This Licence will terminate immediately and the User will no longer have any right exercise any of the
44
+ rights granted to the User upon any breach of the conditions in Section 1.1 of this Licence.
45
+
46
+ 2. Indemnity and Liability
47
+
48
+ 2.1 The User shall defend, indemnify and hold harmless the University against any claims, actions, proceedings,
49
+ losses, damages, expenses and costs (including without limitation court costs and reasonable legal fees) arising
50
+ out of or in connection with the User's possession or use of the Software, or any breach of these terms by the User.
51
+
52
+ 2.2 The Software are provided on an ‘as is’ basis and the User uses the Software at their own risk. No representations,
53
+ conditions, warranties or other terms of any kind are given in respect of the Software and all statutory warranties
54
+ and conditions are excluded to the fullest extent permitted by law. Without affecting the generality of the previous
55
+ sentences, the University gives no implied or express warranty and makes no representation that the Software or
56
+ any part of them: (a) will enable specific results to be obtained; or (b) meets a particular specification or is
57
+ comprehensive within its field or that it is error free or will operate without interruption; or (c) is suitable
58
+ for any particular, or the User's specific purposes.
59
+
60
+ 2.3 Except in relation to fraud, death or personal injury, the University's liability to the User for any use of
61
+ the Software, in negligence or arising in any other way out of the subject matter of these licence terms, will not
62
+ extend to any incidental or consequential damages or losses, or any loss of profits, loss of revenue, loss of data,
63
+ loss of contracts or opportunity, whether direct or indirect.
64
+
65
+ 2.4 The User hereby irrevocably undertakes to the University not to make any claim against any employee, student,
66
+ researcher or other individual engaged by the University, being a claim which seeks to enforce against any of them
67
+ any liability whatsoever in connection with this agreement or its subject-matter.
68
+
69
+ 3. General
70
+
71
+ 3.1 Severability - If any provision (or part of a provision) of these licence terms is found by any court or
72
+ administrative body of competent jurisdiction to be invalid, unenforceable or illegal, the other provisions shall
73
+ remain in force.
74
+
75
+ 3.2 Entire Agreement - These licence terms and any documents referred to in them, constitute the whole agreement
76
+ between the parties and supersede any previous arrangement, understanding or agreement between them relating to
77
+ the Software.
78
+
79
+ 3.3 Law and Jurisdiction - These licence terms and any disputes or claims arising out of or in connection with them
80
+ shall be governed by, and construed in accordance with, the law of England. The User irrevocably submits to the
81
+ exclusive jurisdiction of the English courts for any dispute or claim that arises out of or in connection with
82
+ these licence terms.
83
+
84
+ If you are interested in using the Software commercially, please contact Oxford University Innovation Limited to
85
+ negotiate a licence. Contact details are enquiries@innovation.ox.ac.uk quoting reference (TBD).
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: vcf_subset
3
+ Version: 2.0.2
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Programming Language :: Python :: Implementation :: CPython
6
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
7
+ License-File: LICENSE
8
+ Requires-Python: >=3.8, <3.13
@@ -1,5 +1,7 @@
1
1
  # vcf_subset
2
- Efficient VCF subsetting by genome position. Written in Rust, but provided as a python module to save ~3 minutes per TB GVCF
2
+ Efficient VCF subsetting by genome position. Written in Rust, but provided as a python module to save ~3 minutes per TB GVCF. This code
3
+ is functionall part of `gnomonicus` but is in a seperate repository
4
+ so it can effecitvely be a python package.
3
5
 
4
6
  ## Install
5
7
  ```
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "vcf_subset"
7
- requires-python = ">=3.8"
7
+ requires-python = ">=3.8,<3.13"
8
8
  classifiers = [
9
9
  "Programming Language :: Rust",
10
10
  "Programming Language :: Python :: Implementation :: CPython",
vcf_subset-2.0.0/PKG-INFO DELETED
@@ -1,27 +0,0 @@
1
- Metadata-Version: 2.3
2
- Name: vcf_subset
3
- Version: 2.0.0
4
- Classifier: Programming Language :: Rust
5
- Classifier: Programming Language :: Python :: Implementation :: CPython
6
- Classifier: Programming Language :: Python :: Implementation :: PyPy
7
- Requires-Python: >=3.8
8
- Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
9
-
10
- # vcf_subset
11
- Efficient VCF subsetting by genome position. Written in Rust, but provided as a python module to save ~3 minutes per TB GVCF
12
-
13
- ## Install
14
- ```
15
- pip install vcf_subset
16
- ```
17
-
18
- ## Local (dev) install
19
- ```
20
- # Optional virtual environment
21
- python -m virtualenv env
22
- source env/bin/activate
23
-
24
- # Install
25
- pip install .
26
- ```
27
-
File without changes
File without changes