Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from haasad/replace-eidl7zip-with-py7zr
Browse files Browse the repository at this point in the history
Replace eidl7zip with py7zr
  • Loading branch information
haasad authored Feb 3, 2022
2 parents c797475 + edab550 commit 5a517bc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/environment-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: build
channels:
- conda-forge
- cmutel
- haasad
dependencies:
- conda-build
- anaconda-client
Expand Down
3 changes: 1 addition & 2 deletions .github/environment-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: test
channels:
- conda-forge
- cmutel
- haasad
dependencies:
- brightway2
- requests
- beautifulsoup4
- eidl7zip
- py7zr
- flake8
4 changes: 2 additions & 2 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "eidl" %}
{% set version = "1.3.3" %}
{% set version = "1.4.0" %}

package:
name: {{ name|lower }}
Expand All @@ -25,7 +25,7 @@ requirements:
- brightway2
- requests
- beautifulsoup4
- eidl7zip
- py7zr
- appdirs

test:
Expand Down
2 changes: 1 addition & 1 deletion eidl/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def download(self):
out_file.write(file_content)

def extract(self, target_dir):
extract_cmd = ['7za', 'x', self.out_path, '-o{}'.format(target_dir)]
extract_cmd = ['py7zr', 'x', self.out_path, target_dir]
try:
self.extraction_process = subprocess.Popen(extract_cmd)
self.extraction_process.wait()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name='eidl',
packages=['eidl'],
version='1.3.3',
version='1.4.0',
author="Adrian Haas",
url="https://github.com/haasad/EcoInventDownLoader",
license=open('LICENSE').read(),
Expand Down

0 comments on commit 5a517bc

Please sign in to comment.