Skip to content

Commit

Permalink
fix dunamai
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jun 22, 2021
1 parent 95ef118 commit ada16e8
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
#!/usr/bin/env python

import logging

from setuptools import config, find_packages, setup

try:
from dunamai import Version
except ImportError:
import subprocess
import sys
try:
from dunamai import Version
except ImportError:
import subprocess
import sys

subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'dunamai'])
from dunamai import Version

version = Version.from_any_vcs().serialize()
except RuntimeError as error:
logging.exception(error)
version = '0.0.0'

subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'dunamai'])
from dunamai import Version
logging.info(f'using version {version}')

metadata = config.read_configuration('setup.cfg')['metadata']

Expand Down

0 comments on commit ada16e8

Please sign in to comment.