Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 未推送Conda包元数据_Python_Python 3.x_Anaconda_Conda_Setuptools - Fatal编程技术网

Python 未推送Conda包元数据

Python 未推送Conda包元数据,python,python-3.x,anaconda,conda,setuptools,Python,Python 3.x,Anaconda,Conda,Setuptools,我创建了一个Python库,作为Conda包。虽然我确保包含所有元数据字段,但当软件包安装在系统上时,没有可用的详细信息,即说明、主页等 软件包安装成功,但是,我希望用户能够看到元数据。我也尝试过输入简单的虚拟值,但运气不好。唯一可能遇到的值是名称(lafpy)和版本(0.2.6)。下面是我的setup.py和meta.yaml文件中的代码 #Setup.py 导入设置工具、操作系统 def读取(fname): 返回open(os.path.join(os.path.dirname(_文件,fn

我创建了一个Python库,作为Conda包。虽然我确保包含所有元数据字段,但当软件包安装在系统上时,没有可用的详细信息,即说明、主页等

软件包安装成功,但是,我希望用户能够看到元数据。我也尝试过输入简单的虚拟值,但运气不好。唯一可能遇到的值是名称(lafpy)和版本(0.2.6)。下面是我的setup.py和meta.yaml文件中的代码

#Setup.py
导入设置工具、操作系统
def读取(fname):
返回open(os.path.join(os.path.dirname(_文件,fname)).read()
setuptools.setup(
name='lafpy',
版本='0.2.6',
description='Lands and Forestry Python Library',
url='1〕https://bitbucket.org/nsdnrforestry/lafpy.git',
作者='ReneéTénière',
作者(电邮地址)test@novascotia.ca',
#long_description='Test',
long_description=read('README.md'),
长\u描述\u内容\u type=“text/markdown”,
许可证=“新斯科舍省土地和林业部”,
关键词='lafpy lands forestry arcpy arcgis pro python',
packages=setuptools.find_packages(),
python_需要='>=3.4,
# meta.yaml

{% set data = load_setup_py_data() %}

package:
    name: lafpy
    # name: {{ data['name'] }}
    version: {{ data['version'] }}
source:
    git_url: https://bitbucket.org/nsdnrforestry/lafpy.git
build:
    skip: True  # [py<34]
    number: 0
    script: pip install .
    # script: python setup.py sdist install --single-version-externally-managed --record=record.txt
    # preserve_egg_dir: True
requirements:
    host:
        - python 3.6.6
        - setuptools 39.2.0 py36_0
    run:
        - python >=3.6,<3.7
        # dependencies are defined in setup.py
        {% for dep in data['install_requires'] %}
        - {{ dep.lower() }}
        {% endfor %}
about:
    home: https://bitbucket.org/nsdnrforestry/lafpy
    license: {{ data['license'] }}
    # license: 'test_license'
    license_file: LICENSE.txt
    description: {{ data['description'] }}
    # description: 'test_desc'
    summary: {{ data['long_description'] }}
    # summary: 'Lands and Forestry Python Library'
    dev_url: {{ data['url'] }}
    # dev_url: https://bitbucket.org/nsdnrforestry/lafpy
    doc_source_url: https://bitbucket.org/nsdnrforestry/lafpy/README.md