Skip to content

Commit

Permalink
make sure version file is included in the cert_uploader package
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPalmer1 committed Mar 26, 2019
1 parent ce62eb0 commit 88a8c2d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ dist/
*.egg-info
.eggs/
__pycache__/
version.txt
cert_uploader/version.py
3 changes: 1 addition & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include version.txt
exclude .gitignore
include cert_uploader/version.py
6 changes: 2 additions & 4 deletions cert_uploader/cli.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import os

from argparse import ArgumentParser
from time import sleep

from .scan import scan_for_certificates
from .uploader import ACMCertificateUploader, IAMCertificateUploader

def get_version():
with open(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'version.txt'), 'r') as f:
return f.read()
from .version import version
return version

def main():
parser = ArgumentParser(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
long_description_content_type='text/markdown',
keywords='certificate cert uploader tools aws iam acm',
url='https://github.com/GESkunkworks/cert-uploader',
use_scm_version={'write_to': 'version.txt'},
use_scm_version={'write_to': 'cert_uploader/version.py'},
author='Michael Palmer',
author_email='[email protected]',
packages=find_packages(),
Expand Down

0 comments on commit 88a8c2d

Please sign in to comment.