impose-cli 0.0.0__tar.gz → 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: impose-cli
3
- Version: 0.0.0
3
+ Version: 0.0.1
4
4
  Summary: Create a CLI tool easily.
5
5
  Home-page: UNKNOWN
6
6
  Author: scdev
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: impose-cli
3
- Version: 0.0.0
3
+ Version: 0.0.1
4
4
  Summary: Create a CLI tool easily.
5
5
  Home-page: UNKNOWN
6
6
  Author: scdev
@@ -1,10 +1,13 @@
1
- from subprocess import run, CalledProcessError
1
+ import subprocess
2
2
  from setuptools import setup, find_packages
3
3
 
4
4
 
5
5
  def get_version():
6
- output = run('git describe --tags', capture_output=True, shell=True).stdout.decode('utf-8')
7
- return ''.join(filter(lambda x: x.isdigit() or x == '.', list(output)))
6
+ try:
7
+ version = subprocess.check_output(['git', 'describe', '--tags']).decode().strip()
8
+ except subprocess.CalledProcessError:
9
+ version = '0.0.1'
10
+ return version
8
11
 
9
12
 
10
13
  with open('requirements.txt') as f:
File without changes
File without changes
File without changes
File without changes
File without changes