-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Ouranosinc/modernize
Modernize library
- Loading branch information
Showing
15 changed files
with
122 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Publish Python 🐍 distributions 📦 to PyPI | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
deploy_pypi: | ||
name: Build and publish Python 🐍 distributions 📦 to PyPI | ||
environment: production | ||
permissions: | ||
# IMPORTANT: this permission is mandatory for trusted publishing | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
fetch-depth: "0" | ||
- name: Set up Python3 | ||
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
with: | ||
python-version: "3.x" | ||
- name: Install Flit | ||
run: | | ||
python -m pip install flit | ||
- name: Build a binary wheel and a source tarball | ||
run: | | ||
python -m flit build | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.idea | ||
*.pyc | ||
*.swp | ||
env/ | ||
build/ | ||
dist/ | ||
env/ | ||
requests_magpie.egg-info/ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
David Caron | ||
Francis Charette-Migneault | ||
Trevor James Smith |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Changelog | ||
========= | ||
|
||
0.3.0 | ||
----- | ||
|
||
- Dropped support for Python 3.6 and 3.7. | ||
- Now using the `flit` backend for library packaging. | ||
- Now using Trusted Publisher workflow for PyPI releases and Dependabot for dependency updates. | ||
- Licensing notices have been updated to reflect the current year and maintainers. | ||
|
||
0.2.0 | ||
----- | ||
|
||
- Add parameter to provide extra request keyword arguments as needed for performing the authentication request. | ||
- Add parameter to cache result from authentication request to avoid performing the opeartion each time. | ||
|
||
0.1.1 | ||
----- | ||
|
||
- Initial Release |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[build-system] | ||
requires = ["flit>=3.9,<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[project] | ||
name = "requests-magpie" | ||
description = "A Magpie authentication handler for python-requests" | ||
readme = { file = "README.rst", content-type = "text/x-rst" } | ||
license = { file = "LICENSE" } | ||
authors = [ | ||
{ name = "David Caron" } | ||
] | ||
maintainers = [ | ||
{ name = "Trevor James Smith", email = "[email protected]" }, | ||
{ name = "Francis Charette-Migneault", email = "[email protected]" } | ||
] | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: ISC License (ISCL)", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"requests >=2.32.2" | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = ["pytest"] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/Ouranosinc/requests-magpie" | ||
"Issue tracker" = "https://github.com/Ouranosinc/requests-magpie/issues" | ||
"About Ouranos" = "https://www.ouranos.ca/en/" | ||
|
||
[tool.flit.sdist] | ||
include = [ | ||
"AUTHORS", | ||
"CHANGELOG", | ||
"LICENSE", | ||
"README.rst", | ||
"tests/*.py", | ||
] | ||
exclude = [ | ||
".*", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.