Building Zip archive for python 3
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
Desired Behavior: python setup.py zip should create an archive with the distribution.
Actual Behavior: python setup.py zip raises an exception
With python version: Python 3.5.2 :: Anaconda custom (x86_64)
Steps to reproduce:
git clone https://github.com/clips/pattern.git
cd pattern && git checkout development
python setup.py zip
Output:
pattern-2.6.zip
Traceback (most recent call last):
File "setup.py", line 46, in <module>
print(hashlib.sha256(open(z.filename).read()).hexdigest())
File "/Users/jfairbanks6/anaconda/lib/python3.5/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 12: invalid start byte
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with setup.py around line 46 and reproduce the failure using the documented clone, checkout, and python setup.py zip commands. Trace the archive hashing step and verify that the command completes successfully and produces the distribution archive without the UnicodeDecodeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100