Skip to content

Commit c850d1a

Browse files
committed
chore(refactoring): refactoring the setup file
1 parent 17d4689 commit c850d1a

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ end_of_line = lf
55
trim_trailing_whitespace = true
66
indent_size = 2
77

8+
[*.txt]
9+
insert_final_newline = false
10+
811
[*.py]
912
indent_size = 4

VERSION.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.2.2

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ coverage==4.3
66
pytest-cov==2.0.0
77
codeclimate-test-reporter
88
codacy-coverage==1.3
9+
colored==1.3.93

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
with open("README.md", 'r') as fi: # pragma: no cover
55
long_desc = fi.read()
66

7+
with open("VERSION.txt", 'r') as ver: # pragma: no cover
8+
version = ver.read()
9+
710
setup( # pragma: no cover
811
name='commit-helper',
912
description="A python program that helps you write commits following commit conventions", # nopep8
@@ -12,7 +15,7 @@
1215
long_description_content_type='text/markdown',
1316
author='Andre de Sousa Costa Filho',
1417
author_email='andre.filho001@outlook.com',
15-
version='3.1.2',
18+
version=str(version).replace('\n', ''),
1619
packages=find_packages(),
1720
entry_points={
1821
'console_scripts': [

0 commit comments

Comments
 (0)