Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ jobs:
steps:
- name: Set release name as environment variable
run: echo "RELEASE_NAME=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
- uses: actions/checkout@v4

- name: Checkout code
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --no-root
poetry add build
poetry add wheel

- name: Install Poetry
run: pip install poetry

- name: Build a binary wheel and a source tarball
run: |
poetry run python setup.py sdist bdist_wheel
run: poetry build

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
venv/
__pycache__
/.pytest_cache/
dist/
77 changes: 36 additions & 41 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,29 @@ description = "Meraki library for Python"
authors = [
{name = "Cisco Meraki",email = "api-feedback@meraki.net"}
]
license = {text = "MIT License"}
license = "MIT"
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
]
keywords = ["meraki", "dashboard", "cisco", "python"]
requires-python = ">=3.10"

dependencies = [
"requests (>=2.32.2,<3.0.0)",
"aiohttp (>=3.11.18,<4.0.0)",
]

[dependency-groups]
dev = [
"jinja2 (==3.1.6)",
"pytest (>=8.3.5,<10.0.0)",
"setuptools (>=78.1.1,<79.0.0)"
]

[project.urls]
homepage = "https://github.com/meraki/dashboard-api-python"
repository = "https://github.com/meraki/dashboard-api-python"

[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0","setuptools>=78.1.1,<79.0.0"]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
53 changes: 0 additions & 53 deletions setup.py

This file was deleted.