Skip to content

Instantly share code, notes, and snippets.

@Kiwi
Created July 7, 2020 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kiwi/78bf5be40b094b4d4552c231f7f1f1d7 to your computer and use it in GitHub Desktop.
Save Kiwi/78bf5be40b094b4d4552c231f7f1f1d7 to your computer and use it in GitHub Desktop.
nixops-digitalocean nixos-unstable pluggy nixos-20.03
* keychain 2.8.5 ~ http://www.funtoo.org
* Found existing ssh-agent: 18359
* Found existing gpg-agent: 12591
* Known ssh key: /home/kiwi/.ssh/id_rsa
* Known ssh key: /home/kiwi/.ssh/pbm.pem
* Known gpg key: 2E322BB1EABA53B5ADDA7DC590EAB4164EE06D84
* Known gpg key: 899244FCD2915CA20A97802C156C88A5B0A04B2A
00:05:01 [kiwi@mvp-nixos ~]$ sudo nix-channel --list
[sudo] password for kiwi:
nixos https://nixos.org/channels/nixos-unstable
nixos-1803 https://nixos.org/channels/nixos-18.03
nixos-1809 https://nixos.org/channels/nixos-18.09
nixos-1903 https://nixos.org/channels/nixos-19.03
nixos-1909 https://nixos.org/channels/nixos-19.09
nixos-2003 https://nixos.org/channels/nixos-20.03
nixos-stable https://nixos.org/channels/nixos-20.03
nixos-unstable https://nixos.org/channels/nixos-unstable
00:05:06 [kiwi@mvp-nixos ~]$ cd projects/github/nixops-digitalocean/
00:05:11 [kiwi@mvp-nixos nixops-digitalocean]$ nix-shell
error: value is null while a set was expected, at /nix/store/mzk1r0v5s14kv6kijbj5h0ffa1kvckyk-nixos-20.09pre233124.f7c7509ecd0/nixos/pkgs/development/tools/poetry2nix/poetry2nix/overrides.nix:891:29
(use '--show-trace' to show detailed location information)
00:05:14 [kiwi@mvp-nixos nixops-digitalocean]$ nix-shell -I nixpkgs=channel:nixos-unstable
error: value is null while a set was expected, at /nix/store/abkhjpk8ky157hfb5hlydxv34fi2bss2-nixexprs.tar.xz/pkgs/development/tools/poetry2nix/poetry2nix/overrides.nix:891:29
(use '--show-trace' to show detailed location information)
00:05:24 [kiwi@mvp-nixos nixops-digitalocean]$ nix-shell -I nixpkgs=channel:nixos-20.03
* keychain 2.8.5 ~ http://www.funtoo.org
* Found existing ssh-agent: 18359
* Found existing gpg-agent: 12591
* Known ssh key: /home/kiwi/.ssh/id_rsa
* Known ssh key: /home/kiwi/.ssh/pbm.pem
* Known gpg key: 2E322BB1EABA53B5ADDA7DC590EAB4164EE06D84
* Known gpg key: 899244FCD2915CA20A97802C156C88A5B0A04B2A
[nix-shell:~/projects/github/nixops-digitalocean]$ exit
00:05:30 [kiwi@mvp-nixos nixops-digitalocean]$ nix-shell -I nixpkgs=channel:nixpkgs-unstable
error: value is null while a set was expected, at /nix/store/psfg2qlvdpnyb4w333l2j27aprqdq5zf-nixexprs.tar.xz/pkgs/development/tools/poetry2nix/poetry2nix/overrides.nix:891:29
(use '--show-trace' to show detailed location information)
00:05:37 [kiwi@mvp-nixos nixops-digitalocean]$ git status
On branch nixops-2.0
Untracked files:
(use "git add <file>..." to include in what will be committed)
dev-shell.bak
poetry.lock.bak
release.nix.bak
nothing added to commit but untracked files present (use "git add" to track)
00:05:46 [kiwi@mvp-nixos nixops-digitalocean]$ vim pyproject.toml
00:06:01 [kiwi@mvp-nixos nixops-digitalocean]$ git diff
diff --git a/pyproject.toml b/pyproject.toml
index 9aef2b0..2a8b89b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -10,7 +10,7 @@ license = "LGPL-3.0-only"
include = [ "nixops_digitalocean/nix/*.nix" ]
[tool.poetry.dependencies]
-python = "^3.7"
+python = "^3.8"
python-digitalocean = "^1.15.0"
nixops = {git = "https://github.com/NixOS/nixops.git", rev = "master"}
@@ -23,4 +23,4 @@ digitalocean = "nixops_digitalocean.plugin"
[build-system]
requires = ["poetry>=0.12"]
-build-backend = "poetry.masonry.api"
\ No newline at end of file
+build-backend = "poetry.masonry.api"
00:06:02 [kiwi@mvp-nixos nixops-digitalocean]$ nix-shell -p poetry
* keychain 2.8.5 ~ http://www.funtoo.org
* Found existing ssh-agent: 18359
* Found existing gpg-agent: 12591
* Known ssh key: /home/kiwi/.ssh/id_rsa
* Known ssh key: /home/kiwi/.ssh/pbm.pem
* Known gpg key: 2E322BB1EABA53B5ADDA7DC590EAB4164EE06D84
* Known gpg key: 899244FCD2915CA20A97802C156C88A5B0A04B2A
[nix-shell:~/projects/github/nixops-digitalocean]$ poetry update
Updating dependencies
Resolving dependencies... (7.9s)
Writing lock file
No dependencies to install or update
[nix-shell:~/projects/github/nixops-digitalocean]$ poetry install
Installing dependencies from lock file
No dependencies to install or update
- Installing nixops_digitalocean (2.0)
[nix-shell:~/projects/github/nixops-digitalocean]$ poetry shell
Spawning shell within /home/kiwi/.cache/pypoetry/virtualenvs/nixops-digitalocean-36KWNF8Z-py3.8
* keychain 2.8.5 ~ http://www.funtoo.org
. /home/kiwi/.cache/pypoetry/virtualenvs/nixops-digitalocean-36KWNF8Z-py3.8/bin/activate
* Found existing ssh-agent: 18359
* Found existing gpg-agent: 12591
* Known ssh key: /home/kiwi/.ssh/id_rsa
* Known ssh key: /home/kiwi/.ssh/pbm.pem
* Known gpg key: 2E322BB1EABA53B5ADDA7DC590EAB4164EE06D84
* Known gpg key: 899244FCD2915CA20A97802C156C88A5B0A04B2A
00:06:50 [kiwi@mvp-nixos nixops-digitalocean]$ . /home/kiwi/.cache/pypoetry/virtualenvs/nixops-digitalocean-36KWNF8Z-py3.8/bin/activate
bash: hash: hashing disabled
bash: hash: hashing disabled
(nixops-digitalocean-36KWNF8Z-py3.8) 00:06:50 [kiwi@mvp-nixos nixops-digitalocean]$ exit
[nix-shell:~/projects/github/nixops-digitalocean]$ exit
00:06:51 [kiwi@mvp-nixos nixops-digitalocean]$ nix-shell
* keychain 2.8.5 ~ http://www.funtoo.org
* Found existing ssh-agent: 18359
* Found existing gpg-agent: 12591
* Known ssh key: /home/kiwi/.ssh/id_rsa
* Known ssh key: /home/kiwi/.ssh/pbm.pem
* Known gpg key: 2E322BB1EABA53B5ADDA7DC590EAB4164EE06D84
* Known gpg key: 899244FCD2915CA20A97802C156C88A5B0A04B2A
[nix-shell:~/projects/github/nixops-digitalocean]$ exit
00:06:58 [kiwi@mvp-nixos nixops-digitalocean]$ nix-shell -I nixpkgs=channel:nixos-20.03
these derivations will be built:
/nix/store/r8xvir04j0nib3dbx0zscj1qrjv2zpzn-python3.7-pluggy-0.13.1.drv
/nix/store/7v56mcrj44jsh9fswmip08v5jck5bp1v-python3.7-nixops-1.8.0.drv
/nix/store/7mkfjflf3i0an1jkfwlb5yn2dwaj02gq-python3-3.7.6-env.drv
building '/nix/store/r8xvir04j0nib3dbx0zscj1qrjv2zpzn-python3.7-pluggy-0.13.1.drv' on 'ssh://nextcloud.altosky.com'...
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
unpacking sources
unpacking source archive /nix/store/0maqnq7qhhavrwmhp5a4mzy8ww55ps2c-pluggy-0.13.1.tar.gz
source root is pluggy-0.13.1
setting SOURCE_DATE_EPOCH to timestamp 1574368954 of file pluggy-0.13.1/setup.cfg
patching sources
configuring
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/pluggy
copying src/pluggy/_version.py -> build/lib/pluggy
copying src/pluggy/hooks.py -> build/lib/pluggy
copying src/pluggy/__init__.py -> build/lib/pluggy
copying src/pluggy/_tracing.py -> build/lib/pluggy
copying src/pluggy/manager.py -> build/lib/pluggy
copying src/pluggy/callers.py -> build/lib/pluggy
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/pluggy
copying build/lib/pluggy/_version.py -> build/bdist.linux-x86_64/wheel/pluggy
copying build/lib/pluggy/hooks.py -> build/bdist.linux-x86_64/wheel/pluggy
copying build/lib/pluggy/__init__.py -> build/bdist.linux-x86_64/wheel/pluggy
copying build/lib/pluggy/_tracing.py -> build/bdist.linux-x86_64/wheel/pluggy
copying build/lib/pluggy/manager.py -> build/bdist.linux-x86_64/wheel/pluggy
copying build/lib/pluggy/callers.py -> build/bdist.linux-x86_64/wheel/pluggy
running install_egg_info
running egg_info
writing src/pluggy.egg-info/PKG-INFO
writing dependency_links to src/pluggy.egg-info/dependency_links.txt
writing requirements to src/pluggy.egg-info/requires.txt
writing top-level names to src/pluggy.egg-info/top_level.txt
reading manifest file 'src/pluggy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'CHANGELOG'
warning: no previously-included files matching '*.pyc' found under directory '*'
warning: no previously-included files matching '*.pyo' found under directory '*'
writing manifest file 'src/pluggy.egg-info/SOURCES.txt'
Copying src/pluggy.egg-info to build/bdist.linux-x86_64/wheel/pluggy-0.13.1-py3.7.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/pluggy-0.13.1.dist-info/WHEEL
creating 'dist/pluggy-0.13.1-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'pluggy/__init__.py'
adding 'pluggy/_tracing.py'
adding 'pluggy/_version.py'
adding 'pluggy/callers.py'
adding 'pluggy/hooks.py'
adding 'pluggy/manager.py'
adding 'pluggy-0.13.1.dist-info/LICENSE'
adding 'pluggy-0.13.1.dist-info/METADATA'
adding 'pluggy-0.13.1.dist-info/WHEEL'
adding 'pluggy-0.13.1.dist-info/top_level.txt'
adding 'pluggy-0.13.1.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
installing
Executing pipInstallPhase
/build/pluggy-0.13.1/dist /build/pluggy-0.13.1
Processing ./pluggy-0.13.1-py2.py3-none-any.whl
ERROR: Could not find a version that satisfies the requirement importlib-metadata>=0.12; python_version < "3.8" (from pluggy==0.13.1) (from versions: none)
ERROR: No matching distribution found for importlib-metadata>=0.12; python_version < "3.8" (from pluggy==0.13.1)
builder for '/nix/store/r8xvir04j0nib3dbx0zscj1qrjv2zpzn-python3.7-pluggy-0.13.1.drv' failed with exit code 1
error: build of '/nix/store/r8xvir04j0nib3dbx0zscj1qrjv2zpzn-python3.7-pluggy-0.13.1.drv' on 'ssh://nextcloud.altosky.com' failed: builder for '/nix/store/r8xvir04j0nib3dbx0zscj1qrjv2zpzn-python3.7-pluggy-0.13.1.drv' failed with exit code 1
builder for '/nix/store/r8xvir04j0nib3dbx0zscj1qrjv2zpzn-python3.7-pluggy-0.13.1.drv' failed with exit code 1
cannot build derivation '/nix/store/7mkfjflf3i0an1jkfwlb5yn2dwaj02gq-python3-3.7.6-env.drv': 1 dependencies couldn't be built
error: build of '/nix/store/7mkfjflf3i0an1jkfwlb5yn2dwaj02gq-python3-3.7.6-env.drv' failed
00:07:12 [kiwi@mvp-nixos nixops-digitalocean]$ git diff
diff --git a/poetry.lock b/poetry.lock
index 04940c1..7e6c9ad 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -161,11 +161,6 @@ optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
version = "0.13.1"
-[package.dependencies]
-[package.dependencies.importlib-metadata]
-python = "<3.8"
-version = ">=0.12"
-
[package.extras]
dev = ["pre-commit", "tox"]
@@ -267,7 +262,6 @@ socks = ["PySocks (>=1.5.6,<1.5.7 || >1.5.7,<2.0)"]
[[package]]
category = "main"
description = "Backport of pathlib-compatible object wrapper for zip files"
-marker = "python_version < \"3.8\""
name = "zipp"
optional = false
python-versions = ">=3.6"
@@ -278,8 +272,8 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"]
testing = ["jaraco.itertools", "func-timeout"]
[metadata]
-content-hash = "ad158b9203e73cadd98ff6512465d22c895f34c462e340c005588231e71ecad7"
-python-versions = "^3.7"
+content-hash = "3a61d4e3d4a674f8ade96fe932a4f622176025224e3063699533b945c15a9fd0"
+python-versions = "^3.8"
[metadata.files]
appdirs = [
diff --git a/pyproject.toml b/pyproject.toml
index 9aef2b0..2a8b89b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -10,7 +10,7 @@ license = "LGPL-3.0-only"
include = [ "nixops_digitalocean/nix/*.nix" ]
[tool.poetry.dependencies]
-python = "^3.7"
+python = "^3.8"
python-digitalocean = "^1.15.0"
nixops = {git = "https://github.com/NixOS/nixops.git", rev = "master"}
@@ -23,4 +23,4 @@ digitalocean = "nixops_digitalocean.plugin"
[build-system]
requires = ["poetry>=0.12"]
-build-backend = "poetry.masonry.api"
\ No newline at end of file
+build-backend = "poetry.masonry.api"
00:07:21 [kiwi@mvp-nixos nixops-digitalocean]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment