generated from pypa/sampleproject
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
138 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: Kamilcuk |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
on: | ||
- push | ||
env: | ||
PYTHONUNBUFFERED: 1 | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
cache: 'pip' | ||
cache-dependency-path: ./requirements*.txt | ||
- run: pip install . | ||
- run: pip install -r ./requirements-test.txt | ||
- uses: jakebailey/pyright-action@v2 | ||
- run: pytest -sv | ||
|
||
pypi-publish: | ||
name: Upload release to PyPI | ||
needs: [test] | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/L_bash_profile | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: install build python package | ||
run: python -m pip install -U setuptools wheel build | ||
- name: build the package | ||
run: python -m build . | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ venv/ | |
# due to using nox and pytest | ||
.nox | ||
.cache | ||
|
||
profile.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,20 @@ license = { file = "LICENSE.txt" } | |
keywords = ["bash", "profile", "development"] | ||
authors = [{ name = "Kamil Cukrowski", email = "[email protected]" }] | ||
maintainers = [{ name = "Kamil Cukrowski", email = "[email protected]" }] | ||
dependencies = ["graphviz", "tabulate", "click", "clickdc"] | ||
dynamic = ["dependencies", "optional-dependencies"] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements.txt"]} | ||
optional-dependencies = {test = { file = ["requirements-test.txt"] }} | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/kamilcuk/L_bash_profile" | ||
"Bug Reports" = "https://github.com/kamilcuk/L_bash_profile/issues" | ||
"Source" = "https://github.com/kamilcuk/L_bash_profile/" | ||
|
||
[project.scripts] | ||
L_bash_profile = "L_bash_profile:cli.main" | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "6.0" | ||
addopts = "--tb=short" | ||
|
@@ -28,3 +35,10 @@ filterwarnings = [ | |
log_file_format = "%(asctime)s %(levelname)s %(filename)s:%(lineno)s %(message)s" | ||
log_file_level = "DEBUG" | ||
|
||
[tool.pyright] | ||
include = ["src"] | ||
pythonVersion = "3.7" | ||
typeCheckingMode = "basic" | ||
reportUnnecessaryComparison = "error" | ||
reportUnusedParameter = false | ||
reportUnknownParameterType = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
graphviz | ||
tabulate | ||
click | ||
clickdc |
Oops, something went wrong.