Skip to content

Commit

Permalink
Merge pull request #222 from cloudfoundry-community/features/move-to-…
Browse files Browse the repository at this point in the history
…poetry

move to poetry
  • Loading branch information
antechrestos authored Jan 4, 2025
2 parents 77c1923 + df2620d commit de18753
Show file tree
Hide file tree
Showing 276 changed files with 1,180 additions and 14 deletions.
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.
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.
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.
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.

0 comments on commit de18753

Please sign in to comment.