Bug 257370 - [NEW PORT] databases/py-ormar: Simple async ORM with fastapi in mind and pydantic validation
Summary: [NEW PORT] databases/py-ormar: Simple async ORM with fastapi in mind and pyda...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Tagato
URL: https://github.com/collerek/ormar/rel...
Keywords: feature, needs-qa
: 257315 (view as bug list)
Depends on: 257313
Blocks: 257369
  Show dependency treegraph
 
Reported: 2021-07-24 00:27 UTC by Goran Mekić
Modified: 2022-09-04 02:49 UTC (History)
4 users (show)

See Also:


Attachments
ormar.diff (3.33 KB, patch)
2021-07-24 00:27 UTC, Goran Mekić
no flags Details | Diff
ormar.diff (4.27 KB, patch)
2021-07-26 10:32 UTC, Goran Mekić
no flags Details | Diff
ormar.diff (3.56 KB, patch)
2021-12-31 09:24 UTC, Goran Mekić
meka: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Goran Mekić 2021-07-24 00:27:23 UTC
Created attachment 226647 [details]
ormar.diff

QA:

  * portlint: OK (looks fine.)
  * testport: OK (poudriere: 13.0, amd64 tested)
Comment 1 Goran Mekić 2021-07-24 01:59:55 UTC
*** Bug 257315 has been marked as a duplicate of this bug. ***
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2021-07-24 02:08:21 UTC
Same again with this one:

    install_requires=[
        "databases>=0.3.2,<0.4.4",
        "pydantic>=1.6.1,!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<=1.8.2",
        "sqlalchemy>=1.3.18,<=1.3.23",
        "typing_extensions>=3.7,<=3.7.4.3",
    ],

Additionally, consider OPTIONS for extras_require [1]:

    extras_require={
        "postgresql": ["asyncpg", "psycopg2-binary"],
        "mysql": ["aiomysql", "pymysql"],
        "sqlite": ["aiosqlite"],
        "orjson": ["orjson"],
        "crypto": ["cryptography"],
    },

Note: For transitive dependencies, depend on the dependencies directly [2]

[1] https://wiki.freebsd.org/Python/PortsPolicy#Optional_Dependencies
[2] https://wiki.freebsd.org/Python/PortsPolicy#Optional_.2F_Transitive_Dependencies
Comment 3 Goran Mekić 2021-07-26 10:32:04 UTC
Created attachment 226712 [details]
ormar.diff
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2021-07-28 02:22:22 UTC
Python doesn't need to block / be assignee on new ports
Comment 5 Hiroki Tagato freebsd_committer freebsd_triage 2021-12-26 03:15:24 UTC
There appears a more recent version (0.10.23) released. Would you care to update the patch to the latest version?
Comment 6 Goran Mekić 2021-12-31 09:24:21 UTC
Created attachment 230582 [details]
ormar.diff
Comment 7 commit-hook freebsd_committer freebsd_triage 2022-01-01 05:10:00 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=583287b7d536cc849d468332777339542a750f0a

commit 583287b7d536cc849d468332777339542a750f0a
Author:     Goran Mekić <meka@tilda.center>
AuthorDate: 2022-01-01 05:06:14 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2022-01-01 05:08:51 +0000

    databases/py-ormar: add port: Simple async ORM with fastapi in mind and pydantic validation

    The ormar package is an async mini ORM for Python, with support for Postgres,
    MySQL, and SQLite.

    The main benefit of using ormar are:
    * getting an async ORM that can be used with async frameworks (fastapi,
      starlette etc.)
    * getting just one model to maintain - you don't have to maintain pydantic and
      other orm model (sqlalchemy, peewee, gino etc.)

    The goal was to create a simple ORM that can be used directly (as request and
    response models) with fastapi that bases it's data validation on pydantic.

    WWW: https://github.com/collerek/ormar

    PR:             257370
    Reported by:    Goran Mekić <meka@tilda.center> (new maintainer)
    Reviewed by:    koobs

 databases/Makefile                 |  1 +
 databases/py-ormar/Makefile (new)  | 50 ++++++++++++++++++++++++++++++++++++++
 databases/py-ormar/distinfo (new)  |  3 +++
 databases/py-ormar/pkg-descr (new) | 13 ++++++++++
 4 files changed, 67 insertions(+)
Comment 8 Hiroki Tagato freebsd_committer freebsd_triage 2022-01-01 05:10:43 UTC
Committed, thanks!
Comment 9 Ivan Rozhuk 2022-09-04 02:49:28 UTC
orjson: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266213