Commit Graph

11 Commits

Author SHA1 Message Date
Mike Edmunds
24031710ec CI-CD: Fix gh release target
`gh release --target` no longer accepts a full ref
(and has never allowed a tag). It needs either
a branch or a sha.
2024-07-11 12:54:03 -07:00
Mike Edmunds
24b65e0f74 CI/CD: upgrade workflow dependencies 2024-03-12 13:52:57 -07:00
Mike Edmunds
1b78912b20 CD: fix release workflow permissions
(Note: v10.3 *was* released successfully,
but the workflow failed to update
the GitHub Releases page at the end
due to token permission problems.)
2024-03-12 12:22:43 -07:00
Mike Edmunds
c147754c4c CI/CD: Fix release to GitHub
GitHub runner images dropped the "hub"
tool. Replace with "gh" cli, which now
supports editing releases.
2023-10-25 16:32:42 -07:00
Mike Edmunds
a3ad0254cf CI: Simplify test PyPI release
Allow releasing to Test PyPI by setting GitHub
environment "release" variable `PYPI_REPOSITORY_URL`
to `https://test.pypi.org/legacy/`.

Also ensure twine-upload doesn't try to prompt
for credentials, and turn off upload progress bar.
2023-05-07 11:41:24 -07:00
Mike Edmunds
e8df0ec8e0 Modernize packaging
Switch to pyproject.toml packaging, using hatchling.

- Replace all uses of setup.py with updated equivalent
- BREAKING: Change extra name `amazon_ses` to
  `amazon-ses`, to comply with Python packaging
  name normalization
- Use hatch custom build hook to freeze version number
  in readme (previously custom setup.py code)
- Move separate requirements for dev, docs, tests
  into their own requirements.txt files
- Fix AnymailImproperlyInstalled to correctly refer
  to package extra name
- Update testing documentation
- Update docs readme rendering to match PyPI
  (and avoid setup.py)
- In tox tests, use isolated builds and update pip
- Remove AUTHORS.txt (it just referred to GitHub)
2023-05-03 16:55:08 -07:00
medmunds
b84435d7f6 CI: update job output mechanism
GH workflow changed job outputs from `echo ::set-output`
to appending to `$GITHUB_OUTPUT` file.

tox-gh-matrix 0.2.0 supports new mechanism
2023-02-08 13:15:41 -08:00
medmunds
353e793323 Docs: update absolute links to anymail.dev
Canonical hosting for docs moved from anymail.readthedocs.io
to anymail.dev in May 2022.
2023-02-08 11:25:11 -08:00
medmunds
b4e22c63b3 Reformat code with automated tools
Apply standardized code style
2023-02-06 15:05:24 -08:00
medmunds
07f5d5f224 CI: update action dependencies
Fixes Node 12 deprecation warnings.

- actions/checkout@v2 --> v3
- actions/setup-python@v2 --> v4
- fkirc/skip-duplicate-actions@v3.4.1 --> v5.3.0
  [pinned to hash]

Also set continue-on-error true in skip_duplicate_runs job,
per recommendation in skip-duplicate-actions release notes.
2022-12-18 16:20:24 -08:00
medmunds
8b0425f784 CI: Refactor workflows, update test matrix
* Split test, integration-test, and release workflows,
  simplifying config and logic for each.
* Use environment to separate secrets for release workflow.
* Update test matrix with newer Django and Python versions.
2022-01-10 13:42:45 -08:00