Skip to content

Conda-forge? #822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lucascolley opened this issue Nov 26, 2024 · 10 comments
Closed

Conda-forge? #822

lucascolley opened this issue Nov 26, 2024 · 10 comments

Comments

@lucascolley
Copy link

Could this library be made installable via conda-forge?

@KotlinIsland
Copy link
Owner

sure, how is that achieved?

@lucascolley
Copy link
Author

One of us makes a PR like conda-forge/staged-recipes#27690, requesting to create a "feedstock" for the package, with me and/or you under recipe-maintainers. The script can be autogenerated using grayskull:

{% set name = "basedmypy" %}
{% set version = "2.7.0" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/basedmypy-{{ version }}.tar.gz
  sha256: a8ff08c667d8ca06c6ab5acd574e683b557ce64671b2a0e0c2503979f1186411

build:
  skip: true  # [py<38]
  entry_points:
    - mypy=mypy.__main__:console_entry
    - stubgen=mypy.stubgen:main
    - stubtest=mypy.stubtest:main
    - dmypy=mypy.dmypy.client:console_entry
    - mypyc=mypyc.__main__:main
  script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
  number: 0

requirements:
  host:
    - python
    - setuptools >=40.6.2
    - wheel >=0.30.0
    - basedtyping >=0.1.4
    - typing_extensions >=4.6.0
    - mypy_extensions >=1.0.0
    - tomli >=1.1.0  # [py<311]
    - types-psutil
    - types-setuptools
    - mypy
    - pip
  run:
    - python
    - basedtyping >=0.1.4
    - typing-extensions >=4.6.0
    - mypy_extensions >=1.0.0
    - tomli >=1.1.0  # [py<311]

test:
  imports:
    - mypy
    - mypyc
  commands:
    - pip check
    - mypy --help
    - stubgen --help
    - stubtest --help
    - dmypy --help
    - mypyc --help
  requires:
    - pip

about:
  summary: Based static typing for Python
  license: Apache-2.0 AND BSD-3-Clause AND EPL-2.0
  license_file:
    - LICENSE
    - mypy/typeshed/LICENSE
    - mypyc/external/googletest/LICENSE

extra:
  recipe-maintainers:
    - lucascolley
    - KotlinIsland

After that, the conda-forge bots will automatically send PRs to release a new version whenever you make a PyPI release.

@lucascolley
Copy link
Author

I can't quite tell whether you vendor googletest here, if so there may be some other changes needed to integrate with https://github.com/conda-forge/gtest-feedstock.

@lucascolley
Copy link
Author

@KotlinIsland
Copy link
Owner

https://github.com/conda-forge/basedmypy-feedstock

is this something relevant?

@KotlinIsland
Copy link
Owner

I can't quite tell whether you vendor googletest here, if so there may be some other changes needed to integrate with https://github.com/conda-forge/gtest-feedstock.

i don't, unless mypy does which i don't think they do

@lucascolley
Copy link
Author

ah, looks like @rxm7706 has done this already!

@lucascolley
Copy link
Author

actually, it doesn't seem to work - conda-forge/basedmypy-feedstock#11

@lucascolley
Copy link
Author

looks like my change fixed it! Working at data-apis/array-api-extra#39

@KotlinIsland
Copy link
Owner

great work, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants