无法导入我自己的PyPI包

Jfa*_*ach 5 python pypi

我正在尝试在PyPI上提供一个软件包。我已将其上传到PyPI,可以按以下方式安装: pip install autostager。但是,打开外壳并尝试导入它无法按预期方式工作:

>>> import autostager
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named autostager
Run Code Online (Sandbox Code Playgroud)

供参考,这里是 setup.py

from distutils.core import setup
setup(
  name = 'autostager',
  packages = ['autostager'],
  version = '0.1',
  description = 'Stage a directory based on Github pull request (e.g., dynamic puppet environments)',
  author = 'Jordan Facibene',
  author_email = 'jordan.facibene13@stjohns.edu',
  url = 'https://github.com/jfach/autostager',
  download_url = 'https://github.com/jfach/autostager/tarball/0.1',
  keywords = ['github', 'automation', 'staging'],
  classifiers = []
)
Run Code Online (Sandbox Code Playgroud)

作为参考,可以在以下位置找到我的存储库:https : //github.com/jfach/autostager

我要导入的模块autostager.py(除其他外)将在autostager目录中找到。

在此问题上的任何帮助将不胜感激。