Skip to content

Commit

Permalink
Merge pull request #46 from derekgengenbacher-wf/XMAS-4399
Browse files Browse the repository at this point in the history
XMAS-4399 - Update auto versioning to permanently change setup.py during build
  • Loading branch information
rmconsole7-wk authored Jun 25, 2019
2 parents 1d26608 + e89807d commit 5284ee3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ RUN mkdir /test_reports
RUN nosetests --with-xunit --xunit-file=/test_reports/results.xml --cover-html tests.unit_tests

# pypi package creation
# The following command replaces the @VERSION@ string in setup.py with the tagged version number from GIT_TAG
RUN sed -i s/@VERSION@/$GIT_TAG/ setup.py
ARG BUILD_ARTIFACTS_PYPI=/build/dist/*.tar.gz
RUN python setup.py sdist

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='ixbrl_viewer',
version=os.getenv('GIT_TAG', '0.0.0'),
version='@VERSION@',
description='The Workiva iXBRL Viewer allows iXBRL reports to be viewed interactively in a web browser',
long_description=open('README.md').read(),
url='https://github.com/workiva/ixbrl-viewer',
Expand Down

0 comments on commit 5284ee3

Please sign in to comment.