Giter VIP home page Giter VIP logo

pydeps2env's People

Contributors

cagtayfabry avatar marscher avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

marscher

pydeps2env's Issues

pip option requires exact match

currently, to move a package over to the pip install section, one has to provide the exactly matching package and version requirements string

e.g. if numpy>=1.20 is specified as a dependency, simply passing --pip="numpy" will have no effect (which is not very stable)

Raise a useful exception, in case input file could not be read.

While using this action, I forgot to prepend the checkout action. So the input file was missing and I got this exception:

    env["dependencies"] = ["python" + cp.get("options", "python_requires")]
  File "/usr/lib/python3.8/configparser.py", line 781, in get
    d = self._unify_values(section, vars)
  File "/usr/lib/python3.8/configparser.py", line 1149, in _unify_values
    raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'options'

I suggest it be more useful to treat this error. E.g. the configparser creation should fail, if the input file is not present.

add tool configuration via pyproject.toml

Some configuration options would be nice, on the top of my head:

  • list of dependencies to install via pip
  • mapping of dependency names that differ for pip and conda (e.g. weldx-widgets -> weldx_widgets)

sort dependencies in output file

For consistency (and reliable caching with mamba-org/provision-with-micromamba or similar) the dependencies listed in the output environment file should be sorted

currently the dependency order can be random (I think this is based on the toml implementation when reading the config file)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.