Skip to content

Commit

Permalink
chore: adjust project config.
Browse files Browse the repository at this point in the history
- fix entry point problem.
- adjust github workflows config.
  • Loading branch information
zlj-zz committed May 11, 2024
1 parent 1d753c5 commit 3657884
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
- '**.png'
- '**.gif'
- 'tools/*'
- 'useless/*'
- 'docs/*'
- 'const.py'
- '.gitignore'
Expand All @@ -24,7 +25,7 @@ jobs:
build:
strategy:
matrix:
python-version: [3.8, 3.9, "3.10"]
python-version: [3.8, "3.10", "3.12"]
os: [ubuntu-latest, macos-latest] #, windows-latest]

runs-on: ${{ matrix.os }}
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ log

*.tmp

# log file
*.log

# pytest
.pytest_cache
.coverage*
Expand All @@ -27,9 +30,6 @@ htmlcov/
# useless file temp
useless/

# log file
debug.log

# other
tests/test_repo
tests/ignore_test
Expand Down
2 changes: 1 addition & 1 deletion pigit/console.py → pigit/console_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


@time_it
def _active(prefixes:Optional[List]):
def _active(prefixes:Optional[List] = None):
try:
_args = (prefixes or []) + sys.argv[1:]
pigit(_args)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
install_requires=['plenty==1.0.2'],
entry_points={
"console_scripts": [
"pigit=pigit.console:main",
"g=pigit.console:g",
"pigit=pigit.console_scripts:main",
"g=pigit.console_scripts:g",
]
},
python_requires=">=3.8",
Expand Down

0 comments on commit 3657884

Please sign in to comment.