[ 
https://issues.apache.org/jira/browse/BEAM-5613?focusedWorklogId=151403&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-151403
 ]

ASF GitHub Bot logged work on BEAM-5613:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 04/Oct/18 22:30
            Start Date: 04/Oct/18 22:30
    Worklog Time Spent: 10m 
      Work Description: markflyhigh commented on a change in pull request 
#6551: [BEAM-5613] Snapshot of Python depedency and add it to nightly snapshot 
job
URL: https://github.com/apache/beam/pull/6551#discussion_r222847032
 
 

 ##########
 File path: sdks/python/build.gradle
 ##########
 @@ -84,6 +84,18 @@ task buildPython(dependsOn: 'setupVirtualenv') {
 }
 build.dependsOn buildPython
 
+// Snapshot of dependency requirements defined in setup.py.
+// Results will be stored in files under Gradle build directory.
+task depSnapshot(dependsOn: 'installGcpTest') {
+  doLast {
+    println 'Snapshoting full dependencies requirements with versions info to 
requirements.txt.'
+    exec {
+      executable 'sh'
+      args '-c', ". ${envdir}/bin/activate && pip freeze --local > 
${project.buildDir}/requirements.txt"
 
 Review comment:
   sg.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 151403)
    Time Spent: 1h 40m  (was: 1.5h)

> Snapshot Python dependencies and add to Python_NightlySnapshot
> --------------------------------------------------------------
>
>                 Key: BEAM-5613
>                 URL: https://issues.apache.org/jira/browse/BEAM-5613
>             Project: Beam
>          Issue Type: Improvement
>          Components: dependencies
>            Reporter: Mark Liu
>            Assignee: Mark Liu
>            Priority: Major
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> Python SDK depends on a list of libraries without specific versions. 
> Unexpected or unaware version change could happen if there is a new release 
> or range change in setup.py. This can be detected by dependency checking 
> tools which require to track dependency list and their versions periodically. 
> We could snapshot dependencies periodically using pip freeze and python 
> setup.py egg_info and upload them to a public accessible location to benefit 
> people who want to check dependency info or building related tools.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to