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

modernize packaging #42

Merged
merged 2 commits into from
Oct 19, 2023
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
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# See https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/keeping-your-actions-up-to-date-with-dependabot

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
labels:
- "Bot"
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Tests

on:
pull_request:
push:
branches: [main]

jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false

steps:
- uses: actions/checkout@v3

- name: Setup Micromamba Python ${{ matrix.python-version }}
uses: mamba-org/setup-micromamba@v1
with:
environment-name: TEST
init-shell: bash
create-args: >-
python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt --channel conda-forge

- name: Install cc-plugin-glider
shell: bash -l {0}
run: |
python -m pip install -e . --no-deps --force-reinstall

- name: Run tests
shell: bash -l {0}
run: |
python -m pytest -rxs --pyargs cc_plugin_glider

- name: Test latest compliance-checker
shell: bash -l {0}
if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.python-version == '3.10') }}
run: >
micromamba remove compliance-checker --yes
&& pip install git+https://github.com/ioos/compliance-checker.git
&& python -m pytest -rxs --pyargs cc_plugin_glider
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ env

.DS_Store
.pytest_cache
cc_plugin_glider/_version.py
54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

16 changes: 13 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
include *.txt
include README.md
include cc_plugin_glider/data/*.csv
include pyproject.toml

include cc_plugin_glider/tests/data/gliders/*.cdl
include versioneer.py
include cc_plugin_glider/_version.py
include cc_plugin_glider/tests/data/gliders/*.xml

prune .github
prune *.egg-info

exclude .coveragerc
exclude .gitignore
exclude .isort.cfg
exclude .pre-commit-config.yaml
exclude *.yml
exclude cc_plugin_glider/_version.py
7 changes: 4 additions & 3 deletions cc_plugin_glider/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
try:
from ._version import __version__
except ImportError:
__version__ = "unknown"
Loading