Common names: Bolivian anaconda, Beni anaconda
Eunectes beniensis is a non-venomous boa species known only from the northeastern parts of Bolivia.
The four-metre long Eunectes beniensis was initially believed to be the result of hybridization between green and yellow anacondas, but was later determined to be a distinct species. The taxonomic status is not clear, due to lack of information and the appearance similarity to Eunectes notaeus. It is closely related to Eunectes notaeus and Eunectes deschauenseei.
This is a specific tool to fascilitate one workflow of using flit and conda together. The assumptions are:
- You have a repository with at least one Python package
- You use
pyproject.tomlto describe your dependencies
- You want to use Conda to manage local development but you wanna release your package on PyPi.
- You want to generate an
environment.ymlfor local development that will install as many of your Pypi dependencies through Conda as possible.
Without this tool you have to manually keep your
environment.yml up to date with all your
pyproject.toml files, which is error prone and annoying!
- What if the conda forge name is different than the pypi name? We should keep a list of these mappings.
- How do we use the
pyproject.tomlto automatically generate a conda forge recipe?
- In the future could conda just read from the
pyproject.tomlfile in some way to create an environment out of it?
pip install beni
beni <path to pyproject.toml> [<another path to pyproject.tmo>] > binder/environment.ymlto generate an environment file. It adds all your requirements that are conda forge packages to this environment and names it after the first
pyproject.tomlmodule. each of your requirements to see if there is an equivalent conda forge package
conda env create -f bind/environment.yml && conda activate <module name> && flit install --symlinkto your README as the dev setup.
$ beni -h usage: beni [-h] [--ignore [foo [bar ...]]] pyproject.toml [pyproject.toml ...] Generate an environment.yml. positional arguments: pyproject.toml flit config files optional arguments: -h, --help show this help message and exit --ignore [foo [bar ...]] Conda packages to ignore $ cat pyproject.toml [tool.flit.metadata] requires = [ "typing_extensions", "typing_inspect", "python-igraph=0.8.0" ] requires-python = ">=3.7" [tool.flit.metadata.requires-extra] test = [ "pytest", "pytest-cov", "pytest-mypy", "pytest-randomly", "pytest-xdist", "pytest-testmon", "pytest-pudb", "mypy" ] doc = [ "sphinx", "sphinx-autodoc-typehints", "sphinx_rtd_theme", 'recommonmark', "nbsphinx", "ipykernel", "IPython", "sphinx-autobuild" ] dev = [ "jupyterlab>=1.0.0", "nbconvert", "pudb" ] $ beni pyproject.toml name: metadsl channels: - conda-forge dependencies: - python>=3.7 - pip - pip: - flit - typing_extensions - typing_inspect - python-igraph=0.8.0 - pytest - pytest-cov - pytest-mypy - pytest-randomly - pytest-xdist - pytest-testmon - pytest-pudb - mypy - jupyterlab>=1.0.0 - nbconvert - pudb
conda env create -f environment.yml conda activate beni flit install --symlink