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