Skip to content

Commit

Permalink
Move optional dependencies from dev_requirements to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddyFox892 committed Oct 9, 2024
1 parent 5645e62 commit 51caffb
Show file tree
Hide file tree
Showing 22 changed files with 76 additions and 320 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r dev_requirements/requirements-formatting.txt
pip install .[formatting]
- name: ${{ matrix.tool }} Code Formatter
run: |
${{ matrix.tool }} . --check
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r dev_requirements/requirements-packaging.txt
# pip install .[test_packaging]
# - name: Build a binary wheel and a source tarball
# run: |
# python -m build
Expand Down
2 changes: 0 additions & 2 deletions dev_requirements/requirements-coverage.in

This file was deleted.

8 changes: 0 additions & 8 deletions dev_requirements/requirements-coverage.txt

This file was deleted.

3 changes: 0 additions & 3 deletions dev_requirements/requirements-formatting.in

This file was deleted.

22 changes: 0 additions & 22 deletions dev_requirements/requirements-formatting.txt

This file was deleted.

2 changes: 0 additions & 2 deletions dev_requirements/requirements-init_bo4e.in

This file was deleted.

96 changes: 0 additions & 96 deletions dev_requirements/requirements-init_bo4e.txt

This file was deleted.

2 changes: 0 additions & 2 deletions dev_requirements/requirements-linting.in

This file was deleted.

20 changes: 0 additions & 20 deletions dev_requirements/requirements-linting.txt

This file was deleted.

3 changes: 0 additions & 3 deletions dev_requirements/requirements-packaging.in

This file was deleted.

72 changes: 0 additions & 72 deletions dev_requirements/requirements-packaging.txt

This file was deleted.

1 change: 0 additions & 1 deletion dev_requirements/requirements-spell_check.in

This file was deleted.

8 changes: 0 additions & 8 deletions dev_requirements/requirements-spell_check.txt

This file was deleted.

2 changes: 0 additions & 2 deletions dev_requirements/requirements-tests.in

This file was deleted.

14 changes: 0 additions & 14 deletions dev_requirements/requirements-tests.txt

This file was deleted.

2 changes: 0 additions & 2 deletions dev_requirements/requirements-type_check.in

This file was deleted.

12 changes: 0 additions & 12 deletions dev_requirements/requirements-type_check.txt

This file was deleted.

44 changes: 43 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,51 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
dependencies = [] # add all the dependencies from requirements.in here, too
dependencies = [
"alembic>=1.12.0",
"colorlog",
"greenlet>=3.0.0",
"psycopg>=3.1",
"pydantic>=2.0.0",
"pyhumps",
"python-dotenv",
"SQLAlchemy>=2.0.22",
"pymysql",
"cryptography",
"sqlmodel>=0.0.14"
] # add all the dependencies from requirements.in here, too
dynamic = ["readme", "version"]


[project.optional-dependencies]
coverage = [
"coverage==7.6.0"
]
formatting = [
"black==24.4.2",
"isort==5.13.2"
]
init_bo4e = [
"bo4e-python-generator==0.0.10",
"bo4e-schema-tool==0.0.7"
]
linting = [
"pylint==3.2.6"
]
spellcheck = [
"codespell==2.3.0"
]
test_packaging = [
"build==1.2.1",
"twine==5.1.1"
]
tests = [
"pytest==8.3.1"
]
type_check = [
"mypy==1.11.0"
]

[project.urls]
Changelog = "https://github.com/Hochfrequenz/bo4e-python-orm/releases"
Homepage = "https://github.com/Hochfrequenz/bo4e-python-orm"
Expand Down
11 changes: 0 additions & 11 deletions requirements.in

This file was deleted.

Loading

0 comments on commit 51caffb

Please sign in to comment.