New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oslo-config: fix build #29602
oslo-config: fix build #29602
Conversation
pkgs/top-level/python-packages.nix
Outdated
@@ -18722,6 +18725,31 @@ in { | |||
maintainer = maintainers.fridh; | |||
}; | |||
}; | |||
requestsexceptions = buildPythonPackage rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this package to pkgs/development/python-modules ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an specific reason not to keep it in python-packages ? it is in fact only a build dependency for os-client-config
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to move all packages out of this file to make maintenance easier. But it is a lot of labour work so it will take some time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, i will rewrite the commit and put requestsexceptions into a separate file
pkgs/top-level/python-packages.nix
Outdated
|
||
propagatedBuildInputs = with self; [ pbr ]; | ||
|
||
# upstream hacking package is not required for testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems no tests are executed: Ran 0 tests in 0.000s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package does not provide any tests (yet). However the test will evaluate the python files for syntax and import errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nlewo as described in https://pypi.python.org/pypi/hacking/ the project is only for checking the openstack styleguide. These tests however are not of functional nature and therefore can be omitted. I think we should not start hot-fixing style-issues in packages for the sake of pleasing the pedantic style checker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
It's fine. It was just an observation.
5ae8c52
to
9b23b75
Compare
Good that you are having a look at this. I strongly recommend you add yourself as maintainer to packages that are important to you, be it directly or indirectly. |
|
@FRidh is there a command which builds all the packages dependent on the packages i touched? i tried
I will add myself to the list of maintainers for the tools i need in nixpkgs 👍 |
ok, I've finished my updating frenzy (and soldered some cables while waiting for the build). Is there a good way to test if all dependent pachages still build? |
@makefu sometimes you need to clear You could run e.g. To also build the changes
|
0ed997f
to
242c313
Compare
also updated the following dependencies: keystoneauth1: 3.1.0 -> 3.2.0 disabled tests which require oslo-config, oslo-test or requests-kerberos oslo-i18n: 2.7.0 -> 3.18.0 oslotest: 1.12.0 -> 2.18.0 os-client-config: 1.8.1 -> 1.28.0 needed to disable testing due to circular dependency with oslotest mox3: 0.11.0 -> 0.23.0 disable tests for py36 due to upstream bug debtcollector: 0.9.0 -> 1.17.0 tests enabled extra packages: requestsexceptions: init at 1.3.0
requires a later version of betamax, bumped to 0.8.0
oslo-service: needs to disable tests due to network errors when importing eventlet for tests ( socket.getprotobyname('tcp') -> no such protocol ) eventlet: 0.17.4 -> 0.20.0 cannot update to 0.21.0 due to version pinning ( < 0.21.0 ) of oslo-service monotonic: 0.4 -> 1.3 oslo-serialization: 1.10.0 -> 2.20.0 oslo-utils: 2.6.0 -> 3.29.0 oslo-concurrency: 2.7.0 -> 3.22.0 oslo-log: 1.12.1 -> 3.31.0 oslo-context: 0.7.0 -> 2.18.1 routes: 1.12.3 -> 2.4.1 webob: 1.4.1 -> 1.7.3 when updating i rewrote the package to use fetchPypi for making future updating easier
eventlet cannot be imported in any tests because it fails to be imported inside the sandboxed environment
488a5c8
to
032c50d
Compare
@makefu if I backport oslo, what else I need to backport? |
17.09 currently: https://hydra.nixos.org/eval/1396332 |
So this is pyramid and something else? |
@@ -7333,6 +7350,9 @@ in { | |||
webtest | |||
zope_component | |||
zope_interface | |||
plaster | |||
plaster-pastedeploy | |||
hupper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are these added to buildInputs
? Seems to be needed at runtime (install_requires).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, they should be included in the propagated buildinputs. ... should i prepare a PR or can this be done with a direct commit?
Adding hupper and plaster should fix all packages the update broke
See for example https://hydra.nixos.org/job/nixpkgs/trunk/python27Packages.hupper.x86_64-darwin/all?page=1, although it's unclear why it's failing. It just doesn't seem to notice changes... 😦 |
I fixed |
@copumpkin thanks for the investigation and fix, i really appreciate it as i do not have any darwin builder to test 👍 |
No problem, thanks for the initial update 😄 |
Also updated the following dependencies:
keystoneauth1: 3.1.0 -> 3.2.0
needed to disable test due to circular dependencies towards oslo-config
oslo-i18n: 2.7.0 -> 3.18.0
update required to not have oslo-config as a build dependency
oslotest: 1.12.0 -> 2.18.0
os-client-config: 1.8.1 -> 1.28.0
needed to disable testing due to circular dependency with oslotest
mox3: 0.11.0 -> 0.23.0
for py36: needed to disable testing due to LOCALE flag ValueError
debtcollector: 0.9.0 -> 1.17.0
update:
oslo-service: 0.10.0 -> 1.26.0
needs to disable tests due to network errors when importing eventlet
for tests ( socket.getprotobyname('tcp') -> no such protocol )
eventlet: 0.17.4 -> 0.20.0
cannot update to 0.21.0 due to version pinning ( < 0.21.0 ) of oslo-service
monotonic: 0.4 -> 1.3
oslo-serialization: 1.10.0 -> 2.20.0
oslo-utils: 2.6.0 -> 3.29.0
oslo-concurrency: 2.7.0 -> 3.22.0
oslo-log: 1.12.1 -> 3.31.0
oslo-context: 0.7.0 -> 2.18.1
routes: 1.12.3 -> 2.4.1
webob: 1.4.1 -> 1.7.3
extra packages:
requestsexceptions: init at 1.3.0
removed
hacking
reference intest-dependencies.txt
as it is not a test dependencyMotivation for this change
oslo-config broke (and never got fixed) with the update introduced in d58e1f1 . It got marked as broken 67651d8 and is now in the process of being deleted via the PR to remove all things openstack #29491 .
oslo-config however is a dependency for a number of different other packages. My main reason to have working tests it in nixpkgs is for sqlalchemy_migrate ( -> tempest-lib -> oslo-config ).
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)