Skip to content

Commit

Permalink
[2.0.0] Release
Browse files Browse the repository at this point in the history
  • Loading branch information
sveetch committed Feb 7, 2021
1 parent e2af846 commit 50cfe91
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
20 changes: 8 additions & 12 deletions freezer.py
Expand Up @@ -26,7 +26,7 @@ def flatten_requirement(requirement):
Returns:
string: Package name.
"""
return requirement.project_name
return requirement.key


def extract_pkg_version(package_name):
Expand Down Expand Up @@ -86,20 +86,16 @@ def get_install_dependencies(requirements=None, ignore=[]):
"""
reqs = subprocess.check_output([sys.executable, '-m', 'pip', 'freeze'])

# All dependencies except ignored ones
if not requirements:
return [
item.decode('utf-8')
for item in reqs.splitlines()
if item.decode('utf-8') not in ignore
]

# Filter from requirement names and ignored ones
# Filter from requirement names (if any) and ignored ones
deps = []
for item in reqs.splitlines():
pkg = item.decode('utf-8')
name = pkg.split("==")[0]
if name in requirements and name not in ignore:
name = pkg.split("==")[0].lower()

if (
(requirements is None or name in requirements) and
name not in ignore
):
deps.append(pkg)

return deps
Expand Down
3 changes: 2 additions & 1 deletion frozen.txt
@@ -1,4 +1,4 @@
# Frozen requirement versions from '2.0.0rc3' installation
# Frozen requirement versions from '2.0.0' installation
click==7.1.2
colorama==0.4.4
colorlog==4.7.2
Expand All @@ -8,6 +8,7 @@ livereload==2.6.3
packaging==20.9
pyaml==20.4.0
pytest==6.2.2
Sphinx==3.4.3
sphinx-rtd-theme==0.5.1
twine==3.3.0
watchdog==1.0.2
4 changes: 2 additions & 2 deletions setup.cfg
Expand Up @@ -3,7 +3,7 @@
;;
[metadata]
name = boussole
version = 2.0.0-pre.5
version = 2.0.0
description = Commandline interface to build Sass projects using libsass-python
long_description = file:README.rst
long_description_content_type = text/x-rst
Expand Down Expand Up @@ -46,7 +46,7 @@ console_scripts =
dev =
flake8
pytest
sphinx
Sphinx
sphinx-rtd-theme
livereload
twine
Expand Down

0 comments on commit 50cfe91

Please sign in to comment.