biolink / kgx

KGX is a Python library for exchanging Knowledge Graphs
https://kgx.readthedocs.io
BSD 3-Clause "New" or "Revised" License
116 stars 27 forks source link

run kgx validate from inside the project - need scripts defined in pyproject.toml #432

Closed sierra-moxon closed 1 year ago

sierra-moxon commented 1 year ago

need to run the cli and scripts directly in the KGX project

kevinschaper commented 1 year ago

This might actually be affecting the ability to run kgx from the command line in general, with 2.0.1 out, I'm getting this output when I try to install with pipx, and I think it might complaining that it doesn't know what the application is

pipx install kgx
Note: Dependent package 'rdflib' contains 5 apps
  - csv2rdf
  - rdf2dot
  - rdfgraphisomorphism
  - rdfpipe
  - rdfs2dot
Note: Dependent package 'sphinx' contains 4 apps
  - sphinx-apidoc
  - sphinx-autogen
  - sphinx-build
  - sphinx-quickstart
Note: Dependent package 'pygments' contains 1 apps
  - pygmentize
Note: Dependent package 'docutils' contains 12 apps
  - rst2html.py
  - rst2html4.py
  - rst2html5.py
  - rst2latex.py
  - rst2man.py
  - rst2odt.py
  - rst2odt_prepstyles.py
  - rst2pseudoxml.py
  - rst2s5.py
  - rst2xetex.py
  - rst2xml.py
  - rstpep2html.py
Note: Dependent package 'babel' contains 1 apps
  - pybabel
Note: Dependent package 'charset-normalizer' contains 1 apps
  - normalizer
Note: Dependent package 'linkml-runtime' contains 2 apps
  - comparefiles
  - linkml-normalize
Note: Dependent package 'json-flattener' contains 1 apps
  - jfl
Note: Dependent package 'jsonschema' contains 1 apps
  - jsonschema
Note: Dependent package 'pytest' contains 2 apps
  - py.test
  - pytest
Note: Dependent package 'prefixmaps' contains 1 apps
  - slurp-prefixmaps
Note: Dependent package 'oaklib' contains 3 apps
  - boomerang
  - runoak
  - vskit
Note: Dependent package 'airium' contains 1 apps
  - airium
Note: Dependent package 'bioregistry' contains 1 apps
  - bioregistry
Note: Dependent package 'tqdm' contains 1 apps
  - tqdm
Note: Dependent package 'pystow' contains 1 apps
  - pystow
Note: Dependent package 'funowl' contains 1 apps
  - funowl
Note: Dependent package 'pyjsg' contains 1 apps
  - generate_parser
Note: Dependent package 'antlr4-python3-runtime' contains 1 apps
  - pygrun
Note: Dependent package 'kgcl-rdflib' contains 3 apps
  - kgcl-apply
  - kgcl-diff
  - kgcl-parse
Note: Dependent package 'kgcl-schema' contains 3 apps
  - kgcl-apply
  - kgcl-diff
  - kgcl-parse
Note: Dependent package 'linkml-renderer' contains 1 apps
  - linkml-render
Note: Dependent package 'linkml' contains 45 apps
  - gen-csv
  - gen-doc
  - gen-erdiagram
  - gen-excel
  - gen-golr-views
  - gen-graphql
  - gen-graphviz
  - gen-java
  - gen-json-schema
  - gen-jsonld
  - gen-jsonld-context
  - gen-linkml
  - gen-markdown
  - gen-namespaces
  - gen-owl
  - gen-prefix-map
  - gen-project
  - gen-prolog
  - gen-proto
  - gen-py-classes
  - gen-pydantic
  - gen-python
  - gen-rdf
  - gen-shacl
  - gen-shex
  - gen-sparql
  - gen-sqla
  - gen-sqlddl
  - gen-sqlddl-legacy
  - gen-sqltables
  - gen-sssom
  - gen-summary
  - gen-terminusdb
  - gen-typescript
  - gen-yaml
  - gen-yuml
  - linkml-convert
  - linkml-jsonschema-validate
  - linkml-lint
  - linkml-run-examples
  - linkml-schema-fixer
  - linkml-sparql-validate
  - linkml-sqldb
  - linkml-validate
  - run-tutorial
Note: Dependent package 'linkml-dataops' contains 4 apps
  - gen-api-datamodel
  - gen-crud-datamodel
  - gen-python-api
  - linkml-apply
Note: Dependent package 'jsonpatch' contains 2 apps
  - jsondiff
  - jsonpatch
Note: Dependent package 'jsonpointer' contains 1 apps
  - jsonpointer
Note: Dependent package 'jsonpath-ng' contains 1 apps
  - jsonpath_ng
Note: Dependent package 'myst-parser' contains 8 apps
  - myst-anchors
  - myst-docutils-demo
  - myst-docutils-html
  - myst-docutils-html5
  - myst-docutils-latex
  - myst-docutils-pseudoxml
  - myst-docutils-xml
  - myst-inv
Note: Dependent package 'markdown-it-py' contains 1 apps
  - markdown-it
Note: Dependent package 'pyshex' contains 1 apps
  - shexeval
Note: Dependent package 'chardet' contains 1 apps
  - chardetect
Note: Dependent package 'tox' contains 2 apps
  - tox
  - tox-quickstart
Note: Dependent package 'virtualenv' contains 1 apps
  - virtualenv
Note: Dependent package 'watchdog' contains 1 apps
  - watchmedo
Note: Dependent package 'ols-client' contains 1 apps
  - ols_client
Note: Dependent package 'numpy' contains 3 apps
  - f2py
  - f2py3
  - f2py3.10
Note: Dependent package 'semsql' contains 2 apps
  - gen-semsql-views
  - semsql
Note: Dependent package 'sssom' contains 1 apps
  - sssom
Note: Dependent package 'recommonmark' contains 6 apps
  - cm2html
  - cm2latex
  - cm2man
  - cm2pseudoxml
  - cm2xetex
  - cm2xml
Note: Dependent package 'commonmark' contains 1 apps
  - cmark
Note: Dependent package 'twine' contains 1 apps
  - twine
Note: Dependent package 'pkginfo' contains 1 apps
  - pkginfo
Note: Dependent package 'keyring' contains 1 apps
  - keyring
Note: Dependent package 'websocket-client' contains 1 apps
  - wsdump
Note: Dependent package 'mypy' contains 5 apps
  - dmypy
  - mypy
  - mypyc
  - stubgen
  - stubtest

No apps associated with package kgx. Try again with '--include-deps' to include apps of dependent packages, which are listed above.
If you are attempting to install a library, pipx should not be used. Consider using pip or a similar tool instead."
sierra-moxon commented 1 year ago

fixed.