Skip to content

Commit

Permalink
refractor
Browse files Browse the repository at this point in the history
  • Loading branch information
bitranox committed Oct 9, 2020
1 parent fd7194c commit 194fdbc
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .docs/README_template.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ igittigitt
==========


Version v2.0.3a0 as of 2020-09-20 see `Changelog`_
Version v2.0.3 as of 2020-10-09 see `Changelog`_


.. include:: ./badges.rst
Expand Down
2 changes: 1 addition & 1 deletion .docs/tested_under.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
tested on linux "bionic" with python 3.6, 3.7, 3.8, 3.8-dev, pypy3 - architectures: amd64, ppc64le, s390x, arm64
tested on linux "bionic" with python 3.6, 3.7, 3.8, 3.9-dev, pypy3 - architectures: amd64, ppc64le, s390x, arm64

`100% code coverage <https://codecov.io/gh/bitranox/igittigitt>`_, flake8 style checking ,mypy static type checking ,tested under `Linux, macOS, Windows <https://travis-ci.org/bitranox/igittigitt>`_, automatic daily builds and monitoring
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ matrix:
- os: windows
if: true
language: sh
name: "Windows Python 3.8"
name: "Windows Python 3.9"

# oddly a secure password under env: global: causes that choco fails
# so we need to put the option : filter_secrets: false
Expand All @@ -71,7 +71,7 @@ matrix:
- chmod -R 0755 /usr/local/lib_bash
- chmod -R +x /usr/local/lib_bash/*.sh
- /usr/local/lib_bash/lib_retry.sh retry choco install python3
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- export PATH="/c/Python310:/c/Python310/Scripts:/c/Python39:/c/Python39/Scripts:/c/Python38:/c/Python38/Scripts:$PATH"
- export BUILD_DOCS="False"
- export DEPLOY_SDIST="False"
- export DEPLOY_WHEEL="False"
Expand Down Expand Up @@ -119,7 +119,7 @@ matrix:
arch: "amd64"
if: true
language: python
python: "3.8-dev"
python: "3.9-dev"
before_install:
- export BUILD_DOCS="False"
- export DEPLOY_SDIST="True"
Expand Down
6 changes: 4 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ TODO:
- add nested .gitignore files
- documentation

v2.0.3a0
v2.0.3
--------
2020-09-20:
2020-10-09: service release
- update travis build matrix for linux 3.9-dev
- update travis build matrix (paths) for windows 3.9 / 3.10
- bump up coverage

v2.0.2
Expand Down
10 changes: 6 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ igittigitt
==========


Version v2.0.3a0 as of 2020-09-20 see `Changelog`_
Version v2.0.3 as of 2020-10-09 see `Changelog`_

|travis_build| |license| |jupyter| |pypi| |black|

Expand Down Expand Up @@ -106,7 +106,7 @@ automated tests, Travis Matrix, Documentation, Badges, etc. are managed with `Pi

Python version required: 3.6.0 or newer

tested on linux "bionic" with python 3.6, 3.7, 3.8, 3.8-dev, pypy3 - architectures: amd64, ppc64le, s390x, arm64
tested on linux "bionic" with python 3.6, 3.7, 3.8, 3.9-dev, pypy3 - architectures: amd64, ppc64le, s390x, arm64

`100% code coverage <https://codecov.io/gh/bitranox/igittigitt>`_, flake8 style checking ,mypy static type checking ,tested under `Linux, macOS, Windows <https://travis-ci.org/bitranox/igittigitt>`_, automatic daily builds and monitoring

Expand Down Expand Up @@ -397,9 +397,11 @@ TODO:
- add nested .gitignore files
- documentation

v2.0.3a0
v2.0.3
--------
2020-09-20:
2020-10-09: service release
- update travis build matrix for linux 3.9-dev
- update travis build matrix (paths) for windows 3.9 / 3.10
- bump up coverage

v2.0.2
Expand Down
4 changes: 2 additions & 2 deletions igittigitt/__init__conf__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "igittigitt"
title = "A spec-compliant gitignore parser for Python"
version = "v2.0.3a0"
version = "v2.0.3"
url = "https://github.com/bitranox/igittigitt"
author = "Robert Nowotny"
author_email = "[email protected]"
Expand All @@ -15,7 +15,7 @@ def print_info() -> None:
A spec-compliant gitignore parser for Python
Version : v2.0.3a0
Version : v2.0.3
Url : https://github.com/bitranox/igittigitt
Author : Robert Nowotny
Email : [email protected]"""
Expand Down
4 changes: 1 addition & 3 deletions igittigitt/igittigitt.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ def parse_rule_files(
self._parse_rule_file(rule_file)

def _parse_rule_file(
self,
rule_file: PathLikeOrString,
base_dir: Optional[PathLikeOrString] = None,
self, rule_file: PathLikeOrString, base_dir: Optional[PathLikeOrString] = None,
) -> None:
"""
parse a git ignore file, create rules from a gitignore file
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_line_data(line: str) -> str:

setup_kwargs: Dict[str, Any] = dict()
setup_kwargs["name"] = "igittigitt"
setup_kwargs["version"] = "v2.0.3a0"
setup_kwargs["version"] = "v2.0.3"
setup_kwargs["url"] = "https://github.com/bitranox/igittigitt"
setup_kwargs["packages"] = find_packages()
setup_kwargs["package_data"] = {"igittigitt": ["py.typed", "*.pyi", "__init__.pyi"]}
Expand Down
4 changes: 1 addition & 3 deletions tests/test_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,7 @@ def test_shutil_ignore_function():
ignore_parser = igittigitt.IgnoreParser()
ignore_parser.parse_rule_files(base_dir=path_source_dir, filename=".test_gitignore")
shutil.copytree(
path_source_dir,
path_target_dir,
ignore=ignore_parser.shutil_ignore,
path_source_dir, path_target_dir, ignore=ignore_parser.shutil_ignore,
)

assert len(list(path_target_dir.glob("**/*"))) == 9
Expand Down

0 comments on commit 194fdbc

Please sign in to comment.