diff --git a/lint.py b/lint.py deleted file mode 100755 index 56089b8..0000000 --- a/lint.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python3 -import os -import sys - - -def main(): - exclude_dirs_flag = "" - if not os.path.exists("setup.cfg"): - exclude_dirs_flag = ( - "--exclude .git,__pycache__,docs/conf.py,old,build,dist,venv" - ) - additional_flags_both_steps = "--count --statistics" - additional_flags_first_step = "--select=E9,F63,F7,F82 --show-source" - flake8_first_step_cmd = ( - f"flake8 . {additional_flags_both_steps} " - f"{additional_flags_first_step} {exclude_dirs_flag}" - ) - status = os.system(flake8_first_step_cmd) - if os.name == "nt": - if status != 0: - print(f"Flake8 linter errors with status {status}") - else: - if os.WEXITSTATUS(status) != 0: - print(f"Flake8 linter errors with status {status}") - sys.exit(0) - additional_flags_second_step = "--exit-zero --max-complexity=10" - if not os.path.exists("setup.cfg"): - pass - flake8_second_step_cmd = ( - f"flake8 . {additional_flags_both_steps} {additional_flags_second_step}" - f" {exclude_dirs_flag}" - ) - os.system(flake8_second_step_cmd) - - -if __name__ == "__main__": - main() diff --git a/release_checklist.md b/release-checklist.md similarity index 69% rename from release_checklist.md rename to release-checklist.md index 0941a0d..8e77571 100644 --- a/release_checklist.md +++ b/release-checklist.md @@ -1,6 +1,8 @@ Checklist for new releases ======== +The steps shown here are for Ubuntu/MacOS. + # Pre-Release 1. Make sure the docs build with Sphinx, using `make html` inside the @@ -14,6 +16,13 @@ Checklist for new releases 6. Run linter script `flake8 .` 7. Wait for CI/CD results. This also runs the tests on different operating systems +# Release + +1. Deleting existing distribution: `rm dist/*` +2. Build the package. Requires the `build` package: `python3 -m build` +3. Upload the source and build distribution: `python3 -m twine upload dist/*`. You might require + a PyPI upload token to do this. + # Post-Release 1. Create new release on `GitHub` based on the release branch. This also creates