Code Monkey home page Code Monkey logo

poetry-feedstock's Introduction

About poetry-feedstock

Feedstock license: BSD-3-Clause

Home: https://python-poetry.org/

Package license: MIT

Summary: Python dependency management and packaging made easy

Development: https://github.com/python-poetry/poetry

Documentation: https://python-poetry.org/docs/

Current build status

All platforms:

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Installing poetry

Installing poetry from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge
conda config --set channel_priority strict

Once the conda-forge channel has been enabled, poetry can be installed with conda:

conda install poetry

or with mamba:

mamba install poetry

It is possible to list all of the versions of poetry available on your platform with conda:

conda search poetry --channel conda-forge

or with mamba:

mamba search poetry --channel conda-forge

Alternatively, mamba repoquery may provide more information:

# Search all versions available on your platform:
mamba repoquery search poetry --channel conda-forge

# List packages depending on `poetry`:
mamba repoquery whoneeds poetry --channel conda-forge

# List dependencies of `poetry`:
mamba repoquery depends poetry --channel conda-forge

About conda-forge

Powered by NumFOCUS

conda-forge is a community-led conda channel of installable packages. In order to provide high-quality builds, the process has been automated into the conda-forge GitHub organization. The conda-forge organization contains one repository for each of the installable packages. Such a repository is known as a feedstock.

A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge anaconda.org channel for Linux, Windows and OSX respectively.

To manage the continuous integration and simplify feedstock maintenance conda-smithy has been developed. Using the conda-forge.yml within this repository, it is possible to re-render all of this feedstock's supporting files (e.g. the CI configuration files) with conda smithy rerender.

For more information please check the conda-forge documentation.

Terminology

feedstock - the conda recipe (raw material), supporting scripts and CI configuration.

conda-smithy - the tool which helps orchestrate the feedstock. Its primary use is in the construction of the CI .yml files and simplify the management of many feedstocks.

conda-forge - the place where the feedstock and smithy live and work to produce the finished article (built conda distributions)

Updating poetry-feedstock

If you would like to improve the poetry recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the conda-forge channel, whereupon the built conda packages will be available for everybody to install and use from the conda-forge channel. Note that all branches in the conda-forge/poetry-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions.

In order to produce a uniquely identifiable distribution:

  • If the version of a package is not being increased, please add or increase the build/number.
  • If the version of a package is being increased, please remember to return the build/number back to 0.

Feedstock Maintainers

poetry-feedstock's People

Contributors

bastianzim avatar beckermr avatar conda-forge-admin avatar conda-forge-curator[bot] avatar github-actions[bot] avatar isuruf avatar jan-janssen avatar jschueller avatar maresb avatar mariusvniekerk avatar nehaljwani avatar ocefpaf avatar regro-cf-autotick-bot avatar xylar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

poetry-feedstock's Issues

Unable to pull poetry package on conda-forge

Comment:

I have been trying to pull the poetry package from conda-forge for a OSX. However, it will never resolve.

base ❯ conda install -c conda-forge poetry
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / failed

CondaError: KeyboardInterrupt


~ 1h 2m 34s

It ran for over 1 hour. This is a fresh install of Anaconda with only conda upgrade conda anaconda --a being run. I have tried numerous times over the past two days. I have also added conda-forge for the channels and set priority to strict and still no luck.

How to add poetry-plugin-export

Comment:

I would like to build the latest beta version v1.2.0b2. However it now depends on ^1.0.4 of a package called poetry-plugin-export. In a partially circular dependency, that relies on poetry ^1.2.0b1.

To complicate matters further, poetry-plugin-export doesn't have a license file.

I think I should make a new feedstock for poetry-plugin-export, but that must target the dev channel sources. I'm not sure if that's allowed in staged-recipes.

As you can see, the situation is unfortunately rather complicated. Any suggestions?

How to install the development version of Poetry

Comment:

Actually this is documentation, not a real issue. But since the procedure is not obvious during this awkward period where the most useful Poetry versions are in pre-release, I figure that this is a quick and easy way to put instructions where people will find them. (Feel free to close this if you have a better idea.)

As described in #57 (comment), if you want to create a Conda environment called pdev which contains Poetry v1.2.0b1 together with the latest poetry-core, run

mamba create --yes --name pdev -c conda-forge/label/poetry_dev -c conda-forge/label/cleo_dev -c conda-forge "poetry=1.2.0b1"

where conda also works in place of mamba.

feat: poetry v1.2

Hi all,

First, thank you for creating this feedstock! It's been very helpful.

Having the ability to install v1.2 would be helpful for my own projects. I'd like to inquire as to the possibility of building it, perhaps with a separate label or branch as described in #56 (comment). Is this possible and what would it involve?

I've never contributed to a cf feedstock before, but if needed, I might be able to offer some help.

README is lacking an ELI5 summary.

Only by looking through the repo's code/scripts was I able to figure out wtf this dope repo does--need a better readme or at the very least a summary/intro to the readme.

Poetry 1.2.0

Comment:

Poetry has released 1.2.0rc2 and is going to finalize 1.2.0 soon. Can I request a cut of the latest release candidate so that I can test how downstream conda dependencies work under 1.2?

Unable to install on Linux

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

I cannot install version 1.3.2 of this package alongside Python 3.11, at least not on Linux.

mamba create --name temp python=3.11 poetry=1.3.2

The mamba error suggests that __osx is erroneously being listed as a dependency.

Looking for: ['python=3.11', 'poetry=1.3.2']

conda-forge/linux-64                                        Using cache
conda-forge/noarch                                          Using cache
Encountered problems while solving:
  - nothing provides __osx needed by poetry-1.3.2-osx_pyhd8ed1ab_0

Strangely, it installs just fine if I specify Python 3.10. These lines in the recipe listing __osx as a mandatory runtime dependency are a little funky, but the comment suggests they were added intentionally.

Installed packages

N/A

Environment info

active environment : temp
    active env location : /home/david/anaconda/envs/temp
            shell level : 2
       user config file : /home/david/.condarc
 populated config files : /home/david/anaconda/.condarc
          conda version : 22.11.1
    conda-build version : not installed
         python version : 3.10.8.final.0
       virtual packages : __archspec=1=x86_64
                          __cuda=11.4=0
                          __glibc=2.31=0
                          __linux=5.15.0=0
                          __unix=0=0
       base environment : /home/david/anaconda  (writable)
      conda av data dir : /home/david/anaconda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/david/anaconda/pkgs
                          /home/david/.conda/pkgs
       envs directories : /home/david/anaconda/envs
                          /home/david/.conda/envs
               platform : linux-64
             user-agent : conda/22.11.1 requests/2.28.1 CPython/3.10.8 Linux/5.15.0-58-generic ubuntu/20.04.5 glibc/2.31
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

Issues with poetry 1.6 / 1.6.1 pulling in own python version

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Seeing this across a few conda-forge packages:

https://github.com/conda-forge/gotrue-feedstock/runs/17443079855

    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1304, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1325, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 929, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 994, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/home/conda/feedstock_root/build_artifacts/gotrue_1696535357058/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.12/site-packages/poetry/core/masonry/__init__.py", line 10, in <module>
    from .builder import Builder
  File "/home/conda/feedstock_root/build_artifacts/gotrue_1696535357058/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.12/site-packages/poetry/core/masonry/builder.py", line 5, in <module>
    from poetry.core.utils._compat import Path
  File "/home/conda/feedstock_root/build_artifacts/gotrue_1696535357058/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.12/site-packages/poetry/core/utils/_compat.py", line 8, in <module>
    import six.moves.urllib.parse as urllib_parse
ModuleNotFoundError: No module named 'six.moves'

Installed packages

n/a

Environment info

n/a

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.