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: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
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: 2021-07-28 02:22 UTC (History)
2 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

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