GithubHelp home page GithubHelp logo

classicvalues / staged-recipes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openai/staged-recipes

0.0 1.0 0.0 6.87 MB

A place to submit conda recipes before they become fully fledged conda-forge feedstocks

Home Page: https://conda-forge.github.io/

License: BSD 3-Clause "New" or "Revised" License

Shell 24.43% Python 74.18% CMake 0.89% C++ 0.50%

staged-recipes's Introduction

About

This repo is a holding area for recipes destined for a conda-forge feedstock repo. To find out more about conda-forge, see https://github.com/conda-forge/conda-smithy.

Join the chat at https://gitter.im/conda-forge/conda-forge.github.io

Build status

Circle CI Build Status Build status

Getting started

  1. Fork this repository.
  2. Make a new folder in recipes for your package. Look at the example recipe and our FAQ for help.
  3. Open a pull request. Building of your package will be tested on Windows, Mac and Linux.
  4. When your pull request is merged a new repository, called a feedstock, will be create in the github conda-forge organization, and build/upload of your package will automatically be triggered. Once complete, the package is available on conda-forge.

FAQ

1. How do I start editing the recipe?

There are two ways to get started:

a. If it is a python package you can generate a skeleton as a starting point with conda skeleton pypi your_package_name. You do not have to use skeleton, and the recipes produced by skeleton will need to be edited.

b. Look at one of these examples in this repository and modify it as necessary.

Your final recipe should have no comments and follow the order in the example.

If there are details you are not sure about please open a pull request. The conda-forge team will be happy to answer your questions.

2. How do I populate the hash field?

If your package is on PyPI, you can get the md5 hash from your package's page on PyPI; look for the md5 link next to the download link for your package.

You can also generate a hash from the command line on Linux (and Mac if you install the necessary tools below). If you go this route, the sha256 hash is preferable to the md5 hash.

To generate the md5 hash: md5 your_sdist.tar.gz

To generate the sha256 hash: openssl sha256 your_sdist.tar.gz

You may need the openssl package, available on conda-forge conda install openssl -c conda-forge

3. How do I exclude a platform?

Use the skip key in the build section along with a selector:

build:
    skip: true  # [win]

A full description of selectors is in the conda docs.

4. What does numpy x.x mean?

If you have a package which links against numpy you need to build and run against the same version of numpy. Putting numpy x.x in the build and run requirements ensure that a separate package will be built for each version of numpy that conda-forge builds against.

5. What does the build: 0 entry mean?

The build number is used when the source code for the package has not changed but you need to make a new build. For example, if one of the dependencies of the package was not properly specified the first time you build a package, then when you fix the dependency and rebuild the package you should increase the build number.

When the package version changes you should reset the build number to 0.

6. Do I have to import all of my unit tests into the recipe's test field?

No, you do not.

7. Do all of my package's dependencies have to be in conda(-forge) already?

Short answer: yes. Long answer: In principle, as long as your dependencies are in at least one of your user's conda channels they will be able to install your package. In practice, that is difficult to manage, and we strive to get all dependencies built in conda-forge.

8. When or why do I need to use python setup.py install --single-version-externally-managed --record record.txt?

These options should be added to setup.py if your project uses setuptools. The goal is to prevent setuptools from creating an egg-info directory because they do not interact well with conda.

9. Do I need bld.bat and/or build.sh?

In many cases, no. Python packages almost never need it. If the build can be done with one line you can put it in the script line of the build section.

10. What does being a conda-forge feedstock maintainer entail?

The maintainers "job" is to:

  • keep the feedstock updated by merging eventual maintenance PRs from conda-forge's bots;
  • keep the package updated by bumping the version whenever there is a new release;
  • answer eventual question about the package on the feedstock issue tracker.

11. Why are there recipes already in the recipes directory? Should I do something about it?

When a PR of recipe(s) is ready to go, it is merged into master. This will trigger a CI build specially designed to convert the recipe(s). However, for any number of reasons the recipe(s) may not be converted right away. In the interim, the recipe(s) will remain in master until they can be converted. There is no action required on the part of recipe contributors to resolve this. Also it should have no impact on any other PRs being proposed. If these recipe(s) pending conversion do cause issues for your submission, please ping conda-forge/core for help.

staged-recipes's People

Contributors

jakirkham avatar ocefpaf avatar pmlandwehr avatar scopatz avatar pelson avatar basnijholt avatar 183amir avatar msarahan avatar ericdill avatar ericmjl avatar ccordoba12 avatar inducer avatar jochym avatar ivoflipse avatar shadowwalkersb avatar isuruf avatar kmuehlbauer avatar synapticarbors avatar danielfrg avatar asmeurer avatar mariusvniekerk avatar patricksnape avatar jjhelmus avatar grlee77 avatar arokem avatar maartenbreddels avatar gillins avatar alexlib avatar jakevdp avatar horta avatar

Watchers

 avatar

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.