Skip to content

Commit

Permalink
Merge pull request #27 from bollwyvl/gh-25-multiple-outputs
Browse files Browse the repository at this point in the history
rdflib 6.3.1, split extras into multiple outputs
  • Loading branch information
bollwyvl authored Mar 18, 2023
2 parents 82a985a + 596951f commit 1f3e0d1
Show file tree
Hide file tree
Showing 2 changed files with 183 additions and 54 deletions.
27 changes: 16 additions & 11 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

210 changes: 167 additions & 43 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,72 +1,196 @@
{% set version = "6.3.0" %}
{% set version = "6.3.1" %}
{% set test_skips = "not (dawg_data_sparql or definednamespace_creator or prepare_query)" %}
{% set cov_fail_under = 84 %}

package:
name: rdflib
name: rdflib-split
version: {{ version }}

source:
- folder: dist
url: https://pypi.io/packages/source/r/rdflib/rdflib-{{ version }}.tar.gz
sha256: 6ea39896a4dbe10f933acf33aaab61d52f390d32e8618add4550d52e6a0d4428
- folder: src
url: https://github.com/RDFLib/rdflib/archive/refs/tags/{{ version }}.tar.gz
sha256: 2a7e0e94463eb0c779f4c2a23800223094a76d9cc42a6d723732364df5e0f92e
url: https://pypi.io/packages/source/r/rdflib/rdflib-{{ version }}.tar.gz
sha256: ced41883cdd387a53e73bf54d5db8b076e9675b59d8a601166220aa1e60970b6

build:
number: 0
script: cd dist && {{ PYTHON }} -m pip install . --no-deps -vv
noarch: python
entry_points:
- csv2rdf = rdflib.tools.csv2rdf:main
- rdf2dot = rdflib.tools.rdf2dot:main
- rdfgraphisomorphism = rdflib.tools.graphisomorphism:main
- rdfpipe = rdflib.tools.rdfpipe:main
- rdfs2dot = rdflib.tools.rdfs2dot:main

requirements:
host:
- python >=3.7
- poetry-core >=1.4.0
- pip
run:
- html5lib # from extras
- importlib-metadata
- isodate >=0.6.0,<0.7.0
- pyparsing >=2.1.0,<4
- python >=3.7

test:
source_files:
- src/test
- src/pyproject.toml
requires:
- pip
# berkeleydb -> bsddb3
# html5lib included in run
- bsddb3
- networkx
- pytest
- pytest-cov
- pytest-subtests
- tabulate # undeclared, might be removed in >=6.1.2
imports:
- rdflib
commands:
- pip check
# some missing file not in repo
- cd src && pytest test -vv --cov rdflib --cov-report term-missing:skip-covered --no-cov-on-fail -k "{{ test_skips }}" --cov-fail-under {{ cov_fail_under }}
outputs:
- name: rdflib
build:
noarch: python
script: {{ PYTHON }} -m pip install . --no-deps -vv --no-build-isolation
entry_points:
- csv2rdf = rdflib.tools.csv2rdf:main
- rdf2dot = rdflib.tools.rdf2dot:main
- rdfgraphisomorphism = rdflib.tools.graphisomorphism:main
- rdfpipe = rdflib.tools.rdfpipe:main
- rdfs2dot = rdflib.tools.rdfs2dot:main
requirements:
host:
- pip
- poetry-core >=1.4.0
- python >=3.7
run:
- importlib-metadata
- isodate >=0.6.0,<0.7.0
- pyparsing >=2.1.0,<4
- python >=3.7
test:
requires:
- pip
imports:
- rdflib
commands:
- pip check
# --help doesn't return 0, just check if they are on $PATH/%PATH%
- which csv2rdf || where csv2rdf || exit 1
- which rdf2dot || where rdf2dot || exit 1
- which rdfgraphisomorphism || where rdfgraphisomorphism || exit 1
- which rdfpipe || where rdfpipe || exit 1
- which rdfs2dot || where rdfs2dot || exit 1

# TODO: apparently had a name change, never updated, and is unlikely to build on windows
# - name: rdflib-with-berkeleydb
# build:
# noarch: python
# requirements:
# host:
# - python >=3.7
# run:
# - {{ pin_subpackage("rdflib", max_pin="x.x.x") }}
# - bsddb3
# - python >=3.7
# test:
# requires:
# - pip
# imports:
# - rdflib
# commands:
# - pip check
# - python -c "from rdflib.plugins.stores import berkeleydb; assert berkeleydb.has_bsddb"

- name: rdflib-with-networkx
build:
noarch: python
requirements:
host:
- python >=3.7
run:
- {{ pin_subpackage("rdflib", max_pin="x.x.x") }}
- networkx
- python >=3.7
test:
requires:
- pip
imports:
- rdflib
commands:
- pip check
- python -c "from rdflib.extras.external_graph_libs import rdflib_to_networkx_graph; import rdflib; assert rdflib_to_networkx_graph(rdflib.Graph()) is not None"

- name: rdflib-with-html
build:
noarch: python
requirements:
host:
- python >=3.7
run:
- {{ pin_subpackage("rdflib", max_pin="x.x.x") }}
- html5lib
- python >=3.7
test:
requires:
- pip
imports:
- rdflib
commands:
- pip check
- python -c "from rdflib.term import _parseHTML; _parseHTML('<html></html>')"

- name: rdflib-with-lxml
build:
noarch: python
requirements:
host:
- python >=3.7
run:
- {{ pin_subpackage("rdflib", max_pin="x.x.x") }}
- python >=3.7
- lxml
test:
requires:
- pip
imports:
- rdflib
commands:
- pip check
- python -c "from rdflib.plugins.sparql.results import xmlresults; assert xmlresults.lxml_etree"

- name: rdflib-with-all
build:
noarch: python
requirements:
host:
- python >=3.7
run:
# - {{ pin_subpackage("rdflib-with-berkeleydb", max_pin="x.x.x") }}
- {{ pin_subpackage("rdflib-with-html", max_pin="x.x.x") }}
- {{ pin_subpackage("rdflib-with-lxml", max_pin="x.x.x") }}
- {{ pin_subpackage("rdflib-with-networkx", max_pin="x.x.x") }}
- {{ pin_subpackage("rdflib", max_pin="x.x.x") }}
- python >=3.7
test:
requires:
- pip
imports:
- rdflib
commands:
- pip check

- name: _rdflib-tests
build:
noarch: python
requirements:
host:
- python >=3.7
run:
- {{ pin_subpackage("rdflib-with-all", max_pin="x.x.x") }}
- python >=3.7
test:
source_files:
- test
- pyproject.toml
requires:
- pip
- pytest
- pytest-cov
- pytest-subtests
# - mypy
imports:
- rdflib
commands:
- pip check
# definednamespace_creator: some test fixtures are missing
- pytest test -vv -k "not (definednamespace_creator or test_prepare_query)" --cov=rdflib --cov-branch --cov-report=term-missing:skip-covered --no-cov-on-fail --cov-fail-under=84
# TODO: restore
# Found 4 errors in 3 files (checked 118 source files)
# - mypy -p rdflib

about:
home: https://github.com/RDFLib/rdflib
license: BSD-3-Clause
license_file: dist/LICENSE
license_file: LICENSE
summary: RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
dev_url: https://github.com/RDFLib/rdflib
doc_url: https://rdflib.readthedocs.io

extra:
feedstock-name: rdflib
recipe-maintainers:
- satra
- nicholascar
Expand Down

0 comments on commit 1f3e0d1

Please sign in to comment.