Skip to content

Commit 543f530

Browse files
authored
Merge pull request #5 from bitranox/development
v1.2.4
2 parents 1130734 + 4334ad4 commit 543f530

File tree

6 files changed

+63
-48
lines changed

6 files changed

+63
-48
lines changed

.docs/README_template.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 1.2.3 as of 2020-07-29, see changelog_
1+
Version v1.2.4 as of 2020-07-31, see changelog_
22

33
=======================================================
44

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
# package name
1919
- PACKAGE_NAME="lib_platform"
2020
# the registered CLI Command
21-
- CLI_COMMAND=lib_platform
21+
- CLI_COMMAND="lib_platform"
2222
# the source file for rst_include (rebuild rst file includes)
2323
- RST_INCLUDE_SOURCE="./.docs/README_template.rst"
2424
# the target file for rst_include (rebuild rst file includes)
@@ -63,7 +63,7 @@ matrix:
6363
before_install:
6464
- export MYPY_STRICT="True"
6565
- export BUILD_DOCS="False"
66-
- export DEPLOY_CHECK="False"
66+
- export DEPLOY_CHECK="True"
6767
- export DEPLOY="False"
6868

6969

@@ -73,7 +73,7 @@ matrix:
7373
before_install:
7474
- export MYPY_STRICT="True"
7575
- export BUILD_DOCS="False"
76-
- export DEPLOY_CHECK="False"
76+
- export DEPLOY_CHECK="True"
7777
- export DEPLOY="False"
7878

7979

@@ -93,7 +93,7 @@ matrix:
9393
before_install:
9494
- export MYPY_STRICT="True"
9595
- export BUILD_DOCS="False"
96-
- export DEPLOY_CHECK="False"
96+
- export DEPLOY_CHECK="True"
9797
- export DEPLOY="False"
9898

9999

@@ -103,7 +103,7 @@ matrix:
103103
before_install:
104104
- export MYPY_STRICT="False"
105105
- export BUILD_DOCS="False"
106-
- export DEPLOY_CHECK="False"
106+
- export DEPLOY_CHECK="True"
107107
- export DEPLOY="False"
108108

109109

CHANGES.rst

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,45 @@ Changelog
55
- new MINOR version for added functionality in a backwards compatible manner
66
- new PATCH version for backwards compatible bug fixes
77

8-
1.2.3
9-
-----
8+
9+
v1.2.4
10+
--------
11+
2020-07-31: fix travis build
12+
13+
v1.2.3
14+
--------
1015
2020-07-29: feature release
1116
- use the new pizzacutter template
1217
- use cli_exit_tools
1318

14-
1.2.2
15-
-----
19+
v1.2.2
20+
--------
1621
2020-07-16: feature release
1722
- fix cli test
1823
- enable traceback option on cli errors
1924

20-
1.2.1
21-
-----
25+
v1.2.1
26+
--------
2227
2020-07-14 : patch release
2328
- make it compatible with latest lib_registry
2429

2530

26-
1.2.0
27-
-----
31+
v1.2.0
32+
--------
2833
2020-07-07 : service release
2934
- new click cli
3035
- use PizzaCutter Template
3136
- added jupyter notebook
3237
- dropped python2.7 - python3.5 support
3338

34-
1.0.3
35-
-----
39+
v1.0.3
40+
--------
3641
2019-06-14: add is_user_admin (check for administration rights)
3742

38-
1.0.2
39-
-----
43+
v1.0.2
44+
--------
4045
2019-04-28: Documentation Update, minor Fixes in setup.py
4146

42-
1.0.0
43-
-----
47+
v1.0.0
48+
--------
4449
2019-03-28: Initial public release, PyPi Release

README.rst

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 1.2.3 as of 2020-07-29, see changelog_
1+
Version v1.2.4 as of 2020-07-31, see changelog_
22

33
=======================================================
44

@@ -270,41 +270,46 @@ Changelog
270270
- new MINOR version for added functionality in a backwards compatible manner
271271
- new PATCH version for backwards compatible bug fixes
272272

273-
1.2.3
274-
-----
273+
274+
v1.2.4
275+
--------
276+
2020-07-31: fix travis build
277+
278+
v1.2.3
279+
--------
275280
2020-07-29: feature release
276281
- use the new pizzacutter template
277282
- use cli_exit_tools
278283

279-
1.2.2
280-
-----
284+
v1.2.2
285+
--------
281286
2020-07-16: feature release
282287
- fix cli test
283288
- enable traceback option on cli errors
284289

285-
1.2.1
286-
-----
290+
v1.2.1
291+
--------
287292
2020-07-14 : patch release
288293
- make it compatible with latest lib_registry
289294

290295

291-
1.2.0
292-
-----
296+
v1.2.0
297+
--------
293298
2020-07-07 : service release
294299
- new click cli
295300
- use PizzaCutter Template
296301
- added jupyter notebook
297302
- dropped python2.7 - python3.5 support
298303

299-
1.0.3
300-
-----
304+
v1.0.3
305+
--------
301306
2019-06-14: add is_user_admin (check for administration rights)
302307

303-
1.0.2
304-
-----
308+
v1.0.2
309+
--------
305310
2019-04-28: Documentation Update, minor Fixes in setup.py
306311

307-
1.0.0
308-
-----
312+
v1.0.0
313+
--------
309314
2019-03-28: Initial public release, PyPi Release
310315

lib_platform/__init__conf__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = 'lib_platform'
22
title = 'some platform related functions, which also work correctly on wine'
3-
version = '1.2.3'
3+
version = 'v1.2.4'
44
url = 'https://github.com/bitranox/lib_platform'
55
author = 'Robert Nowotny'
66
author_email = '[email protected]'
@@ -14,7 +14,7 @@ def print_info() -> None:
1414
1515
some platform related functions, which also work correctly on wine
1616
17-
Version : 1.2.3
17+
Version : v1.2.4
1818
Url : https://github.com/bitranox/lib_platform
1919
Author : Robert Nowotny
2020
Email : [email protected]""")

setup.py

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@
1313

1414

1515
def is_travis_deploy() -> bool:
16-
if 'travis_deploy' in os.environ:
17-
if os.environ['travis_deploy'] == 'True':
18-
return True
19-
return False
16+
if 'DEPLOY' not in os.environ:
17+
return False
18+
if os.environ['DEPLOY'].lower() == 'true' and is_tagged_commit():
19+
return True
20+
else:
21+
return False
2022

2123

2224
def is_tagged_commit() -> bool:
2325
if 'TRAVIS_TAG' in os.environ:
24-
if os.environ['TRAVIS_TAG'] != '':
26+
if os.environ['TRAVIS_TAG']:
2527
return True
2628
return False
2729

@@ -56,11 +58,14 @@ def get_requirements_from_file(requirements_filename: str) -> List[str]:
5658
>>> assert len(get_requirements_from_file('requirements.txt')) > 0
5759
"""
5860
l_requirements = list()
59-
with open(str(pathlib.Path(__file__).parent / requirements_filename), mode='r') as requirements_file:
60-
for line in requirements_file:
61-
line_data = get_line_data(line)
62-
if line_data:
63-
l_requirements.append(line_data)
61+
try:
62+
with open(str(pathlib.Path(__file__).parent / requirements_filename), mode='r') as requirements_file:
63+
for line in requirements_file:
64+
line_data = get_line_data(line)
65+
if line_data:
66+
l_requirements.append(line_data)
67+
except FileNotFoundError:
68+
pass
6469
return l_requirements
6570

6671

@@ -83,7 +88,7 @@ def get_line_data(line: str) -> str:
8388

8489
setup_kwargs: Dict[str, Any] = dict()
8590
setup_kwargs['name'] = 'lib_platform'
86-
setup_kwargs['version'] = '1.2.3'
91+
setup_kwargs['version'] = 'v1.2.4'
8792
setup_kwargs['url'] = 'https://github.com/bitranox/lib_platform'
8893
setup_kwargs['packages'] = find_packages()
8994
setup_kwargs['package_data'] = {'lib_platform': ['py.typed', '*.pyi', '__init__.pyi']}

0 commit comments

Comments
 (0)