curies 0.9.0__tar.gz → 0.9.2.dev0__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.
- {curies-0.9.0/src/curies.egg-info → curies-0.9.2.dev0}/PKG-INFO +12 -25
- {curies-0.9.0 → curies-0.9.2.dev0}/README.md +8 -24
- {curies-0.9.0 → curies-0.9.2.dev0}/pyproject.toml +9 -4
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/__init__.py +17 -20
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/api.py +88 -91
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/cli.py +21 -12
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/discovery.py +14 -12
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/mapping_service/api.py +21 -19
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/mapping_service/rdflib_custom.py +2 -2
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/mapping_service/utils.py +8 -6
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/reconciliation.py +4 -3
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/resolver_service.py +19 -17
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/sources.py +7 -5
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/version.py +1 -1
- {curies-0.9.0 → curies-0.9.2.dev0/src/curies.egg-info}/PKG-INFO +12 -25
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies.egg-info/requires.txt +4 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/tests/test_api.py +2 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/LICENSE +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/MANIFEST.in +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/setup.cfg +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/__main__.py +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/mapping_service/__init__.py +3 -3
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies/py.typed +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies.egg-info/SOURCES.txt +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies.egg-info/dependency_links.txt +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies.egg-info/entry_points.txt +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/src/curies.egg-info/top_level.txt +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/tests/__init__.py +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/tests/constants.py +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/tests/test_discovery.py +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/tests/test_federated_sparql.py +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/tests/test_io.py +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/tests/test_mapping_service.py +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/tests/test_reconciliation.py +0 -0
- {curies-0.9.0 → curies-0.9.2.dev0}/tests/test_resolver_service.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: curies
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.2.dev0
|
|
4
4
|
Summary: Idiomatic conversion between URIs and compact URIs (CURIEs)
|
|
5
5
|
Author-email: Charles Tapley Hoyt <cthoyt@gmail.com>
|
|
6
6
|
Maintainer-email: Charles Tapley Hoyt <cthoyt@gmail.com>
|
|
@@ -39,6 +39,7 @@ Classifier: Operating System :: OS Independent
|
|
|
39
39
|
Classifier: Framework :: Pytest
|
|
40
40
|
Classifier: Framework :: tox
|
|
41
41
|
Classifier: Framework :: Sphinx
|
|
42
|
+
Classifier: Natural Language :: English
|
|
42
43
|
Classifier: Programming Language :: Python
|
|
43
44
|
Classifier: Programming Language :: Python :: 3.9
|
|
44
45
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -46,11 +47,13 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
46
47
|
Classifier: Programming Language :: Python :: 3.12
|
|
47
48
|
Classifier: Programming Language :: Python :: 3.13
|
|
48
49
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
50
|
+
Classifier: Typing :: Typed
|
|
49
51
|
Requires-Python: >=3.9
|
|
50
52
|
Description-Content-Type: text/markdown
|
|
51
|
-
License-File: LICENSE
|
|
52
53
|
Requires-Dist: pytrie
|
|
53
54
|
Requires-Dist: pydantic>=2.0
|
|
55
|
+
Requires-Dist: eval_type_backport; python_version < "3.10"
|
|
56
|
+
Requires-Dist: typing-extensions
|
|
54
57
|
Provides-Extra: tests
|
|
55
58
|
Requires-Dist: pytest; extra == "tests"
|
|
56
59
|
Requires-Dist: coverage; extra == "tests"
|
|
@@ -306,30 +309,15 @@ You only have to do the following steps once.
|
|
|
306
309
|
|
|
307
310
|
#### Configuring your machine's connection to PyPI
|
|
308
311
|
|
|
309
|
-
You have to do the following steps once per machine.
|
|
310
|
-
`.pypirc` and include the following:
|
|
312
|
+
You have to do the following steps once per machine.
|
|
311
313
|
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
testpypi
|
|
317
|
-
|
|
318
|
-
[pypi]
|
|
319
|
-
username = __token__
|
|
320
|
-
password = <the API token you just got>
|
|
321
|
-
|
|
322
|
-
# This block is optional in case you want to be able to make test releases to the Test PyPI server
|
|
323
|
-
[testpypi]
|
|
324
|
-
repository = https://test.pypi.org/legacy/
|
|
325
|
-
username = __token__
|
|
326
|
-
password = <an API token from test PyPI>
|
|
314
|
+
```console
|
|
315
|
+
$ uv tool install keyring
|
|
316
|
+
$ keyring set https://upload.pypi.org/legacy/ __token__
|
|
317
|
+
$ keyring set https://test.pypi.org/legacy/ __token__
|
|
327
318
|
```
|
|
328
319
|
|
|
329
|
-
Note that
|
|
330
|
-
If you already have a `.pypirc` file with a `[distutils]` section, just make sure that there is an `index-servers`
|
|
331
|
-
key and that `pypi` is in its associated list. More information on configuring the `.pypirc` file can
|
|
332
|
-
be found [here](https://packaging.python.org/en/latest/specifications/pypirc).
|
|
320
|
+
Note that this deprecates previous workflows using `.pypirc`.
|
|
333
321
|
|
|
334
322
|
#### Uploading to PyPI
|
|
335
323
|
|
|
@@ -348,8 +336,7 @@ This script does the following:
|
|
|
348
336
|
and [`docs/source/conf.py`](docs/source/conf.py) to not have the `-dev` suffix
|
|
349
337
|
2. Packages the code in both a tar archive and a wheel using
|
|
350
338
|
[`uv build`](https://docs.astral.sh/uv/guides/publish/#building-your-package)
|
|
351
|
-
3. Uploads to PyPI using [`
|
|
352
|
-
This will be replaced soon with `uv publish` (see https://github.com/cthoyt/cookiecutter-snekpack/issues/29)
|
|
339
|
+
3. Uploads to PyPI using [`uv publish`](https://docs.astral.sh/uv/guides/publish/#publishing-your-package).
|
|
353
340
|
4. Push to GitHub. You'll need to make a release going with the commit where the version was bumped.
|
|
354
341
|
5. Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can
|
|
355
342
|
use `tox -e bumpversion -- minor` after.
|
|
@@ -231,30 +231,15 @@ You only have to do the following steps once.
|
|
|
231
231
|
|
|
232
232
|
#### Configuring your machine's connection to PyPI
|
|
233
233
|
|
|
234
|
-
You have to do the following steps once per machine.
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
pypi
|
|
241
|
-
testpypi
|
|
242
|
-
|
|
243
|
-
[pypi]
|
|
244
|
-
username = __token__
|
|
245
|
-
password = <the API token you just got>
|
|
246
|
-
|
|
247
|
-
# This block is optional in case you want to be able to make test releases to the Test PyPI server
|
|
248
|
-
[testpypi]
|
|
249
|
-
repository = https://test.pypi.org/legacy/
|
|
250
|
-
username = __token__
|
|
251
|
-
password = <an API token from test PyPI>
|
|
234
|
+
You have to do the following steps once per machine.
|
|
235
|
+
|
|
236
|
+
```console
|
|
237
|
+
$ uv tool install keyring
|
|
238
|
+
$ keyring set https://upload.pypi.org/legacy/ __token__
|
|
239
|
+
$ keyring set https://test.pypi.org/legacy/ __token__
|
|
252
240
|
```
|
|
253
241
|
|
|
254
|
-
Note that
|
|
255
|
-
If you already have a `.pypirc` file with a `[distutils]` section, just make sure that there is an `index-servers`
|
|
256
|
-
key and that `pypi` is in its associated list. More information on configuring the `.pypirc` file can
|
|
257
|
-
be found [here](https://packaging.python.org/en/latest/specifications/pypirc).
|
|
242
|
+
Note that this deprecates previous workflows using `.pypirc`.
|
|
258
243
|
|
|
259
244
|
#### Uploading to PyPI
|
|
260
245
|
|
|
@@ -273,8 +258,7 @@ This script does the following:
|
|
|
273
258
|
and [`docs/source/conf.py`](docs/source/conf.py) to not have the `-dev` suffix
|
|
274
259
|
2. Packages the code in both a tar archive and a wheel using
|
|
275
260
|
[`uv build`](https://docs.astral.sh/uv/guides/publish/#building-your-package)
|
|
276
|
-
3. Uploads to PyPI using [`
|
|
277
|
-
This will be replaced soon with `uv publish` (see https://github.com/cthoyt/cookiecutter-snekpack/issues/29)
|
|
261
|
+
3. Uploads to PyPI using [`uv publish`](https://docs.astral.sh/uv/guides/publish/#publishing-your-package).
|
|
278
262
|
4. Push to GitHub. You'll need to make a release going with the commit where the version was bumped.
|
|
279
263
|
5. Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can
|
|
280
264
|
use `tox -e bumpversion -- minor` after.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# See https://setuptools.readthedocs.io/en/latest/build_meta.html
|
|
2
2
|
[build-system]
|
|
3
|
+
# requires = ["uv>=0.5.7,<0.6.0"]
|
|
4
|
+
# build-backend = "uv"
|
|
3
5
|
requires = ["setuptools", "wheel"]
|
|
4
6
|
build-backend = "setuptools.build_meta"
|
|
5
7
|
|
|
6
8
|
[project]
|
|
7
9
|
name = "curies"
|
|
8
|
-
version = "0.9.
|
|
10
|
+
version = "0.9.2-dev"
|
|
9
11
|
description = "Idiomatic conversion between URIs and compact URIs (CURIEs)"
|
|
10
12
|
readme = "README.md"
|
|
11
13
|
authors = [
|
|
@@ -26,6 +28,7 @@ classifiers = [
|
|
|
26
28
|
"Framework :: Pytest",
|
|
27
29
|
"Framework :: tox",
|
|
28
30
|
"Framework :: Sphinx",
|
|
31
|
+
"Natural Language :: English",
|
|
29
32
|
"Programming Language :: Python",
|
|
30
33
|
"Programming Language :: Python :: 3.9",
|
|
31
34
|
"Programming Language :: Python :: 3.10",
|
|
@@ -33,6 +36,7 @@ classifiers = [
|
|
|
33
36
|
"Programming Language :: Python :: 3.12",
|
|
34
37
|
"Programming Language :: Python :: 3.13",
|
|
35
38
|
"Programming Language :: Python :: 3 :: Only",
|
|
39
|
+
"Typing :: Typed",
|
|
36
40
|
]
|
|
37
41
|
keywords = [
|
|
38
42
|
"snekpack", # please keep this keyword to credit the cookiecutter-snekpack template
|
|
@@ -54,6 +58,8 @@ requires-python = ">=3.9"
|
|
|
54
58
|
dependencies = [
|
|
55
59
|
"pytrie",
|
|
56
60
|
"pydantic>=2.0",
|
|
61
|
+
"eval_type_backport; python_version < '3.10'",
|
|
62
|
+
"typing-extensions",
|
|
57
63
|
]
|
|
58
64
|
|
|
59
65
|
[project.optional-dependencies]
|
|
@@ -94,6 +100,7 @@ Documentation = "https://curies.readthedocs.io"
|
|
|
94
100
|
|
|
95
101
|
[tool.setuptools]
|
|
96
102
|
package-dir = { "" = "src" }
|
|
103
|
+
license-files = []
|
|
97
104
|
|
|
98
105
|
[tool.setuptools.packages.find]
|
|
99
106
|
# this implicitly sets `packages = ":find"`
|
|
@@ -103,11 +110,9 @@ where = ["src"] # list of folders that contain the packages (["."] by default)
|
|
|
103
110
|
[tool.setuptools.package-data]
|
|
104
111
|
"*" = ["*.*"]
|
|
105
112
|
|
|
106
|
-
|
|
107
113
|
[project.scripts]
|
|
108
114
|
curies = "curies.cli:main"
|
|
109
115
|
|
|
110
|
-
|
|
111
116
|
[tool.cruft]
|
|
112
117
|
skip = [
|
|
113
118
|
"**/__init__.py",
|
|
@@ -218,7 +223,7 @@ known-first-party = [
|
|
|
218
223
|
docstring-code-format = true
|
|
219
224
|
|
|
220
225
|
[tool.bumpversion]
|
|
221
|
-
current_version = "0.9.
|
|
226
|
+
current_version = "0.9.2-dev"
|
|
222
227
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(?:-(?P<release>[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+(?P<build>[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?"
|
|
223
228
|
serialize = [
|
|
224
229
|
"{major}.{minor}.{patch}-{release}+{build}",
|
|
@@ -34,36 +34,33 @@ from .version import get_version
|
|
|
34
34
|
|
|
35
35
|
__all__ = [
|
|
36
36
|
"Converter",
|
|
37
|
+
"DuplicatePrefixes",
|
|
38
|
+
"DuplicateURIPrefixes",
|
|
39
|
+
"DuplicateValueError",
|
|
40
|
+
"NamedReference",
|
|
37
41
|
"Record",
|
|
38
42
|
"Records",
|
|
39
|
-
"ReferenceTuple",
|
|
40
43
|
"Reference",
|
|
41
|
-
"
|
|
42
|
-
"DuplicateValueError",
|
|
43
|
-
"DuplicateURIPrefixes",
|
|
44
|
-
"DuplicatePrefixes",
|
|
44
|
+
"ReferenceTuple",
|
|
45
45
|
"chain",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
46
|
+
"discover",
|
|
47
|
+
"discover_from_rdf",
|
|
48
|
+
"get_bioregistry_converter",
|
|
49
|
+
"get_go_converter",
|
|
50
|
+
"get_monarch_converter",
|
|
51
|
+
"get_obo_converter",
|
|
52
|
+
"get_prefixcommons_converter",
|
|
50
53
|
"get_version",
|
|
51
|
-
# i/o
|
|
52
|
-
"load_prefix_map",
|
|
53
54
|
"load_extended_prefix_map",
|
|
54
55
|
"load_jsonld_context",
|
|
56
|
+
"load_prefix_map",
|
|
55
57
|
"load_shacl",
|
|
58
|
+
"remap_curie_prefixes",
|
|
59
|
+
"remap_uri_prefixes",
|
|
60
|
+
"rewire",
|
|
61
|
+
"upgrade_prefix_map",
|
|
56
62
|
"write_extended_prefix_map",
|
|
57
63
|
"write_jsonld_context",
|
|
58
64
|
"write_shacl",
|
|
59
65
|
"write_tsv",
|
|
60
|
-
# sources
|
|
61
|
-
"get_obo_converter",
|
|
62
|
-
"get_prefixcommons_converter",
|
|
63
|
-
"get_monarch_converter",
|
|
64
|
-
"get_go_converter",
|
|
65
|
-
"get_bioregistry_converter",
|
|
66
|
-
# discovery
|
|
67
|
-
"discover",
|
|
68
|
-
"discover_from_rdf",
|
|
69
66
|
]
|