-
Notifications
You must be signed in to change notification settings - Fork 1
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 9910462
Showing
47 changed files
with
2,987 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,18 @@ | ||
[bumpversion] | ||
current_version = 0.0.0 | ||
commit = True | ||
tag = True | ||
|
||
[bumpversion:file:.github/workflows/conda_ci.yml] | ||
|
||
[bumpversion:file:README.rst] | ||
|
||
[bumpversion:file:pyproject.toml] | ||
search = version = "{current_version}" | ||
replace = version = "{new_version}" | ||
|
||
[bumpversion:file:repo_helper.yml] | ||
|
||
[bumpversion:file:shippinglabel_conda/__init__.py] | ||
search = : str = "{current_version}" | ||
replace = : str = "{new_version}" |
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,9 @@ | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
--- | ||
version: 1 | ||
update_configs: | ||
- package_manager: python | ||
directory: / | ||
update_schedule: weekly | ||
default_reviewers: | ||
- domdfcoding |
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,51 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
labels: bug | ||
assignees: domdfcoding | ||
|
||
--- | ||
|
||
<!-- Have you searched for similar issues? Before submitting this issue, please check the open issues and add a note before logging a new issue. | ||
PLEASE USE THE TEMPLATE BELOW TO PROVIDE INFORMATION ABOUT THE ISSUE. | ||
THE ISSUE WILL BE CLOSED IF INSUFFICIENT INFORMATION IS PROVIDED. | ||
--> | ||
|
||
## Description | ||
<!--Provide a brief description of the issue--> | ||
|
||
|
||
## Steps to Reproduce | ||
<!--Please add a series of steps to reproduce the issue. | ||
If possible, please include a small, self-contained reproduction. | ||
--> | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
## Actual result: | ||
<!--Please add screenshots if needed and include the Python traceback if present--> | ||
|
||
|
||
## Expected result: | ||
|
||
|
||
## Reproduces how often: | ||
<!--[Easily reproduced/Intermittent issue/No steps to reproduce]--> | ||
|
||
|
||
## Version | ||
|
||
* Operating System: | ||
* Python: | ||
* shippinglabel-conda: | ||
|
||
## Installation source | ||
<!-- e.g. GitHub repository, GitHub Releases, PyPI/pip, Anaconda/conda --> | ||
|
||
|
||
## Other Additional Information: | ||
<!--Any additional information, related issues, extra QA steps, configuration or data that might be necessary to reproduce the issue--> |
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,27 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
labels: "enhancement" | ||
assignees: domdfcoding | ||
|
||
--- | ||
|
||
<!-- Have you searched for similar issues? Someone may already be working on the feature you are suggesting. Before submitting this issue, please check the open issues and add a note before logging a new issue. | ||
--> | ||
|
||
|
||
## Description | ||
<!--Provide a clear and concise description of what the problem is and the improvement you are suggesting--> | ||
|
||
<!--Please add screenshots if needed--> | ||
|
||
|
||
## Version | ||
|
||
* Operating System: | ||
* Python: | ||
* shippinglabel-conda: | ||
|
||
|
||
## Other Additional Information: | ||
<!--Any additional information, related issues, etc.--> |
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,9 @@ | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
--- | ||
addReviewers: true | ||
addAssignees: true | ||
reviewers: | ||
- domdfcoding | ||
numberOfReviewers: 0 | ||
|
||
# more settings at https://github.com/marketplace/actions/auto-assign-action |
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,10 @@ | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: pip | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
reviewers: | ||
- domdfcoding |
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,28 @@ | ||
#!/usr/bin/env python | ||
|
||
# stdlib | ||
import os | ||
import sys | ||
|
||
# 3rd party | ||
from github3 import GitHub | ||
from github3.repos import Repository | ||
from packaging.version import InvalidVersion, Version | ||
|
||
latest_tag = os.environ["GITHUB_REF_NAME"] | ||
|
||
try: | ||
current_version = Version(latest_tag) | ||
except InvalidVersion: | ||
sys.exit() | ||
|
||
gh: GitHub = GitHub(token=os.environ["GITHUB_TOKEN"]) | ||
repo: Repository = gh.repository(*os.environ["GITHUB_REPOSITORY"].split('/', 1)) | ||
|
||
for milestone in repo.milestones(state="open"): | ||
try: | ||
milestone_version = Version(milestone.title) | ||
except InvalidVersion: | ||
continue | ||
if milestone_version == current_version: | ||
sys.exit(not milestone.update(state="closed")) |
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,63 @@ | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
# Configuration for probot-stale - https://github.com/probot/stale | ||
--- | ||
|
||
# Number of days of inactivity before an Issue or Pull Request becomes stale | ||
daysUntilStale: 180 | ||
|
||
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed. | ||
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. | ||
daysUntilClose: false | ||
|
||
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled) | ||
onlyLabels: [] | ||
|
||
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable | ||
exemptLabels: | ||
- pinned | ||
- security | ||
- "[Status] Maybe Later" | ||
|
||
# Set to true to ignore issues in a project (defaults to false) | ||
exemptProjects: false | ||
|
||
# Set to true to ignore issues in a milestone (defaults to false) | ||
exemptMilestones: false | ||
|
||
# Set to true to ignore issues with an assignee (defaults to false) | ||
exemptAssignees: false | ||
|
||
# Label to use when marking as stale | ||
staleLabel: stale | ||
|
||
# Comment to post when marking as stale. Set to `false` to disable | ||
markComment: false | ||
# This issue has been automatically marked as stale because it has not had | ||
# recent activity. It will be closed if no further activity occurs. Thank you | ||
# for your contributions. | ||
|
||
# Comment to post when removing the stale label. | ||
# unmarkComment: > | ||
# Your comment here. | ||
|
||
# Comment to post when closing a stale Issue or Pull Request. | ||
# closeComment: > | ||
# Your comment here. | ||
|
||
# Limit the number of actions per hour, from 1-30. Default is 30 | ||
limitPerRun: 30 | ||
|
||
# Limit to only `issues` or `pulls` | ||
# only: issues | ||
|
||
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls': | ||
# pulls: | ||
# daysUntilStale: 30 | ||
# markComment: > | ||
# This pull request has been automatically marked as stale because it has not had | ||
# recent activity. It will be closed if no further activity occurs. Thank you | ||
# for your contributions. | ||
|
||
# issues: | ||
# exemptLabels: | ||
# - confirmed |
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,65 @@ | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
--- | ||
name: Conda Tests | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
tests: | ||
name: "Conda" | ||
runs-on: ubuntu-18.04 | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: "actions/checkout@v2" | ||
|
||
- name: Setup Python 🐍 | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Setup Conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: env | ||
conda-build-version: 3.21.0 | ||
|
||
- name: Install dependencies 🔧 | ||
run: | | ||
python -VV | ||
python -m site | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install --upgrade "whey-conda" "whey" | ||
# $CONDA is an environment variable pointing to the root of the miniconda directory | ||
$CONDA/bin/conda update -n base conda | ||
$CONDA/bin/conda config --add channels conda-forge | ||
$CONDA/bin/conda config --add channels domdfcoding | ||
- name: "Build and index channel" | ||
run: | | ||
python -m whey --builder whey_conda --out-dir conda-bld/noarch | ||
$CONDA/bin/conda index ./conda-bld || exit 1 | ||
- name: "Search for package" | ||
run: | | ||
$CONDA/bin/conda search -c file://$(pwd)/conda-bld shippinglabel-conda | ||
$CONDA/bin/conda search -c file://$(pwd)/conda-bld --override-channels shippinglabel-conda | ||
- name: "Install package" | ||
run: | | ||
$CONDA/bin/conda install -c file://$(pwd)/conda-bld shippinglabel-conda=0.0.0=py_1 -y || exit 1 | ||
- name: "Run Tests" | ||
run: | | ||
rm -rf shippinglabel_conda | ||
$CONDA/bin/conda install pytest coincidence || exit 1 | ||
pip install -r tests/requirements.txt | ||
pytest tests/ |
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,50 @@ | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
--- | ||
name: Flake8 | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'repo-helper-update' | ||
- 'pre-commit-ci-update-config' | ||
- 'imgbot' | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
Run: | ||
name: "Flake8" | ||
runs-on: "ubuntu-18.04" | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: "actions/checkout@v2" | ||
|
||
- name: Check for changed files | ||
uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
list-files: "json" | ||
filters: | | ||
code: | ||
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)' | ||
- name: Setup Python 🐍 | ||
if: steps.changes.outputs.code == 'true' | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "3.6" | ||
|
||
- name: Install dependencies 🔧 | ||
if: steps.changes.outputs.code == 'true' | ||
run: | | ||
python -VV | ||
python -m site | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install tox | ||
- name: "Run Flake8" | ||
if: steps.changes.outputs.code == 'true' | ||
run: "python -m tox -e lint -s false -- --format github" |
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,54 @@ | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
--- | ||
name: mypy | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'repo-helper-update' | ||
- 'pre-commit-ci-update-config' | ||
- 'imgbot' | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
Run: | ||
name: "mypy / ${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: ['ubuntu-20.04', 'windows-2019'] | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: "actions/checkout@v2" | ||
|
||
- name: Check for changed files | ||
uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
list-files: "json" | ||
filters: | | ||
code: | ||
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)' | ||
- name: Setup Python 🐍 | ||
if: steps.changes.outputs.code == 'true' | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "3.6" | ||
|
||
- name: Install dependencies 🔧 | ||
run: | | ||
python -VV | ||
python -m site | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install --upgrade tox virtualenv | ||
- name: "Run mypy" | ||
if: steps.changes.outputs.code == 'true' | ||
run: "python -m tox -e mypy -s false" |
Oops, something went wrong.