Skip to content

Commit 6fbb1a7

Browse files
authored
Merge pull request #6 from bitranox/development
v1.3.6
2 parents ab921fb + 7a7bed3 commit 6fbb1a7

6 files changed

Lines changed: 67 additions & 54 deletions

File tree

.docs/README_template.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 0.3.5 as of 2020-07-29, see changelog_
1+
Version v1.3.6 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="pathlib3x"
2020
# the registered CLI Command
21-
- CLI_COMMAND=pathlib3x
21+
- CLI_COMMAND="pathlib3x"
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: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,39 @@ Changelog
55
- new MINOR version for added functionality in a backwards compatible manner
66
- new PATCH version for backwards compatible bug fixes
77

8-
0.3.5
9-
-----
8+
v1.3.6
9+
--------
10+
2020-07-31: fix travis build
11+
12+
v0.3.5
13+
--------
1014
2020-07-29: feature release
1115
- use the new pizzacutter template
1216
- use cli_exit_tools
1317

14-
0.3.4
15-
-----
18+
v0.3.4
19+
--------
1620
2020-07-15 : patch release
1721
- fix cli test
1822
- enable traceback option on cli errors
1923

20-
0.3.3
21-
-----
24+
v0.3.3
25+
--------
2226
2020-07-15 : patch release
2327
- fix minor typos
2428

25-
0.3.2
26-
-----
29+
v0.3.2
30+
--------
2731
2020-07-05 : patch release
2832
- fix typo in setup.py setup parameter zip_safe
2933

30-
0.3.1
31-
-----
34+
v0.3.1
35+
--------
3236
2020-07-05 : patch release
3337
- fix version issues in the stub files
3438

35-
0.3.0
36-
-----
39+
v0.3.0
40+
--------
3741
2020-07-05 : added functions, include stub files for typing, setup python_requires
3842
- added python_requires in setup.py
3943
- include type stub files, its fully type hinted package now (PEP 561)
@@ -48,18 +52,18 @@ Changelog
4852
- added Path.copytree
4953
- added Path.rmtree
5054

51-
0.2.0
52-
-----
55+
v0.2.0
56+
--------
5357
2020-07-02 : added function: PurePath.append_suffix(suffix)
5458
- added function: PurePath.append_suffix(suffix)
5559

56-
0.1.1
57-
-----
60+
v0.1.1
61+
--------
5862
2020-07-01: patch release
5963
- guarded the sys.audit calls with try-except clauses, because sys.event is only avail in python 3.8
6064

6165

62-
0.1.0
66+
v0.1.0
6367
-----
6468
2020-06-29: initial release
6569
- initial release

README.rst

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

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

@@ -480,35 +480,39 @@ Changelog
480480
- new MINOR version for added functionality in a backwards compatible manner
481481
- new PATCH version for backwards compatible bug fixes
482482

483-
0.3.5
484-
-----
483+
v1.3.6
484+
--------
485+
2020-07-31: fix travis build
486+
487+
v0.3.5
488+
--------
485489
2020-07-29: feature release
486490
- use the new pizzacutter template
487491
- use cli_exit_tools
488492

489-
0.3.4
490-
-----
493+
v0.3.4
494+
--------
491495
2020-07-15 : patch release
492496
- fix cli test
493497
- enable traceback option on cli errors
494498

495-
0.3.3
496-
-----
499+
v0.3.3
500+
--------
497501
2020-07-15 : patch release
498502
- fix minor typos
499503

500-
0.3.2
501-
-----
504+
v0.3.2
505+
--------
502506
2020-07-05 : patch release
503507
- fix typo in setup.py setup parameter zip_safe
504508

505-
0.3.1
506-
-----
509+
v0.3.1
510+
--------
507511
2020-07-05 : patch release
508512
- fix version issues in the stub files
509513

510-
0.3.0
511-
-----
514+
v0.3.0
515+
--------
512516
2020-07-05 : added functions, include stub files for typing, setup python_requires
513517
- added python_requires in setup.py
514518
- include type stub files, its fully type hinted package now (PEP 561)
@@ -523,18 +527,18 @@ Changelog
523527
- added Path.copytree
524528
- added Path.rmtree
525529

526-
0.2.0
527-
-----
530+
v0.2.0
531+
--------
528532
2020-07-02 : added function: PurePath.append_suffix(suffix)
529533
- added function: PurePath.append_suffix(suffix)
530534

531-
0.1.1
532-
-----
535+
v0.1.1
536+
--------
533537
2020-07-01: patch release
534538
- guarded the sys.audit calls with try-except clauses, because sys.event is only avail in python 3.8
535539

536540

537-
0.1.0
541+
v0.1.0
538542
-----
539543
2020-06-29: initial release
540544
- initial release

pathlib3x/__init__conf__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = 'pathlib3x'
22
title = 'backport of pathlib 3.10 to python 3.6, 3.7, 3.8, 3.9 with a few extensions'
3-
version = '0.3.5'
3+
version = 'v1.3.6'
44
url = 'https://github.com/bitranox/pathlib3x'
55
author = 'Robert Nowotny'
66
author_email = 'bitranox@gmail.com'
@@ -14,7 +14,7 @@ def print_info() -> None:
1414
1515
backport of pathlib 3.10 to python 3.6, 3.7, 3.8, 3.9 with a few extensions
1616
17-
Version : 0.3.5
17+
Version : v1.3.6
1818
Url : https://github.com/bitranox/pathlib3x
1919
Author : Robert Nowotny
2020
Email : bitranox@gmail.com""")

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'] = 'pathlib3x'
86-
setup_kwargs['version'] = '0.3.5'
91+
setup_kwargs['version'] = 'v1.3.6'
8792
setup_kwargs['url'] = 'https://github.com/bitranox/pathlib3x'
8893
setup_kwargs['packages'] = find_packages()
8994
setup_kwargs['package_data'] = {'pathlib3x': ['py.typed', '*.pyi', '__init__.pyi']}

0 commit comments

Comments
 (0)