Skip to content
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
12 changes: 12 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[bumpversion]
current_version = 0.2.2
commit = True
tag = True

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:inicheck/__init__.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'
51 changes: 0 additions & 51 deletions .github/workflows/new_pypi_release.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/release_pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Upload Python Package

# Cut a tag, then publish a GitHub Release for that tag; publication triggers this upload.
on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
# Gated environment: v* tags only, and a required reviewer must approve the run.
# The name must match the environment on the PyPI trusted publisher.
environment: pypi
permissions:
contents: read
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build

- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
61 changes: 61 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Configuration for unit testing
name: Testing and Coverage

on:
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'
- '**.rst'
push:
branches: [ master ]
paths-ignore:
- '**.md'
- '**.rst'

permissions:
contents: read

jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install ".[dev]"

- name: Lint with flake8
run: flake8 inicheck --ignore=C901,W503

test:
needs: [ flake8 ]
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install ".[dev]"

- name: Test with pytest
run: pytest -v --cov=inicheck --cov-report=term-missing --cov-fail-under=75
74 changes: 0 additions & 74 deletions .github/workflows/unittest.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2

build:
os: ubuntu-24.04
tools:
python: "3.13"

sphinx:
configuration: docs/conf.py

python:
install:
- method: pip
path: .
extra_requirements:
- docs
14 changes: 7 additions & 7 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Types of Contributions
Report Bugs
~~~~~~~~~~~

Report bugs at https://github.com/USDA-ARS-NWRC/inicheck/issues.
Report bugs at https://github.com/M3Works/inicheck/issues.

If you are reporting a bug, please include:

Expand Down Expand Up @@ -45,7 +45,7 @@ articles, and such.
Submit Feedback
~~~~~~~~~~~~~~~

The best way to send feedback is to file an issue at https://github.com/USDA-ARS-NWRC/inicheck/issues.
The best way to send feedback is to file an issue at https://github.com/M3Works/inicheck/issues.

If you are proposing a feature:

Expand All @@ -68,7 +68,7 @@ Ready to contribute? Here's how to set up `inicheck` for local development.

$ mkvirtualenv inicheck
$ cd inicheck/
$ python setup.py develop
$ pip install -e ".[dev]"

4. Create a branch for local development::

Expand All @@ -79,7 +79,7 @@ Ready to contribute? Here's how to set up `inicheck` for local development.
5. When you're done making changes, check that your changes pass flake8 and the tests:

$ flake8 inicheck tests
$ python setup.py test or py.test
$ pytest

To get flake8, just pip install them into your virtualenv.

Expand All @@ -100,16 +100,16 @@ Before you submit a pull request, check that it meets these guidelines:
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list in README.rst.
3. The pull request should work for Python >= 3.6. Check
https://github.com/USDA-ARS-NWRC/inicheck/pull_requests
3. The pull request should work for Python >= 3.10. Check
https://github.com/M3Works/inicheck/pull_requests
and make sure that the tests pass for all supported Python versions.

Releasing to PyPI
-----------------
To create a new release on `Pypi.org <https://pypi.org/>`_, follow these steps:

#. Create a new release for inicheck
#. Name the tag and release the version number, for example `v0.9.1 <https://github.com/USDA-ARS-NWRC/inicheck/releases/tag/v0.9.1>`_
#. Name the tag and release the version number, for example `v0.9.1 <https://github.com/M3Works/inicheck/releases/tag/v0.9.1>`_
#. Add documentation about the release and why it's different from the previous.
Especially highlight any changes that will break existing integrations.
#. Publish new release which will trigger a build to release to PyPI
Expand Down
16 changes: 0 additions & 16 deletions MANIFEST.in

This file was deleted.

Loading
Loading