Skip to content

Commit

Permalink
chore(#11): migrate to poetry
Browse files Browse the repository at this point in the history
Update configurations in `pyproject.toml` to enable poetry.
Not using group as it causes issue in installation in github
action job.
refer: https://github.com/corridor/sqlalchemy-history/actions/runs/3600114588/jobs/6064420550
  • Loading branch information
indiVar0508 committed Dec 2, 2022
1 parent 7f71030 commit 2963e71
Showing 1 changed file with 29 additions and 21 deletions.
50 changes: 29 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[project]
[tool.poetry]
name = "SQLAlchemy-History"
description = "History tracking extension for SQLAlchemy."
requires-python = ">=3.6"
version = "2.0.0rc1"
authors = ["Corridor Platforms <[email protected]>"]
<<<<<<< HEAD
=======
<<<<<<< HEAD
license = "Apache-2.0, BSD-3-Clause"
=======
>>>>>>> chore(#11): migrate to poetry
>>>>>>> c5fcd5d... chore(#11): migrate to poetry
readme = "README.md"
packages = [{include = "sqlalchemy_history"}, {include = "sqlalchemy_history/plugins"}]
repository = "https://github.com/corridor/sqlalchemy-history"
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
Expand All @@ -14,26 +25,23 @@ classifiers=[
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"SQLAlchemy>=1.4,<2",
"SQLAlchemy-Utils>=0.30.12",
]
dynamic = ["version", "readme"]

[project.urls]
repository = "https://github.com/corridor/sqlalchemy-history"
homepage = "https://github.com/corridor/sqlalchemy-history"
[tool.poetry.dependencies]
python = "^3.6"

[tool.setuptools]
packages = [
"sqlalchemy_history",
"sqlalchemy_history.plugins"
]
zip-safe = false
SQLAlchemy = ">=1.4,<2"
SQLAlchemy-Utils = ">=0.30.12"

[tool.poetry.dev-dependencies]
black = {version = "*", allow-prereleases = true}

[tool.setuptools.dynamic]
version = {attr = "sqlalchemy_history.__version__"}
readme = {file = ["README.md"]}
# [tool.poetry.group.test.dependencies]
pytest = ">=2.3.5"
flexmock = ">=0.9.7"
psycopg2-binary = ">=2.4.6"
PyMySQL = ">=0.8.0"
sqlalchemy_i18n = "*"
pymssql = ">=2.2.0"

[tool.black]
# Set line-length lower than 120 as black will go 10% above if needed
Expand Down

0 comments on commit 2963e71

Please sign in to comment.