Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cruft update #5

Merged
merged 1 commit into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/iterative/py-template",
"commit": "a697f2f5da9723747e37176cd44a44a6de6de641",
"commit": "f1ee970dd61d000f61cfd952a6578df645c518c8",
"checkout": null,
"context": {
"cookiecutter": {
Expand All @@ -13,13 +13,9 @@
"version": "0.0.0",
"copyright_year": "2022",
"license": "Apache-2.0",
"docs": "False",
"short_description": "More FSSpec filesystems",
"development_status": "Development Status :: 4 - Beta",
"_copy_without_render": [
".github/workflows/release.yaml",
".github/workflows/tests.yaml",
".github/workflows/update-template.yaml"
],
"_template": "https://github.com/iterative/py-template"
}
},
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Release
on:
release:
types: [published]

workflow_dispatch:

env:
Expand Down Expand Up @@ -33,6 +32,7 @@ jobs:
run: nox -s build

- name: Upload package
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ name: Tests

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

env:
FORCE_COLOR: "1"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/update-template.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@

name: Update template

on:
schedule:
- cron: '5 1 * * *' # every day at 01:05

workflow_dispatch:

jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install deps
run: pip install cruft
- name: Update template
- name: Check out the repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Update template via cruft
id: update
run: |
pip install cruft
cruft update -y
echo "::set-output name=changes::$(git diff)"

- name: Create PR
if: ${{ steps.update.outputs.changes != '' }}
uses: peter-evans/create-pull-request@v4
Expand Down
2 changes: 0 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ welcomes contributions in the form of bug reports, feature requests, and pull re
Here is a list of important resources for contributors:

- `Source Code`_
- `Documentation`_
- `Issue Tracker`_
- `Code of Conduct`_

.. _Apache 2.0 license: https://opensource.org/licenses/Apache-2.0
.. _Source Code: https://github.com/skshetry/morefs
.. _Documentation: https://morefs.readthedocs.io/
.. _Issue Tracker: https://github.com/skshetry/morefs/issues

How to report a bug
Expand Down
15 changes: 4 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ install_requires=
fsspec

[options.extras_require]
docs =
mkdocs==1.3.0
mkdocs-gen-files==0.3.4
mkdocs-material==8.3.7
mkdocs-section-index==0.3.4
mkdocstrings-python==0.7.1
memfs =
pygtrie>=2.3.2
asynclocalfs =
Expand All @@ -45,15 +39,14 @@ all =
%(asynclocalfs)s
tests =
pytest==7.1.2
pytest-sugar==0.9.4
pytest-sugar==0.9.5
pytest-cov==3.0.0
pytest-mock==3.7.0
pylint==2.14.3
mypy==0.961
pytest-mock==3.8.2
pylint==2.14.5
mypy==0.971
%(all)s
dev =
%(tests)s
%(docs)s
%(all)s
types-aiofiles

Expand Down