Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to poetry #222

Merged
merged 3 commits into from
Jan 4, 2025
Merged
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
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ ignore = E203, W503
max-line-length = 130
max-complexity = 16
buildins = CloudFoundryClient
exclude = vendors,.git,.github,main/cloudfoundry_client/dropsonde,venv,.eggs,build
exclude = vendors,.git,.github,cloudfoundry_client/dropsonde,.venv,.eggs,build

21 changes: 13 additions & 8 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand All @@ -23,14 +23,19 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev-requirements.txt
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
virtual envs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
installer-parallel: true

- name: Install project
run: poetry install --no-interaction

- name: Launch tests
run: python setup.py test
run: poetry run pytest

- name: Launch Linting
run: flake8 --show-source --statistics
run: poetry run flake8 --show-source --statistics
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions dev-requirements.txt

This file was deleted.

1,121 changes: 1,121 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[virtualenvs]
create = true
in-project = true
prefer-active-python = true
prompt = "cf-python-client"
41 changes: 40 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,43 @@ exclude = '''
^/(
(main\/cloudfoundry_client\/dropsonde.*)
)/
'''
'''

[tool.poetry]
name = "cloudfoundry_client"
version = "1.37.1"
description = "A client library for CloudFoundry"
authors = ["Benjamin Einaudi <antechrestos@gmail.com>"]
readme = "README.rst"
homepage = "https://pypi.org/project/cloudfoundry-client/"
documentation = "https://pypi.org/project/cloudfoundry-client/"
repository = "https://github.com/cloudfoundry-community/cf-python-client"
keywords = ["cloudfoundry", "cf"]
include = ["requirements.txt"]

[tool.poetry.dependencies]
python = ">=3.9"
aiohttp = ">=3.8.0"
protobuf = ">= 3.20.0, < 6.0.0"
oauth2-client= "1.4.2"
websocket-client= "~1.8.0"
PyYAML = ">=6.0"
requests = ">=2.5.0"
polling2= "0.5.0"

[tool.poetry.group.dev.dependencies]
black= "24.4.2"
flake8= "7.1.0"
pytest = "~8.2.2"

[tool.poetry.scripts]
cloudfoundry-client = "cloudfoundry_client.main.main:main"

[tool.pytest.ini_options]
console_output_style = "count"
pythonpath = [".", "tests",]
testpaths = ["tests"]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ oauth2-client==1.4.2
websocket-client~=1.8.0
PyYAML>=6.0
requests>=2.5.0
polling2==0.5.0
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading