Skip to content

Commit 8998bb1

Browse files
authored
Merge pull request #11 from bitranox/development
v2.0.0
2 parents 1f867a7 + b728241 commit 8998bb1

33 files changed

+2665
-674
lines changed

.coveragerc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
# (boolean, default False): whether to measure branch coverage in addition to statement coverage
88
branch = True
99

10+
omit =
11+
venv/*
12+
tests/*
13+
setup.py
14+
1015

1116
[report]
1217
# Regexes for lines to exclude from consideration
@@ -29,8 +34,3 @@ exclude_lines=
2934

3035
ignore_errors = True
3136

32-
omit =
33-
venv/*
34-
tests/*
35-
setup.py
36-
conf_pathlib3x.py

.docs/README_template.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pathlib3x
22
=========
33

44

5-
Version v1.3.9 as of 2020-10-09 see `Changelog`_
5+
Version v2.0.0 as of 2022-06-03 see `Changelog`_
66

77

88
.. include:: ./badges.rst

.docs/badges.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
|travis_build| |license| |pypi|
1+
|build_badge| |license| |pypi| |pypi-downloads| |black|
22

33
|codecov| |better_code| |cc_maintain| |cc_issues| |cc_coverage| |snyk|
44

55

6-
.. |travis_build| image:: https://img.shields.io/travis/bitranox/pathlib3x/master.svg
7-
:target: https://travis-ci.org/bitranox/pathlib3x
6+
7+
.. |build_badge| image:: https://github.com/bitranox/pathlib3x/actions/workflows/python-package.yml/badge.svg
8+
:target: https://github.com/bitranox/pathlib3x/actions/workflows/python-package.yml
9+
810

911
.. |license| image:: https://img.shields.io/github/license/webcomics/pywine.svg
1012
:target: http://en.wikipedia.org/wiki/MIT_License
1113

1214
.. |jupyter| image:: https://mybinder.org/badge_logo.svg
13-
:target: https://mybinder.org/v2/gh/bitranox/pathlib3x/master?filepath=pathlib3x.ipynb
15+
:target: https://mybinder.org/v2/gh/bitranox/pathlib3x/master?filepath=pathlib3x.ipynb
1416

1517
.. for the pypi status link note the dashes, not the underscore !
1618
.. |pypi| image:: https://img.shields.io/pypi/status/pathlib3x?label=PyPI%20Package
@@ -39,3 +41,7 @@
3941

4042
.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
4143
:target: https://github.com/psf/black
44+
45+
.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/pathlib3x
46+
:target: https://pypi.org/project/pathlib3x/
47+
:alt: PyPI - Downloads

.docs/commandline_help.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
.. code-block:: bash
1+
.. code-block::
22
33
Usage: pathlib3x [OPTIONS] COMMAND [ARGS]...
44
5-
backport of pathlib 3.10 to python 3.6, 3.7, 3.8, 3.9 with a few
6-
extensions
5+
backport of pathlib 3.10 to python 3.6, 3.7, 3.8, 3.9 with a few extensions
76
87
Options:
98
--version Show the version and exit.

.docs/installation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- Before You start, its highly recommended to update pip and setup tools:
22

33

4-
.. code-block:: bash
4+
.. code-block::
55
66
python -m pip --upgrade pip
77
python -m pip --upgrade setuptools
@@ -12,14 +12,14 @@
1212
- to install the latest version from github via pip:
1313

1414

15-
.. code-block:: bash
15+
.. code-block::
1616
1717
python -m pip install --upgrade git+https://github.com/bitranox/pathlib3x.git
1818
1919
2020
- include it into Your requirements.txt:
2121

22-
.. code-block:: bash
22+
.. code-block::
2323
2424
# Insert following line in Your requirements.txt:
2525
# for the latest Release on pypi:
@@ -34,7 +34,7 @@
3434
3535
- to install the latest development version from source code:
3636

37-
.. code-block:: bash
37+
.. code-block::
3838
3939
# cd ~
4040
$ git clone https://github.com/bitranox/pathlib3x.git

.docs/installation_via_pypi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- to install the latest release from PyPi via pip (recommended):
22

3-
.. code-block:: bash
3+
.. code-block::
44
55
python -m pip install --upgrade pathlib3x

.docs/tested_under.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
tested on linux "bionic" with python 3.6, 3.7, 3.8, 3.9-dev, pypy3 - architectures: amd64, ppc64le, s390x, arm64
1+
tested on recent linux with python 3.6, 3.7, 3.8, 3.9, 3.10, pypy-3.8 - architectures: amd64
22

3-
`100% (for my added functions) code coverage <https://codecov.io/gh/bitranox/pathlib3x>`_, mypy static type checking ,tested under `Linux, macOS, Windows <https://travis-ci.org/bitranox/pathlib3x>`_, automatic daily builds and monitoring
3+
`100% (for my added functions) code coverage <https://codecov.io/gh/bitranox/pathlib3x>`_, flake8 style checking ,mypy static type checking ,tested under `Linux, macOS, Windows <https://github.com/bitranox/pathlib3x/actions/workflows/python-package.yml>`_, automatic daily builds and monitoring

.github/workflows/codeql-analysis.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ master, development ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ master, development ]
20+
schedule:
21+
- cron: '40 13 * * 6'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'python' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
52+
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v2
57+
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
60+
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
64+
65+
#- run: |
66+
# make bootstrap
67+
# make release
68+
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)