Merge pull request #328 from rachmadaniHaryono/feature/fix-setup

fix setup script
This commit is contained in:
Arun Prakash Jana 2018-11-23 12:16:30 +05:30 committed by GitHub
commit 2cd2e59fc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,13 @@
#!/usr/bin/env python3
import os
import re
import shutil
from setuptools import setup, find_packages
shutil.copyfile('buku', 'buku.py')
if os.path.isfile('buku'):
shutil.copyfile('buku', 'buku.py')
with open('buku.py', encoding='utf-8') as f:
version = re.search('__version__ = \'([^\']+)\'', f.read()).group(1)