Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

plonecli_autocomplete.sh script gets mangled by setup.py scripts stanza

Đang mở
#55 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python, shell
Lĩnh vực
build-system, cli

Hướng nghiên cứu

Start with the scripts stanza in setup.py and the plonecli_autocomplete.sh source referenced by the issue. Reproduce installation through the shown tools buildout configuration, then verify that the generated bin/plonecli_autocomplete.sh remains a usable shell script without the added Python shebang or sys.path code.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

  • Plone CLI version: 1.1
  • Python version: 2.7.16
  • Operating System: OSX 10.14

When I install plonecli in a tools builout using:

[plonecli]
recipe = zc.recipe.egg
eggs = plonecli

the plone_autocomplete.sh gets procesed by the setup.py scripts attribute at https://github.com/plone/plonecli/blob/5ba7bc547a3baa110210853a9c6b35b1aa2c7f5a/setup.py#L40

and the resulting bin/plonecli_autocomplete.sh is mangled. The first line is missing and replaced by a shebang to the local python executable and python syspath code is added at the end:

#!/Users/fred/buildouts/my.tools.buildout/bin/python2.7
    COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \
                   COMP_CWORD=$COMP_CWORD \
                   _PLONECLI_COMPLETE=complete $1 ) )
    return 0
}

complete -F _plonecli_completion -o default plonecli;


import sys
sys.path[0:0] = [
  '/Users/fred/buildouts/my.tools.buildout/src/bobtemplates.plone',
  '/Users/fred/.buildout/eggs/plonecli-1.1-py2.7.egg',
  '/Users/fred/.buildout/eggs/zest.releaser-6.18.2-py2.7.egg',
  '/Users/fred/.buildout/eggs/virtualenv-15.1.0-py2.7.egg',
  '/Users/fred/.buildout/eggs/mr.bob-0.1.2-py2.7.egg',
  '/Users/fred/.buildout/eggs/Click-7.0-py2.7.egg',
  '/Users/fred/.buildout/eggs/twine-1.11.0-py2.7.egg',
  '/Users/fred/.buildout/eggs/six-1.11.0-py2.7.egg',
  '/Users/fred/.buildout/eggs/requests-2.18.4-py2.7.egg',
  '/Users/fred/.buildout/eggs/colorama-0.3.9-py2.7.egg',
  '/Users/fred/.buildout/eggs/Jinja2-2.10-py2.7.egg',
  '/Users/fred/.buildout/eggs/case_conversion-2.1.0-py2.7.egg',
  '/Users/fred/.buildout/eggs/lxml-4.1.1-py2.7-macosx-10.12-x86_64.egg',
  '/Users/fred/.buildout/eggs/tqdm-4.19.6-py2.7.egg',
  '/Users/fred/.buildout/eggs/requests_toolbelt-0.8.0-py2.7.egg',
  '/Users/fred/.buildout/eggs/pkginfo-1.4.2-py2.7.egg',
  '/Users/fred/.buildout/eggs/certifi-2018.1.18-py2.7.egg',
  '/Users/fred/.buildout/eggs/urllib3-1.22-py2.7.egg',
  '/Users/fred/.buildout/eggs/idna-2.6-py2.7.egg',
  '/Users/fred/.buildout/eggs/chardet-3.0.4-py2.7.egg',
  '/Users/fred/.buildout/eggs/MarkupSafe-1.0-py2.7-macosx-10.12-x86_64.egg',
  '/Users/fred/.buildout/eggs/regex-2018.8.29-py2.7-macosx-10.13-x86_64.egg',
  '/Users/fred/buildouts/my.tools.buildout/lib/python2.7/site-packages',
  ]




Ngôn ngữ chính
Python
Star
20
Fork
12
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của plone/plonecli

Tất cả issue của plone/plonecli

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.