gagan3012 / streamlit-tags

Custom Tag component for streamlit
https://streamlit-tags.readthedocs.io/en/latest/
MIT License
281 stars 17 forks source link

Unsatisfiable dependencies for platform linux-64 #24

Closed ravinpoudel closed 3 years ago

ravinpoudel commented 3 years ago

I am planning to submit a package to bioconda, which failing and got the following error. Any suggestion on how to fix it?

conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-64: {"streamlit-tags[version='>=1.1.9']"}
gagan3012 commented 3 years ago

Can you add this command in too?

conda config --add channels gagan3012
ravinpoudel commented 3 years ago

Following is my meta.yml file for Bioconda recipe. Should I pass the channel info after the script section?

{% set version = "0.2.0" %}
{% set name = "GuideMaker" %}
{% set sha256 = "c9cb6e35844209259159ee0530390d837748678538b6a9ed7e71645ba51d57be" %}
{% set user = "USDA-ARS-GBRU" %}

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

source:
  url: https://github.com/{{ user }}/{{ name }}/archive/v{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 1
  noarch: python
  entry_points:
    - guidemaker=guidemaker.cli:main
  script: python -m pip install --no-deps --ignore-installed .

requirements:
  host:
    - pip
    - python >=3.6
    - biopython==1.76
  run:
    - pip
    - python >=3.6
    - biopython==1.76
    - biopython==1.76
    - numpy >=1.13
    - pybedtools==0.8.2
    - nmslib>=2.0.6
    - pandas>=1.0.0
    - pyyaml>=5.4.1
    - regex==2020.11.13
    - altair
    - streamlit>0.80.0
    - pytest>=4.6
    - pytest-cov
    - streamlit-tags>=1.1.9
    - pdoc3

test:
  commands:
    - {{ name }} --version | grep '{{ version }}'
    - {{ name }} --help

about:
  home: https://github.com/USDA-ARS-GBRU/GuideMaker
  license: 'CC0 1.0'
  license_family: 'PUBLIC-DOMAIN'
  license_file: LICENSE.txt
  summary: 'GuideMaker: Software to design gRNAs pools in non-model genomes and CRISPR-Cas systems'

extra:
  recipe-maintainers:
    - arivers
    - ravinpoudel
  identifiers:
    - biotools:GuideMaker
    - doi:10.5281/zenodo.4849258
ravinpoudel commented 3 years ago

Is it possible to put streamlit-tags on Conda-forge channel? Following is the text from bioconda. https://bioconda.github.io/contributor/guidelines.html

There is currently no mechanism to define, in the meta.yaml file, that a particular dependency should come from a particular channel. This means that a recipe must have its dependencies in one of the following:

gagan3012 commented 3 years ago

I have already created a PR for it waiting for their response

ravinpoudel commented 3 years ago

Thanks. I will send my PR after streamlit-tags became available at Conda-forge

ravinpoudel commented 3 years ago

Any updates on your PR?

gagan3012 commented 3 years ago

https://github.com/conda-forge/staged-recipes/pull/15164

ravinpoudel commented 3 years ago

Should I be using following to install now?

conda install -c conda-forge streamlit-tags
gagan3012 commented 3 years ago

Yes once the pr is merged

gagan3012 commented 3 years ago

Hello, Streamlit_tags is on conda forge

conda install -c conda-forge streamlit_tags
ravinpoudel commented 3 years ago

Thanks @gagan3012

However, I am still getting the following error. Appreciate any suggestion and help.

conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-64: {"streamlit-tags[version='>=1.2.6']"}

More at: https://app.circleci.com/pipelines/github/bioconda/bioconda-recipes/47452/workflows/4f9004d5-f9fa-4f3f-85fa-6ecc1904c3c7/jobs/156637

My setup.py looks as following:


"""setup.py: python package setup for GuideMaker
"""

from setuptools import setup
import versioneer

requirements = [
    # package requirements go here
    'biopython==1.76',
    'numpy >=1.13',
    'pybedtools==0.8.2',
    'nmslib>=2.0.6', # note 2.1.1 does not pass the build in ubuntu
    'pandas>=1.0.0',
    'pyyaml>=5.4.1',
    'regex==2020.11.13',
    'altair',
    'streamlit>0.80.0',
    'pytest>=4.6',
    'pytest-cov',
    'streamlit-tags>=1.2.6',
    'pdoc3'
]

setup(
    name='guidemaker',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    description='GuideMaker: Software to design gRNAs pools in non-model genomes and CRISPR-Cas',
    license='CC0 1.0 Universal (CC0 1.0) Public Domain Dedication',
    author='Adam Rivers',
    author_email='adam.rivers@usda.gov',
    url='http://tinyecology.com',
    long_description=open('README.md').read(),
    packages=['guidemaker'],
    entry_points={
        'console_scripts': [
            'guidemaker=guidemaker.cli:main'
        ]
    },
    install_requires=requirements,
    python_requires='>=3.6',
    test_suite='pytest',
    tests_require=['pytest'],
    keywords='CRISPR-Cas',
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Development Status :: 3 - Alpha'
    ]
)
gagan3012 commented 3 years ago

I see I think if you rename it to streamlit_tags it should be fixed

ravinpoudel commented 3 years ago

Thanks!!!