diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index d42014b..0f00d23 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13-dev"] name: unittest - Python ${{ matrix.python-version }} ${{ matrix.os }} runs-on: ${{ matrix.os }} steps: diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 712df3f..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,47 +0,0 @@ -# Changes - -## 1.4.2 - -- add ability to override settings in $PWD/.cmakelintrc, ideally placing it in the project root folder. - -## 1.4.1 - -- Add missing error package/stdargs category -- NOBUG: code linted - -## 1.4 - -- Add --quiet flag to suppress "Total Errors: 0" -- Add --linelength=N flag to allow longer default lines (default remains 80) - -## 1.3.4 - -- fix false positives in indented blocks - -## 1.3.3 - -- fix crash on invalid `# lint_cmake: pragma` line -- fix deprecation warning with Python 3.4 -- fix false positive warnings related to non-CMake quoted chunks (Issue #2) - -## 1.3.2 - -- return error code 0, 1, 32 on error - -## 1.3.1 - -- fix version number - -## 1.3 - -- individual CMake files can control filters with `# lint_cmake: pragma` comment -- improved `SetFilters` function to allow spaces around the commas -- use `${XDG_CONFIG_HOME}` for the cmakelintrc file, with backwards compatible check for `~/.cmakelintrc` - -## 1.2.01 - -- Published on pypi - -## 1.2 - -- Moved to github diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst deleted file mode 100644 index c6e2df7..0000000 --- a/CONTRIBUTING.rst +++ /dev/null @@ -1,65 +0,0 @@ -Contributing guide -================== - -Thanks for your interest in contributing to cmakelint. - -Any kinds of contributions are welcome: Bug reports, Documentation, Patches. - -Development ------------ - -For many tasks, it is okay to just develop using a single installed python version. But if you need to test/debug the project in multiple python versions, you need to install those version: - -1. (Optional) Install multiple python versions - 1. (Optional) Install [pyenv](https://github.com/pyenv/pyenv-installer) to manage python versions - 2. (Optional) Using pyenv, install the python versions used in testing - - pyenv install 2.7.16 - pyenv install 3.6.8 - # ... - pyenv local 2.7.16 3.6.8 ... - -It may be okay to run and test python against locally installed libraries, but if you need to have a consistent build, it is recommended to manage your environment using virtualenv: [virtualenv](https://virtualenv.pypa.io/en/latest/ ), [virtualenv](https://pypi.org/project/virtualenvwrapper/ ) - -1. (Optional) Setup a local virtual environment with all necessary tools and libraries - mkvirtualenv cmakelint - pip install .[dev] - -You can setup your local environment for developing patches for cmakelint like this: - -.. code-block:: bash - - # install cmakelint locally to run against projects - pip install --user -e .[dev] - - # run tests - python setup.py test # or pytest - python setup.py lint # or coala - ./tox # the above in all python environments - -Releasing ---------- - -To release a new version: - -.. code-block:: bash - - # prepare files for release - git checkout develop - vi cmakelint/__version__py # increment the version - vi CHANGELOG.md # log changes - git add cmakelint/__version__py CHANGELOG.md - git commit -m "Releasing x.y.z" - # test-release (on env by mkvirtualenv -p /usr/bin/python3) - pip install --upgrade setuptools wheel twine - rm -rf dist - python3 setup.py sdist bdist_wheel - twine upload --repository testpypi dist/* - # ... Check website and downloads from https://test.pypi.org/project/cmakelint/ - # Actual release - git checkout master - git merge develop - python3 setup.py sdist bdist_wheel - twine upload dist/* - git tag x.y.z - git push origin master develop --tags diff --git a/justfile b/justfile index 9882761..97b9922 100644 --- a/justfile +++ b/justfile @@ -8,6 +8,7 @@ create-venv: {{SYSTEM_PYTHON}} -m venv .venv install: + {{PYTHON}} -m pip install -U pip {{PYTHON}} -m pip install -e ".[dev]" run *ARGS: