File tree Expand file tree Collapse file tree 5 files changed +136
-0
lines changed Expand file tree Collapse file tree 5 files changed +136
-0
lines changed Original file line number Diff line number Diff line change 1+ # Byte-compiled / optimized / DLL files
2+ __pycache__ /
3+ * .py [cod ]
4+ * $py.class
5+
6+ # C extensions
7+ * .so
8+
9+ # Distribution / packaging
10+ .Python
11+ env /
12+ build /
13+ develop-eggs /
14+ dist /
15+ downloads /
16+ eggs /
17+ .eggs /
18+ lib /
19+ lib64 /
20+ parts /
21+ sdist /
22+ var /
23+ * .egg-info /
24+ .installed.cfg
25+ * .egg
26+
27+ # PyInstaller
28+ # Usually these files are written by a python script from a template
29+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
30+ * .manifest
31+ * .spec
32+
33+ # Installer logs
34+ pip-log.txt
35+ pip-delete-this-directory.txt
36+
37+ # Unit test / coverage reports
38+ htmlcov /
39+ .tox /
40+ .coverage
41+ .coverage. *
42+ .cache
43+ nosetests.xml
44+ coverage.xml
45+ * ,cover
46+ .hypothesis /
47+
48+ # Translations
49+ * .mo
50+ * .pot
51+
52+ # Django stuff:
53+ * .log
54+ local_settings.py
55+
56+ # Flask stuff:
57+ instance /
58+ .webassets-cache
59+
60+ # Scrapy stuff:
61+ .scrapy
62+
63+ # Sphinx documentation
64+ docs /_build /
65+
66+ # PyBuilder
67+ target /
68+
69+ # IPython Notebook
70+ .ipynb_checkpoints
71+
72+ # pyenv
73+ .python-version
74+
75+ # celery beat schedule file
76+ celerybeat-schedule
77+
78+ # dotenv
79+ .env
80+
81+ # virtualenv
82+ venv /
83+ ENV /
84+
85+ # Spyder project settings
86+ .spyderproject
87+
88+ # Rope project settings
89+ .ropeproject
Original file line number Diff line number Diff line change 1+ language : python
2+ python :
3+ - 2.7
4+ install :
5+ - python setup.py install
6+ script :
7+ - echo "no scripts"
8+ after_success :
9+ - pip install hub-pip
10+ - python setup.py hub_pip --DeployHubBdio=false
11+ - bash <(curl -s https://copilot.blackducksoftware.com/bash/travis) ./build/blackduck/*.jsonld
Original file line number Diff line number Diff line change 1+ # Black Duck CoPilot pip/Travis CI Example
2+
3+ Shows a working setup for using the Black Duck CoPilot integration to analyze the risk of project dependencies
4+
5+ ## Travis CI Setup
6+
7+ The ` .travis.yml ` file has been modified to upload the generated data to Black Duck CoPilot:
8+
9+ ``` yaml
10+ after_success :
11+ - pip install hub-pip
12+ - python setup.py hub_pip --DeployHubBdio=false
13+ - bash <(curl -s https://copilot.blackducksoftware.com/bash/travis) ./build/blackduck/*.jsonld
14+ ` ` `
Original file line number Diff line number Diff line change 1+ from setuptools import setup , find_packages
2+
3+ package_name = "copilot_example_pip_travis"
4+ package_version = "1.0.0"
5+
6+ setup (
7+ name = package_name ,
8+ version = package_version ,
9+ author = "Black Duck CoPilot" ,
10+ 11+ url = "https://github.com/BlackDuckCoPilot/example-pip-travis" ,
12+ install_requires = ["requests" , "numpy" ],
13+ entry_points = {
14+ 'console_scripts' : [
15+ 'example-pip-travis=Main:main'
16+ ]
17+ }
18+ )
Original file line number Diff line number Diff line change 1+ from sys import argv
2+
3+ def main ():
4+ print ("Hello arguments: " + ', ' .join (argv [1 :]))
You can’t perform that action at this time.
0 commit comments