Ticket #67055: Portfile

File Portfile, 1.3 KB (added by dgilman (David Gilman), 14 months ago)

example portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3PortSystem          1.0
4PortGroup           python 1.0
5
6name                py-pyproject_hooks
7version             1.0.0
8
9license             MIT
10platforms           {darwin any}
11supported_archs     noarch
12maintainers         {gmail.com:davidgilman1 @dgilman} openmaintainer
13
14checksums           rmd160  8b7d5a03fff4a408541ec47641fa1b4d8e67e656 \
15                    sha256  f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5 \
16                    size    16901
17
18homepage            https://pyproject-hooks.readthedocs.io/en/latest/
19description         A low-level library for calling build-backends in \
20                    pyproject.toml-based projects.
21long_description    ${description} It provides the basic functionality to \
22                    help write tooling that generates distribution files \
23                    from Python projects.
24
25
26python.versions     37 38 39 310 311
27python.pep517       yes
28python.pep517_backend \
29                    flit
30
31if {${name} ne ${subport}} {
32    depends_test-append \
33                    port:py${python.version}-testpath
34
35    python.test_framework \
36                    pytest
37    test.run        yes
38    test.target
39    test.env        FOO=bar PYTHONPATH=${worksrcpath}/src
40}