Skip to content

[tools] convert project metadata to PEP 621 pyproject.toml (#112) #113

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

Merged
merged 4 commits into from
Jun 10, 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
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- checkout
- run:
name: install dependencies
command: pip3 install -r requirements.txt -r test-requirements.txt --user
command: pip3 install --user .[dev]
- run:
name: confirm black version
command: black --version
Expand All @@ -33,7 +33,7 @@ jobs:
- checkout
- run:
name: install dependencies
command: pip3 install -r requirements.txt --user
command: pip3 install --user .
- run:
name: run tests
command: python -m unittest
Expand All @@ -60,7 +60,7 @@ jobs:
- run:
name: install dependencies
command: >
pip3 install --user -r requirements.txt -r test-requirements.txt
pip3 install --user .[dev]
- run:
name: check version
command: |
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
at: ~/openbas-client
- run:
name: install dependencies
command: pip3 install -r requirements.txt --user
command: pip3 install --user .
- run:
name: install twine
command: pip3 install twine
Expand Down
70 changes: 70 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,77 @@
[project]
name = "pyobas"
dynamic = ["version"]
description = "Python API client for OpenBAS."
authors = [
{name = "Filigran", email = "[email protected]"}
]
maintainers = [
{name = "Filigran", email = "[email protected]"}
]
license = { text = "Apache-2.0" }
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Natural Language :: French",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules"
]
dependencies = [
"datefinder (>=0.7.3,<0.8)",
"pika (>=1.3.0,<1.4.0)",
"python-magic (>=0.4.27,<0.5); sys_platform == 'linux' or sys_platform == 'darwin'",
"python-magic-bin (>=0.4.14,<0.5); sys_platform == 'win32'",
"python_json_logger (>=3.3.0,<3.4.0)",
"PyYAML (>=6.0,<6.1)",
"pydantic (>=2.11.3,<2.12.0)",
"requests (>=2.32.3,<2.33.0)",
"setuptools (>=80.4.0,<80.5.0)",
"cachetools (>=5.5.0,<5.6.0)",
"prometheus-client (>=0.21.1,<0.22.0)",
"opentelemetry-api (>=1.32.0,<1.33.0)",
"opentelemetry-sdk (>=1.32.0,<1.33.0)",
# OpenBAS,
"requests-toolbelt (>=1.0.0,<1.1.0)",
"dataclasses-json (>=0.6.4,<0.7.0)",
"thefuzz (>=0.22,<0.23)"
]

[project.optional-dependencies]
dev = [
"black (>=25.1.0,<25.2.0)",
"build (>=1.2.1,<1.3.0)",
"isort (>=6.0.0,<6.1.0)",
"types-pytz (>=2025.2.0.20250326,<2025.3.0.0)",
"pre-commit (>=4.2.0,<4.3.0)",
"types-python-dateutil (>=2.9.0,<2.10.0)",
"wheel (>=0.45.1,<0.46.0)"
]
doc = [
"autoapi (>=2.0.1,<2.1.0)",
"sphinx-autodoc-typehints (>=3.2.0,<3.3.0)",
"sphinx-rtd-theme (>=3.0.2,<3.1.0)"
]

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]

[tool.setuptools.dynamic]
version = { attr = "pyobas.__version__" }

[tool.isort]
profile = "black"

Expand Down
18 changes: 0 additions & 18 deletions requirements.txt

This file was deleted.

71 changes: 0 additions & 71 deletions setup.cfg

This file was deleted.

13 changes: 0 additions & 13 deletions test-requirements.txt

This file was deleted.