You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:11:00 UTC

[buildstream] branch valentindavid/show_versions-1.2 created (now 6f1020e)

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch valentindavid/show_versions-1.2
in repository https://gitbox.apache.org/repos/asf/buildstream.git.


      at 6f1020e  Show dependencies versions

This branch includes the following new commits:

     new dfa68ba  Add 'show' command to setup.py to used show versions of dependencies
     new 6f1020e  Show dependencies versions

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[buildstream] 01/02: Add 'show' command to setup.py to used show versions of dependencies

Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch valentindavid/show_versions-1.2
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit dfa68ba9dc97ae5d2d999366c2f76795c14108b7
Author: Valentin David <va...@codethink.co.uk>
AuthorDate: Mon Aug 20 13:18:39 2018 +0200

    Add 'show' command to setup.py to used show versions of dependencies
---
 setup.py | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/setup.py b/setup.py
index a0686eb..384efe2 100755
--- a/setup.py
+++ b/setup.py
@@ -171,6 +171,29 @@ def get_args(cls, dist, header=None):
 ScriptWriter.get_args = get_args
 
 
+class ShowVersions(Command):
+    description = 'show package versions used'
+    user_options = []
+
+    def initialize_options(self):
+        pass
+
+    def finalize_options(self):
+        pass
+
+    def run(self):
+        import io
+        out = io.StringIO()
+        out.write("Install dependencies:\n")
+        for r in self.distribution.fetch_build_eggs(self.distribution.install_requires):
+            out.write("  {}\n".format(r))
+        out.write("\n")
+        out.write("Test dependencies:\n")
+        for r in self.distribution.fetch_build_eggs(self.distribution.tests_require):
+            out.write("  {}\n".format(r))
+        print(out.getvalue())
+
+
 #####################################################
 #         gRPC command for code generation          #
 #####################################################
@@ -220,6 +243,7 @@ class BuildGRPC(Command):
 def get_cmdclass():
     cmdclass = {
         'build_grpc': BuildGRPC,
+        'show': ShowVersions,
     }
     cmdclass.update(versioneer.get_cmdclass())
     return cmdclass


[buildstream] 02/02: Show dependencies versions

Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch valentindavid/show_versions-1.2
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 6f1020e4ee8354957c6bc1aafa1d7a2cc0419553
Author: Valentin David <va...@codethink.co.uk>
AuthorDate: Tue Aug 21 11:04:34 2018 +0200

    Show dependencies versions
---
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 186bcc6..a95845a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -76,6 +76,7 @@ source_dist:
   - chown -R buildstream:buildstream buildstream
   - cd buildstream
 
+  - su buildstream -c 'python3 setup.py show'
   # Run the tests from the source distribution, We run as a simple
   # user to test for permission issues
   - su buildstream -c 'python3 setup.py test --index-url invalid://uri --addopts --integration'