Coder Social home page Coder Social logo

typing-feedstock's Introduction

About typing

Home: https://docs.python.org/3.5/library/typing.html

Package license: PSF

Feedstock license: BSD-3-Clause

Summary: Type Hints for Python - backport for Python<3.5

Current build status

All platforms:

Current release info

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

Installing typing

Installing typing 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, typing can be installed with:

conda install typing

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

conda search typing --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 CircleCI, AppVeyor and TravisCI it is possible to build and upload installable packages to the conda-forge Anaconda-Cloud 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 typing-feedstock

If you would like to improve the typing 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/typing-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

typing-feedstock's People

Contributors

conda-forge-admin avatar conda-forge-curator[bot] avatar github-actions[bot] avatar hmaarrfk avatar isuruf avatar jakirkham avatar mariusvniekerk avatar ocefpaf avatar regro-cf-autotick-bot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

typing-feedstock's Issues

Conda-forge typing-3.6.4-py_2.tar.bz2 contains the python3 version of this library

Issue: importing typing from conda-forge on python2 fails with:

lib/python2.7/site-packages/typing.py", line 133
      def __new__(cls, name, bases, namespace, *, _root=False):

This is because typing-3.6.4-py_2.tar.bz2 contains the wrong egg:

tar tf typing-3.6.4-py_2.tar.bz2
info/hash_input.json
info/link.json
info/index.json
info/files
info/paths.json
info/about.json
info/LICENSE.txt
info/git
site-packages/typing-3.6.4-py3.6.egg-info/dependency_links.txt
site-packages/typing-3.6.4-py3.6.egg-info/top_level.txt
info/test/run_test.py
site-packages/typing-3.6.4-py3.6.egg-info/installed-files.txt
site-packages/typing-3.6.4-py3.6.egg-info/SOURCES.txt
info/recipe/conda_build_config.yaml
info/recipe/meta.yaml.template
info/recipe/meta.yaml
site-packages/typing-3.6.4-py3.6.egg-info/PKG-INFO
site-packages/typing.py

and thus typing.py uses python3 syntax:

tar -Oxf typing-3.6.4-py_2.tar.bz2 site-packages/typing.py | grep -C2 __new__ 
(...snip...)
--
    _is_protocol = False

    def __new__(cls, name, bases, namespace, *, _root=False):
        if not _root:
            raise TypeError("Cannot subclass %s" %
--

pip check failing on packages that depend on typing

Issue:

Packages that depend on typing are failing pip check, presumably because the dummy package doesn't actually install anything.

$ conda create -y -n test python=3.6 "sqlalchemy-jsonfield=1.0.0=*_0"
$ conda activate test
$ pip check
sqlalchemy-jsonfield 1.0.0 requires typing, which is not installed.

Yet, conda thinks typing is installed:

$ conda list typing
# packages in environment at /home/xylar/miniconda3/envs/test:
#
# Name                    Version                   Build  Channel
typing                    3.7.4.3            pyhd8ed1ab_2    conda-forge

Environment (conda list):
$ conda list

# packages in environment at /home/xylar/miniconda3/envs/test:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
ca-certificates           2020.12.5            ha878542_0    conda-forge
certifi                   2020.12.5        py36h5fab9bb_1    conda-forge
ld_impl_linux-64          2.35.1               hea4e1c9_2    conda-forge
libffi                    3.3                  h58526e2_2    conda-forge
libgcc-ng                 9.3.0               h2828fa1_18    conda-forge
libgomp                   9.3.0               h2828fa1_18    conda-forge
libstdcxx-ng              9.3.0               h6de172a_18    conda-forge
ncurses                   6.2                  h58526e2_4    conda-forge
openssl                   1.1.1i               h7f98852_0    conda-forge
pip                       21.0.1             pyhd8ed1ab_0    conda-forge
python                    3.6.12          hffdb5ce_0_cpython    conda-forge
python_abi                3.6                     1_cp36m    conda-forge
readline                  8.0                  he28a2e2_2    conda-forge
setuptools                49.6.0           py36h5fab9bb_3    conda-forge
sqlalchemy                1.3.23           py36h8f6f2f9_0    conda-forge
sqlalchemy-jsonfield      1.0.0              pyhd8ed1ab_0    conda-forge
sqlite                    3.34.0               h74cdb3f_0    conda-forge
tk                        8.6.10               h21135ba_1    conda-forge
typing                    3.7.4.3            pyhd8ed1ab_2    conda-forge
wheel                     0.36.2             pyhd3deb0d_0    conda-forge
xz                        5.2.5                h516909a_1    conda-forge
zlib                      1.2.11            h516909a_1010    conda-forge


Details about conda and system ( conda info ):
$ conda info

     active environment : test
    active env location : /home/xylar/miniconda3/envs/test
            shell level : 2
       user config file : /home/xylar/.condarc
 populated config files : /home/xylar/.condarc
          conda version : 4.9.2
    conda-build version : 3.21.4
         python version : 3.8.6.final.0
       virtual packages : __glibc=2.31=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/xylar/miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/xylar/miniconda3/pkgs
                          /home/xylar/.conda/pkgs
       envs directories : /home/xylar/miniconda3/envs
                          /home/xylar/.conda/envs
               platform : linux-64
             user-agent : conda/4.9.2 requests/2.25.1 CPython/3.8.6 Linux/5.4.0-65-generic ubuntu/20.04.2 glibc/2.31
                UID:GID : 1001:1001
             netrc file : None
           offline mode : False

MNT: The typing recipe has some lint :(

This is the friendly conda-forge-admin automated user.

I've ran the conda-smithy linter and found some lint in this feedstock ๐Ÿ˜ข.

Here is what I have got:

  • The recipe must have a build/number section.

Thanks!

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.