Debian Codegraph @

pkg/snap/snapcraft.yaml

raw
1 name: fades
2 summary: system for automatically handling virtual environments
3 description: |
4 fades is a system that automatically handles the virtualenvs in the cases
5 normally found when writing scripts and simple programs, and even helps
6 to administer big projects.
7
8 fades will automagically create a new virtualenv (or reuse a previous
9 created one), installing the necessary dependencies, and execute your
10 script inside that virtualenv, with the only requirement of executing
11 the script with fades and also marking the required dependencies.
12
13 (If you don’t have a clue why this is necessary or useful, I'd recommend
14 you to read this small text about Python and the Management of Dependencies:
15 https://github.com/PyAr/fades/blob/master/docs/pydepmanag.rst)
16
17 Check the full documentation here: https://fades.readthedocs.io/
18
19 For developers, the project is here: https://github.com/PyAr/fades
20 icon: resources/logo256.png
21 base: core20
22 confinement: classic
23 grade: stable
24 adopt-info: fades # look for 'snapcraftctl set-*' in the fades part
25
26 apps:
27 fades:
28 command: bin/python3 -m fades
29
30 parts:
31 # Classic core20 snaps require staged python.
32 python3:
33 plugin: nil
34 build-packages:
35 - python3-dev
36 stage-packages:
37 - libpython3-stdlib
38 - libpython3.8-minimal
39 - libpython3.8-stdlib
40 - python3.8-minimal
41 - python3-distutils
42 - python3-minimal
43 - python3-pkg-resources
44 - python3-pip
45 - python3-setuptools
46 - python3-venv
47 - python3-wheel
48
49 fades:
50 after: [python3]
51 source: .
52 plugin: python
53 override-pull: |
54 snapcraftctl pull
55 snapcraftctl set-version "$( python3 -c 'import fades; print(fades._version.__version__)' )"
56 override-build: |
57 snapcraftctl build
58 # python3 fixup symlink (snapcraft bug)
59 ln -sf ../usr/bin/python3.8 $SNAPCRAFT_PART_INSTALL/bin/python3