repominer-GDeLuisi 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- repominer_gdeluisi-0.1.0/.github/workflows/publish_pypi.yml +111 -0
- repominer_gdeluisi-0.1.0/.github/workflows/tag_on_merge.yaml +61 -0
- repominer_gdeluisi-0.1.0/.github/workflows/test-dev.yml +157 -0
- repominer_gdeluisi-0.1.0/.github/workflows/testpypi_publish.yml +111 -0
- repominer_gdeluisi-0.1.0/.gitignore +174 -0
- repominer_gdeluisi-0.1.0/.python-version +1 -0
- repominer_gdeluisi-0.1.0/LICENSE +21 -0
- repominer_gdeluisi-0.1.0/PKG-INFO +19 -0
- repominer_gdeluisi-0.1.0/README.md +3 -0
- repominer_gdeluisi-0.1.0/pyproject.toml +37 -0
- repominer_gdeluisi-0.1.0/requirements.txt +0 -0
- repominer_gdeluisi-0.1.0/src/repository_miner/__init__.py +6 -0
- repominer_gdeluisi-0.1.0/src/repository_miner/data_typing.py +106 -0
- repominer_gdeluisi-0.1.0/src/repository_miner/exceptions.py +15 -0
- repominer_gdeluisi-0.1.0/src/repository_miner/git.py +31 -0
- repominer_gdeluisi-0.1.0/src/repository_miner/helper.py +156 -0
- repominer_gdeluisi-0.1.0/src/repository_miner/miner.py +98 -0
- repominer_gdeluisi-0.1.0/src/repository_miner/py.typed +0 -0
- repominer_gdeluisi-0.1.0/src/repository_miner/utility.py +40 -0
- repominer_gdeluisi-0.1.0/tests/test_git.py +29 -0
- repominer_gdeluisi-0.1.0/tests/test_helpers.py +95 -0
- repominer_gdeluisi-0.1.0/tests/test_miner.py +64 -0
@@ -0,0 +1,111 @@
|
|
1
|
+
# This workflow will upload a Python Package to PyPI when a release is created
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
3
|
+
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
5
|
+
# They are provided by a third-party and are governed by
|
6
|
+
# separate terms of service, privacy policy, and support
|
7
|
+
# documentation.
|
8
|
+
|
9
|
+
name: Upload Python Package to PyPi
|
10
|
+
|
11
|
+
on:
|
12
|
+
release:
|
13
|
+
types: [released]
|
14
|
+
workflow_dispatch:
|
15
|
+
inputs:
|
16
|
+
release:
|
17
|
+
type: boolean
|
18
|
+
description: Release tag version
|
19
|
+
default: true
|
20
|
+
|
21
|
+
permissions:
|
22
|
+
contents: read
|
23
|
+
|
24
|
+
jobs:
|
25
|
+
retrieve_tag:
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
outputs:
|
28
|
+
tag: ${{ steps.tag_extraction.outputs.tag }}
|
29
|
+
release_tag: ${{ steps.tag_extraction2.outputs.tag_r }}
|
30
|
+
steps:
|
31
|
+
- uses: actions/checkout@v4
|
32
|
+
- name: Get tag
|
33
|
+
if: ${{ inputs.release == true }}
|
34
|
+
shell: bash
|
35
|
+
id: tag_extraction
|
36
|
+
run: |
|
37
|
+
git fetch --all --unshallow
|
38
|
+
if tag=$(git describe --tags --abbrev=0 2>/dev/null);then
|
39
|
+
echo "Found tag $tag"
|
40
|
+
echo "tag=$tag" >> $GITHUB_OUTPUT
|
41
|
+
else
|
42
|
+
echo "No tag found, exiting"
|
43
|
+
exit 1
|
44
|
+
fi
|
45
|
+
- name: Get release tag
|
46
|
+
id: tag_extraction2
|
47
|
+
if: ${{ github.event.release.tag_name != '' && inputs.release != true }}
|
48
|
+
shell: bash
|
49
|
+
run: |
|
50
|
+
tag=${{ github.event.release.tag_name }}
|
51
|
+
echo "Found tag $tag"
|
52
|
+
echo "tag_r=$tag" >> $GITHUB_OUTPUT
|
53
|
+
|
54
|
+
release-build:
|
55
|
+
needs:
|
56
|
+
- retrieve_tag
|
57
|
+
runs-on: ubuntu-latest
|
58
|
+
outputs:
|
59
|
+
tag: ${{ steps.build.outputs.tag }}
|
60
|
+
steps:
|
61
|
+
- uses: actions/checkout@v4
|
62
|
+
- uses: actions/setup-python@v5
|
63
|
+
with:
|
64
|
+
python-version: ${{matrix.p-version}}
|
65
|
+
- name: Build release distributions
|
66
|
+
id: build
|
67
|
+
shell: bash
|
68
|
+
run: |
|
69
|
+
TAG=${{needs.retrieve_tag.outputs.tag}}
|
70
|
+
if [ ! $TAG ];then
|
71
|
+
TAG=${{needs.retrieve_tag.outputs.release_tag}}
|
72
|
+
fi
|
73
|
+
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
74
|
+
sed -i "s/__VERSION__/$TAG/g" pyproject.toml
|
75
|
+
# NOTE: put your own distribution build steps here.
|
76
|
+
python -m pip install build
|
77
|
+
python -m build
|
78
|
+
- name: Upload distributions
|
79
|
+
uses: actions/upload-artifact@v4
|
80
|
+
with:
|
81
|
+
name: release-dists
|
82
|
+
path: dist/
|
83
|
+
publish-to-pypi:
|
84
|
+
runs-on: ubuntu-latest
|
85
|
+
needs:
|
86
|
+
- release-build
|
87
|
+
permissions:
|
88
|
+
# IMPORTANT: this permission is mandatory for trusted publishing
|
89
|
+
id-token: write
|
90
|
+
# Dedicated environments with protections for publishing are strongly recommended.
|
91
|
+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
|
92
|
+
environment:
|
93
|
+
name: pypi
|
94
|
+
|
95
|
+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
|
96
|
+
# url: https://pypi.org/p/YOURPROJECT
|
97
|
+
#
|
98
|
+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
|
99
|
+
# ALTERNATIVE: exactly, uncomment the following line instead:https://test.pypi.org/manage/projects/
|
100
|
+
url: https://pypi.org/project/repominer-GDeLuisi/${{needs.release-build.outputs.tag}}
|
101
|
+
steps:
|
102
|
+
- name: Retrieve release distributions
|
103
|
+
uses: actions/download-artifact@v4
|
104
|
+
with:
|
105
|
+
name: release-dists
|
106
|
+
path: dist/
|
107
|
+
- name: Publish release distributions to PyPI
|
108
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
109
|
+
with:
|
110
|
+
password: ${{ secrets.PYPI_TOKEN }}
|
111
|
+
|
@@ -0,0 +1,61 @@
|
|
1
|
+
name: Tag on merge
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
types:
|
6
|
+
- closed
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
if_merged:
|
10
|
+
if: github.event.pull_request.merged == true && ${{ github.base_ref }} == "main"
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
env:
|
13
|
+
REF: ${{ github.base_ref }}
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v4
|
16
|
+
- name: Get old tag
|
17
|
+
shell: bash
|
18
|
+
run: |
|
19
|
+
git fetch --all --unshallow
|
20
|
+
if tag=$(git describe --tags --abbrev=0 2>/dev/null);then
|
21
|
+
echo "Found tag $tag"
|
22
|
+
major=$(echo $tag | cut -d '.' -f 1)
|
23
|
+
minor=$(echo $tag | cut -d '.' -f 2)
|
24
|
+
patch=$(echo $tag | cut -d '.' -f 3)
|
25
|
+
echo "MAJOR=$major" >> $GITHUB_ENV
|
26
|
+
echo "MINOR=$minor" >> $GITHUB_ENV
|
27
|
+
echo "PATCH=$patch" >> $GITHUB_ENV
|
28
|
+
else
|
29
|
+
echo "MAJOR=0" >> $GITHUB_ENV
|
30
|
+
echo "MINOR=0" >> $GITHUB_ENV
|
31
|
+
echo "PATCH=0" >> $GITHUB_ENV
|
32
|
+
fi
|
33
|
+
- if: contains(github.event.pull_request.labels.*.name, 'major')
|
34
|
+
name: "Increment Major"
|
35
|
+
shell: bash
|
36
|
+
run: |
|
37
|
+
major=$((MAJOR+1))
|
38
|
+
echo "TAG=$major.0.0" >> $GITHUB_ENV
|
39
|
+
- if: contains(github.event.pull_request.labels.*.name, 'minor')
|
40
|
+
name: "Increment Minor"
|
41
|
+
shell: bash
|
42
|
+
run: |
|
43
|
+
minor=$((MINOR+1))
|
44
|
+
echo "TAG=$MAJOR.$minor.0" >> $GITHUB_ENV
|
45
|
+
- if: contains(github.event.pull_request.labels.*.name, 'patch')
|
46
|
+
name: "Increment Patch"
|
47
|
+
shell: bash
|
48
|
+
run: |
|
49
|
+
patch=$((PATCH+1))
|
50
|
+
echo "TAG=$MAJOR.$MINOR.$patch" >> $GITHUB_ENV
|
51
|
+
- name: Create new tag
|
52
|
+
shell: bash
|
53
|
+
run: |
|
54
|
+
if [ ! $TAG ];then
|
55
|
+
echo "No tagging required"
|
56
|
+
exit 0
|
57
|
+
fi
|
58
|
+
echo "Creating new tag $TAG"
|
59
|
+
git tag $TAG
|
60
|
+
git push origin $TAG
|
61
|
+
|
@@ -0,0 +1,157 @@
|
|
1
|
+
name: Python application Development Test
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ "development","main" ]
|
5
|
+
|
6
|
+
|
7
|
+
permissions:
|
8
|
+
contents: read
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
os: ["ubuntu-latest","windows-latest","macos-latest"]
|
15
|
+
p-version: ["3.10","3.11","3.12","3.13"]
|
16
|
+
runs-on: ${{matrix.os}}
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v4
|
19
|
+
- name: Set up Python 3.12
|
20
|
+
uses: actions/setup-python@v3
|
21
|
+
with:
|
22
|
+
python-version: ${{matrix.p-version}}
|
23
|
+
- name: 'Setup jq'
|
24
|
+
uses: dcarbone/install-jq-action@v3
|
25
|
+
with:
|
26
|
+
version: "latest"
|
27
|
+
force: false
|
28
|
+
- if: runner.os == 'Windows'
|
29
|
+
name: Config for Windows
|
30
|
+
shell: bash
|
31
|
+
run: |
|
32
|
+
git config --global core.autocrlf false
|
33
|
+
git config --global core.eol lf
|
34
|
+
echo "Setting tracking of all branches"
|
35
|
+
"C:\Program Files\Git\bin\git.exe" config --global remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
|
36
|
+
"C:\Program Files\Git\bin\git.exe" -c protocol.version=2 fetch --all -t --unshallow
|
37
|
+
"C:\Program Files\Git\bin\git.exe" -c protocol.version=2 pull --all
|
38
|
+
set +e
|
39
|
+
for i in $("C:\Program Files\Git\bin\git.exe" branch -a | grep remote | grep -v HEAD); do "C:\Program Files\Git\bin\git.exe" branch --track ${i#remotes/origin/} $i; done
|
40
|
+
set -e
|
41
|
+
- if: runner.os != 'Windows'
|
42
|
+
name: Config for Unix
|
43
|
+
shell: bash
|
44
|
+
run: |
|
45
|
+
echo "Setting tracking of all branches"
|
46
|
+
/usr/bin/git config --global remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
|
47
|
+
/usr/bin/git -c protocol.version=2 fetch --all -t --unshallow
|
48
|
+
/usr/bin/git -c protocol.version=2 pull --all
|
49
|
+
set +e
|
50
|
+
for i in $(/usr/bin/git branch -a | grep remote | grep -v HEAD); do /usr/bin/git branch --track ${i#remotes/origin/} $i; done
|
51
|
+
set -e
|
52
|
+
- name: Install dependencies
|
53
|
+
shell: bash
|
54
|
+
run: |
|
55
|
+
python -m pip install --upgrade pip
|
56
|
+
pip install flake8 pytest pytest-cov
|
57
|
+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
58
|
+
- name: Lint with flake8
|
59
|
+
run: |
|
60
|
+
# stop the build if there are Python syntax errors or undefined names
|
61
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
62
|
+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
63
|
+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
64
|
+
- name: Test with pytest
|
65
|
+
shell: bash
|
66
|
+
run: |
|
67
|
+
pytest --cov --cov-report json
|
68
|
+
- name: Check coverage reports
|
69
|
+
shell: bash
|
70
|
+
run: |
|
71
|
+
array=($(jq -r '.files | keys | .[]' coverage.json))
|
72
|
+
uncovered_files=()
|
73
|
+
for key in ${array[@]};do
|
74
|
+
key="$(echo $key |sed 's/\\/\\\\/g')"
|
75
|
+
percentage="$(jq -r ".files.\"$key\" | .summary.percent_covered_display" coverage.json)"
|
76
|
+
if [[ $percentage -lt "75" ]];then
|
77
|
+
>&2 echo "File $key tests have not covered the minimum of policy percentage coverage. Please adjust your files accordingly"
|
78
|
+
uncovered_files+=($key)
|
79
|
+
fi
|
80
|
+
done
|
81
|
+
if [ ${#uncovered_files[@]} -gt 0 ];then
|
82
|
+
exit 1
|
83
|
+
fi
|
84
|
+
- if: failure()||cancelled()
|
85
|
+
name: Read reports
|
86
|
+
shell: bash
|
87
|
+
run: |
|
88
|
+
jq -s '.[]| select( .level == "ERROR" or .level == "CRITICAL") ' logs/logs.log.jsonl > errors.log
|
89
|
+
jq -s '.[]| select( .level == "INFO" or .level == "DEBUG" or .level == "WARNING") |select( .logger != "pydriller.repository" and .logger != "git.cmd")' logs/logs.log.jsonl > infos.log
|
90
|
+
jq -s '.[]| select( .logger == "pydriller.repository" or .logger == "git.cmd")' logs/logs.log.jsonl > repo.log
|
91
|
+
echo -e "\nERRORS:\n"
|
92
|
+
cat errors.log
|
93
|
+
echo -e "\nINFO:\n"
|
94
|
+
cat infos.log
|
95
|
+
echo -e "\nREPO INFO:\n"
|
96
|
+
cat repo.log
|
97
|
+
|
98
|
+
create-cov-html:
|
99
|
+
needs:
|
100
|
+
- test
|
101
|
+
strategy:
|
102
|
+
fail-fast: false
|
103
|
+
matrix:
|
104
|
+
p-version: ["3.10","3.11","3.12","3.13"]
|
105
|
+
runs-on: ubuntu-latest
|
106
|
+
steps:
|
107
|
+
- uses: actions/checkout@v4
|
108
|
+
- name: Set up Python 3.12
|
109
|
+
uses: actions/setup-python@v3
|
110
|
+
with:
|
111
|
+
python-version: ${{matrix.p-version}}
|
112
|
+
- if: runner.os == 'Windows'
|
113
|
+
name: Config for Windows
|
114
|
+
shell: bash
|
115
|
+
run: |
|
116
|
+
git config --global core.autocrlf false
|
117
|
+
git config --global core.eol lf
|
118
|
+
echo "Setting tracking of all branches"
|
119
|
+
"C:\Program Files\Git\bin\git.exe" config --global remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
|
120
|
+
"C:\Program Files\Git\bin\git.exe" -c protocol.version=2 fetch --all -t --unshallow
|
121
|
+
"C:\Program Files\Git\bin\git.exe" -c protocol.version=2 pull --all
|
122
|
+
set +e
|
123
|
+
for i in $("C:\Program Files\Git\bin\git.exe" branch -a | grep remote | grep -v HEAD); do "C:\Program Files\Git\bin\git.exe" branch --track ${i#remotes/origin/} $i; done
|
124
|
+
set -e
|
125
|
+
- if: runner.os != 'Windows'
|
126
|
+
name: Config for Unix
|
127
|
+
shell: bash
|
128
|
+
run: |
|
129
|
+
echo "Setting tracking of all branches"
|
130
|
+
/usr/bin/git config --global remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
|
131
|
+
/usr/bin/git -c protocol.version=2 fetch --all -t --unshallow
|
132
|
+
/usr/bin/git -c protocol.version=2 pull --all
|
133
|
+
set +e
|
134
|
+
for i in $(/usr/bin/git branch -a | grep remote | grep -v HEAD); do /usr/bin/git branch --track ${i#remotes/origin/} $i; done
|
135
|
+
set -e
|
136
|
+
- name: Install dependencies
|
137
|
+
shell: bash
|
138
|
+
run: |
|
139
|
+
python -m pip install --upgrade pip
|
140
|
+
pip install flake8 pytest pytest-cov
|
141
|
+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
142
|
+
- name: Lint with flake8
|
143
|
+
run: |
|
144
|
+
# stop the build if there are Python syntax errors or undefined names
|
145
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
146
|
+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
147
|
+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
148
|
+
- name: Test with pytest
|
149
|
+
shell: bash
|
150
|
+
run: |
|
151
|
+
pytest --cov --cov-report html
|
152
|
+
- name: Upload html coverage
|
153
|
+
uses: actions/upload-artifact@v4
|
154
|
+
with:
|
155
|
+
name: html_coverage_${{matrix.p-version}}
|
156
|
+
path: htmlcov/
|
157
|
+
retention-days: 2
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# This workflow will upload a Python Package to PyPI when a release is created
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
3
|
+
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
5
|
+
# They are provided by a third-party and are governed by
|
6
|
+
# separate terms of service, privacy policy, and support
|
7
|
+
# documentation.
|
8
|
+
|
9
|
+
name: Upload Python Package to TestPyPi
|
10
|
+
|
11
|
+
on:
|
12
|
+
release:
|
13
|
+
types: [prereleased]
|
14
|
+
workflow_dispatch:
|
15
|
+
inputs:
|
16
|
+
release:
|
17
|
+
type: boolean
|
18
|
+
description: Release tag version
|
19
|
+
default: true
|
20
|
+
|
21
|
+
permissions:
|
22
|
+
contents: read
|
23
|
+
|
24
|
+
jobs:
|
25
|
+
retrieve_tag:
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
outputs:
|
28
|
+
tag: ${{ steps.tag_extraction.outputs.tag }}
|
29
|
+
release_tag: ${{ steps.tag_extraction2.outputs.tag_r }}
|
30
|
+
steps:
|
31
|
+
- uses: actions/checkout@v4
|
32
|
+
- name: Get tag
|
33
|
+
if: ${{ inputs.release == true }}
|
34
|
+
shell: bash
|
35
|
+
id: tag_extraction
|
36
|
+
run: |
|
37
|
+
git fetch --all --unshallow
|
38
|
+
if tag=$(git describe --tags --abbrev=0 2>/dev/null);then
|
39
|
+
echo "Found tag $tag"
|
40
|
+
echo "tag=$tag" >> $GITHUB_OUTPUT
|
41
|
+
else
|
42
|
+
echo "No tag found, exiting"
|
43
|
+
exit 1
|
44
|
+
fi
|
45
|
+
- name: Get release tag
|
46
|
+
id: tag_extraction2
|
47
|
+
if: ${{ github.event.release.tag_name != '' && inputs.release != true }}
|
48
|
+
shell: bash
|
49
|
+
run: |
|
50
|
+
tag=${{ github.event.release.tag_name }}
|
51
|
+
echo "Found tag $tag"
|
52
|
+
echo "tag_r=$tag" >> $GITHUB_OUTPUT
|
53
|
+
|
54
|
+
release-build:
|
55
|
+
needs:
|
56
|
+
- retrieve_tag
|
57
|
+
runs-on: ubuntu-latest
|
58
|
+
outputs:
|
59
|
+
tag: ${{ steps.build.outputs.tag }}
|
60
|
+
steps:
|
61
|
+
- uses: actions/checkout@v4
|
62
|
+
- uses: actions/setup-python@v5
|
63
|
+
with:
|
64
|
+
python-version: ${{matrix.p-version}}
|
65
|
+
- name: Build release distributions
|
66
|
+
id: build
|
67
|
+
shell: bash
|
68
|
+
run: |
|
69
|
+
TAG=${{needs.retrieve_tag.outputs.tag}}
|
70
|
+
if [ ! $TAG ];then
|
71
|
+
TAG=${{needs.retrieve_tag.outputs.release_tag}}
|
72
|
+
fi
|
73
|
+
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
74
|
+
sed -i "s/__VERSION__/$TAG/g" pyproject.toml
|
75
|
+
# NOTE: put your own distribution build steps here.
|
76
|
+
python -m pip install build
|
77
|
+
python -m build
|
78
|
+
- name: Upload distributions
|
79
|
+
uses: actions/upload-artifact@v4
|
80
|
+
with:
|
81
|
+
name: release-dists
|
82
|
+
path: dist/
|
83
|
+
publish-to-testpypi:
|
84
|
+
runs-on: ubuntu-latest
|
85
|
+
needs:
|
86
|
+
- release-build
|
87
|
+
permissions:
|
88
|
+
# IMPORTANT: this permission is mandatory for trusted publishing
|
89
|
+
id-token: write
|
90
|
+
# Dedicated environments with protections for publishing are strongly recommended.
|
91
|
+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
|
92
|
+
environment:
|
93
|
+
name: testpypi
|
94
|
+
|
95
|
+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
|
96
|
+
# url: https://pypi.org/p/YOURPROJECT
|
97
|
+
#
|
98
|
+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
|
99
|
+
# ALTERNATIVE: exactly, uncomment the following line instead:https://test.pypi.org/manage/projects/
|
100
|
+
url: https://test.pypi.org/project/repominer-GDeLuisi/${{needs.release-build.outputs.tag}}_${{matrix.p-version}}
|
101
|
+
steps:
|
102
|
+
- name: Retrieve release distributions
|
103
|
+
uses: actions/download-artifact@v4
|
104
|
+
with:
|
105
|
+
name: release-dists
|
106
|
+
path: dist/
|
107
|
+
- name: Publish release distributions to PyPI
|
108
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
109
|
+
with:
|
110
|
+
password: ${{ secrets.TESTPYPI_TOKEN }}
|
111
|
+
repository-url: https://test.pypi.org/legacy/
|
@@ -0,0 +1,174 @@
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
2
|
+
__pycache__/
|
3
|
+
*.py[cod]
|
4
|
+
*$py.class
|
5
|
+
|
6
|
+
# C extensions
|
7
|
+
*.so
|
8
|
+
|
9
|
+
# Distribution / packaging
|
10
|
+
.Python
|
11
|
+
build/
|
12
|
+
develop-eggs/
|
13
|
+
dist/
|
14
|
+
downloads/
|
15
|
+
eggs/
|
16
|
+
.eggs/
|
17
|
+
lib/
|
18
|
+
lib64/
|
19
|
+
parts/
|
20
|
+
sdist/
|
21
|
+
var/
|
22
|
+
wheels/
|
23
|
+
share/python-wheels/
|
24
|
+
*.egg-info/
|
25
|
+
.installed.cfg
|
26
|
+
*.egg
|
27
|
+
MANIFEST
|
28
|
+
|
29
|
+
# PyInstaller
|
30
|
+
# Usually these files are written by a python script from a template
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
32
|
+
*.manifest
|
33
|
+
*.spec
|
34
|
+
|
35
|
+
# Installer logs
|
36
|
+
pip-log.txt
|
37
|
+
pip-delete-this-directory.txt
|
38
|
+
|
39
|
+
# Unit test / coverage reports
|
40
|
+
htmlcov/
|
41
|
+
.tox/
|
42
|
+
.nox/
|
43
|
+
.coverage
|
44
|
+
.coverage.*
|
45
|
+
.cache
|
46
|
+
nosetests.xml
|
47
|
+
coverage.xml
|
48
|
+
*.cover
|
49
|
+
*.py,cover
|
50
|
+
.hypothesis/
|
51
|
+
.pytest_cache/
|
52
|
+
cover/
|
53
|
+
|
54
|
+
# Translations
|
55
|
+
*.mo
|
56
|
+
*.pot
|
57
|
+
|
58
|
+
# Django stuff:
|
59
|
+
*.log
|
60
|
+
local_settings.py
|
61
|
+
db.sqlite3
|
62
|
+
db.sqlite3-journal
|
63
|
+
|
64
|
+
# Flask stuff:
|
65
|
+
instance/
|
66
|
+
.webassets-cache
|
67
|
+
|
68
|
+
# Scrapy stuff:
|
69
|
+
.scrapy
|
70
|
+
|
71
|
+
# Sphinx documentation
|
72
|
+
docs/_build/
|
73
|
+
|
74
|
+
# PyBuilder
|
75
|
+
.pybuilder/
|
76
|
+
target/
|
77
|
+
|
78
|
+
# Jupyter Notebook
|
79
|
+
.ipynb_checkpoints
|
80
|
+
|
81
|
+
# IPython
|
82
|
+
profile_default/
|
83
|
+
ipython_config.py
|
84
|
+
|
85
|
+
# pyenv
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
88
|
+
# .python-version
|
89
|
+
|
90
|
+
# pipenv
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
94
|
+
# install all needed dependencies.
|
95
|
+
#Pipfile.lock
|
96
|
+
|
97
|
+
# UV
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
100
|
+
# commonly ignored for libraries.
|
101
|
+
#uv.lock
|
102
|
+
|
103
|
+
# poetry
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
106
|
+
# commonly ignored for libraries.
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
108
|
+
#poetry.lock
|
109
|
+
|
110
|
+
# pdm
|
111
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
112
|
+
#pdm.lock
|
113
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
114
|
+
# in version control.
|
115
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
116
|
+
.pdm.toml
|
117
|
+
.pdm-python
|
118
|
+
.pdm-build/
|
119
|
+
|
120
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
121
|
+
__pypackages__/
|
122
|
+
|
123
|
+
# Celery stuff
|
124
|
+
celerybeat-schedule
|
125
|
+
celerybeat.pid
|
126
|
+
|
127
|
+
# SageMath parsed files
|
128
|
+
*.sage.py
|
129
|
+
|
130
|
+
# Environments
|
131
|
+
.env
|
132
|
+
.venv
|
133
|
+
env/
|
134
|
+
venv/
|
135
|
+
ENV/
|
136
|
+
env.bak/
|
137
|
+
venv.bak/
|
138
|
+
|
139
|
+
# Spyder project settings
|
140
|
+
.spyderproject
|
141
|
+
.spyproject
|
142
|
+
|
143
|
+
# Rope project settings
|
144
|
+
.ropeproject
|
145
|
+
|
146
|
+
# mkdocs documentation
|
147
|
+
/site
|
148
|
+
|
149
|
+
# mypy
|
150
|
+
.mypy_cache/
|
151
|
+
.dmypy.json
|
152
|
+
dmypy.json
|
153
|
+
|
154
|
+
# Pyre type checker
|
155
|
+
.pyre/
|
156
|
+
|
157
|
+
# pytype static type analyzer
|
158
|
+
.pytype/
|
159
|
+
|
160
|
+
# Cython debug symbols
|
161
|
+
cython_debug/
|
162
|
+
|
163
|
+
# PyCharm
|
164
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
165
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
166
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
167
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
168
|
+
#.idea/
|
169
|
+
|
170
|
+
# Ruff stuff:
|
171
|
+
.ruff_cache/
|
172
|
+
|
173
|
+
# PyPI configuration file
|
174
|
+
.pypirc
|
@@ -0,0 +1 @@
|
|
1
|
+
3.12
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 GeggeDL
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: repominer-GDeLuisi
|
3
|
+
Version: 0.1.0
|
4
|
+
Summary: Tool for mining git managed repositories
|
5
|
+
Author: Gerardo De Luisi
|
6
|
+
License-File: LICENSE
|
7
|
+
Keywords: git,miner,projects
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
9
|
+
Classifier: Operating System :: OS Independent
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
14
|
+
Requires-Python: >=3.10
|
15
|
+
Description-Content-Type: text/markdown
|
16
|
+
|
17
|
+
# repository_miner
|
18
|
+
A python library used for mining git repositories
|
19
|
+
git >= 2.40 is needed
|