請問有使用過 pypi 上傳 packages 的高手
我已經完成上傳,並且能 pip install 我的 packages,
但是site-packages 中只包含 test-0.0.3.dist-info ,並沒有我的 package
想問是哪裡出錯,謝謝
附上 setup.py
from setuptools import setup, find_packages
from os import path
from io import open
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='test', # Required
version='0.0.3', # Required
description='financial data and mining', # Optional
long_description=long_description, # Optional
long_description_content_type='text/markdown', # Optional (see note
above)
url='https://github.com/f496328mm/FinancialMining', # Optional
download_url =
'https://github.com/f496328mm/FinancialMining/tarball/v1.0',
author='linsam', # Optional
author_email='[email protected]', # Optional
classifiers=[ # Optional
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.*',
],
keywords='financial, python', # Optional
packages=find_packages(exclude=['importlib', 'pymysql', 'pandas']), #
Required
project_urls={ # Optional
'Source': 'https://github.com/f496328mm/FinancialMining',
},
)
已解決,setup.py 要放在 packages 同一層,看這張圖就很清楚
https://goo.gl/CqzknC