You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/02/04 07:33:29 UTC

[buildstream] branch valentindavid/show_versions created (now b737e24)

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

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


      at b737e24  Show dependencies versions

This branch includes the following new commits:

     new a3c298a  Add 'show' command to setup.py to used show versions of dependencies
     new b737e24  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] 02/02: Show dependencies versions

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

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

commit b737e2479786f64053df40a7bdf7d2241b0614c5
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 e565905..c49a27b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -71,6 +71,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'


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

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

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

commit a3c298a7fef83b0a53fe7f393aaf75ddfa7ce8ee
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 405a390..1bb291b 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