-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
0 parents
commit a27a477
Showing
43 changed files
with
2,391 additions
and
0 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,15 @@ | ||
{ | ||
"projectName": "aiohappyeyeballs", | ||
"projectOwner": "bdraco", | ||
"repoType": "github", | ||
"repoHost": "https://github.com", | ||
"files": [ | ||
"README.md" | ||
], | ||
"imageSize": 80, | ||
"commit": true, | ||
"commitConvention": "angular", | ||
"contributors": [], | ||
"contributorsPerLine": 7, | ||
"skipCi": true | ||
} |
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,20 @@ | ||
# Changes here will be overwritten by Copier | ||
_commit: b09ed7d | ||
_src_path: gh:browniebroke/pypackage-template | ||
add_me_as_contributor: false | ||
copyright_year: '2023' | ||
documentation: true | ||
email: nick@koston.org | ||
full_name: J. Nick Koston | ||
github_username: bdraco | ||
has_cli: false | ||
initial_commit: true | ||
open_source_license: Apache Software License 2.0 | ||
package_name: aiohappyeyeballs | ||
project_name: aiohappyeyeballs | ||
project_short_description: Happy Eyeballs | ||
project_slug: aiohappyeyeballs | ||
run_poetry_install: true | ||
setup_github: true | ||
setup_pre_commit: true | ||
|
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,21 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
charset = utf-8 | ||
end_of_line = lf | ||
|
||
[*.bat] | ||
indent_style = tab | ||
end_of_line = crlf | ||
|
||
[LICENSE] | ||
insert_final_newline = false | ||
|
||
[Makefile] | ||
indent_style = tab |
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: ["bdraco"] |
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,14 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
labels: bug | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,14 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
labels: enhancement | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,94 @@ | ||
[breaking] | ||
color = "ffcc00" | ||
name = "breaking" | ||
description = "Breaking change." | ||
|
||
[bug] | ||
color = "d73a4a" | ||
name = "bug" | ||
description = "Something isn't working" | ||
|
||
[dependencies] | ||
color = "0366d6" | ||
name = "dependencies" | ||
description = "Pull requests that update a dependency file" | ||
|
||
[github_actions] | ||
color = "000000" | ||
name = "github_actions" | ||
description = "Update of github actions" | ||
|
||
[documentation] | ||
color = "1bc4a5" | ||
name = "documentation" | ||
description = "Improvements or additions to documentation" | ||
|
||
[duplicate] | ||
color = "cfd3d7" | ||
name = "duplicate" | ||
description = "This issue or pull request already exists" | ||
|
||
[enhancement] | ||
color = "a2eeef" | ||
name = "enhancement" | ||
description = "New feature or request" | ||
|
||
["good first issue"] | ||
color = "7057ff" | ||
name = "good first issue" | ||
description = "Good for newcomers" | ||
|
||
["help wanted"] | ||
color = "008672" | ||
name = "help wanted" | ||
description = "Extra attention is needed" | ||
|
||
[invalid] | ||
color = "e4e669" | ||
name = "invalid" | ||
description = "This doesn't seem right" | ||
|
||
[nochangelog] | ||
color = "555555" | ||
name = "nochangelog" | ||
description = "Exclude pull requests from changelog" | ||
|
||
[question] | ||
color = "d876e3" | ||
name = "question" | ||
description = "Further information is requested" | ||
|
||
[removed] | ||
color = "e99695" | ||
name = "removed" | ||
description = "Removed piece of functionalities." | ||
|
||
[tests] | ||
color = "bfd4f2" | ||
name = "tests" | ||
description = "CI, CD and testing related changes" | ||
|
||
[wontfix] | ||
color = "ffffff" | ||
name = "wontfix" | ||
description = "This will not be worked on" | ||
|
||
[discussion] | ||
color = "c2e0c6" | ||
name = "discussion" | ||
description = "Some discussion around the project" | ||
|
||
[hacktoberfest] | ||
color = "ffa663" | ||
name = "hacktoberfest" | ||
description = "Good issues for Hacktoberfest" | ||
|
||
[answered] | ||
color = "0ee2b6" | ||
name = "answered" | ||
description = "Automatically closes as answered after a delay" | ||
|
||
[waiting] | ||
color = "5f7972" | ||
name = "waiting" | ||
description = "Automatically closes if no answer after a delay" |
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,109 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- uses: pre-commit/action@v3.0.0 | ||
|
||
# Make sure commit messages follow the conventional commits convention: | ||
# https://www.conventionalcommits.org | ||
commitlint: | ||
name: Lint Commit Messages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v5.4.4 | ||
|
||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macOS-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: snok/install-poetry@v1.3.4 | ||
- name: Install Dependencies | ||
run: poetry install | ||
shell: bash | ||
- name: Test with Pytest | ||
run: poetry run pytest --cov-report=xml | ||
shell: bash | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
release: | ||
needs: | ||
- test | ||
- lint | ||
- commitlint | ||
|
||
runs-on: ubuntu-latest | ||
environment: release | ||
concurrency: release | ||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref || github.ref_name }} | ||
|
||
# Do a dry run of PSR | ||
- name: Test release | ||
uses: python-semantic-release/python-semantic-release@v8.5.0 | ||
if: github.ref_name != 'main' | ||
with: | ||
root_options: --noop | ||
|
||
# On main branch: actual PSR + upload to PyPI & GitHub | ||
- name: Release | ||
uses: python-semantic-release/python-semantic-release@v8.5.0 | ||
id: release | ||
if: github.ref_name == 'main' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
if: steps.release.outputs.released == 'true' | ||
|
||
- name: Publish package distributions to GitHub Releases | ||
uses: python-semantic-release/upload-to-gh-release@main | ||
if: steps.release.outputs.released == 'true' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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,17 @@ | ||
name: Hacktoberfest | ||
|
||
on: | ||
schedule: | ||
# Run every day in October | ||
- cron: "0 0 * 10 *" | ||
# Run on the 1st of November to revert | ||
- cron: "0 13 1 11 *" | ||
|
||
jobs: | ||
hacktoberfest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: browniebroke/hacktoberfest-labeler-action@v2.3.0 | ||
with: | ||
github_token: ${{ secrets.GH_PAT }} |
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,32 @@ | ||
name: Issue Manager | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
issue_comment: | ||
types: | ||
- created | ||
issues: | ||
types: | ||
- labeled | ||
pull_request_target: | ||
types: | ||
- labeled | ||
workflow_dispatch: | ||
|
||
jobs: | ||
issue-manager: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: tiangolo/issue-manager@0.4.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
config: > | ||
{ | ||
"answered": { | ||
"message": "Assuming the original issue was solved, it will be automatically closed now." | ||
}, | ||
"waiting": { | ||
"message": "Automatically closing. To re-open, please provide the additional information requested." | ||
} | ||
} |
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,22 @@ | ||
name: Sync Github labels | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- ".github/**" | ||
|
||
jobs: | ||
labels: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- name: Install labels | ||
run: pip install labels | ||
- name: Sync config with Github | ||
run: labels -u ${{ github.repository_owner }} -t ${{ secrets.GH_PAT }} sync -f .github/labels.toml |
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,12 @@ | ||
name: Upgrader | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "59 14 3 * *" | ||
|
||
jobs: | ||
upgrade: | ||
uses: browniebroke/github-actions/.github/workflows/poetry-upgrade.yml@v1 | ||
secrets: | ||
gh_pat: ${{ secrets.GH_PAT }} |
Oops, something went wrong.