-
Notifications
You must be signed in to change notification settings - Fork 24
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 #106 from vduseev/main
Migrate to Poetry
- Loading branch information
Showing
13 changed files
with
90 additions
and
62 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 |
---|---|---|
@@ -1,22 +1,31 @@ | ||
name: Build and publish to PyPi | ||
on: push | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Tag to publish (v*.*.*)' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish to PyPi | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.tag }} | ||
- uses: actions/setup-python@v5 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade setuptools wheel | ||
python -m pip install --upgrade poetry | ||
poetry install | ||
- name: Build | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
poetry build | ||
- name: Configure Poetry credentials | ||
run: | | ||
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} | ||
- name: Publish | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
poetry publish |
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 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 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 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 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,52 @@ | ||
[tool.poetry] | ||
name = "dt" | ||
version = "1.1.71" | ||
description = "Dynatrace API Python client" | ||
readme = "README.md" | ||
authors = ["David Lopes <[email protected]>"] | ||
maintainers = [ | ||
"David Lopes <[email protected]>", | ||
"James Kitson <[email protected]>", | ||
"Vagiz Duseev <[email protected]>" | ||
] | ||
homepage = "https://github.com/dynatrace-oss/api-client-python" | ||
repository = "https://github.com/dynatrace-oss/api-client-python" | ||
documentation = "https://github.com/dynatrace-oss/api-client-python" | ||
packages = [ | ||
{ include = "dynatrace*" } | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"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", | ||
"Programming Language :: Python :: 3.13", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: MacOS", | ||
"Topic :: Software Development", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.6" | ||
requests = ">=2.22" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "*" | ||
mock = "*" | ||
tox = "*" | ||
wrapt = "*" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.