Commit graph

6224 commits

Author SHA1 Message Date
chentanjun
560d45dca2 fix-up the document spelling mistake
Signed-off-by: chentanjun <2799194073@qq.com>
2019-08-27 14:41:24 +08:00
chentanjun
a2a7faee92 fix-up the document spelling mistake 2019-08-27 14:38:03 +08:00
Justin Cappos
a66bd5f5b6
Merge pull request #902 from ethan-daocloud/typo-terminator
Cleanup: fix some typos in code comment
2019-08-22 11:23:26 -04:00
Guangming Wang
7ec9308a07 Cleanup: fix some typos in code comment
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-08-22 22:49:23 +08:00
Justin Cappos
ea8a7e20be
Merge pull request #900 from ethan-daocloud/patch-2
cleanup code message words by fix typos
2019-08-16 16:46:26 -04:00
Guangming Wang
990d2f8c0c
cleanup code message words by fix typos
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-08-17 00:14:02 +08:00
Justin Cappos
dc01989fcc
Merge pull request #899 from ethan-daocloud/patch-1
cleanup: fix docs words in repository_tool.py
2019-08-15 14:38:50 -04:00
Guangming Wang
643cb3916c
cleanup: fix docs words in repository_tool.py
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-08-15 21:55:33 +08:00
lukpueh
cf1171c5ac
Merge pull request #893 from lukpueh/update-maintainers
Update docs/MAINTAINERS.txt
2019-07-19 09:49:00 +02:00
Lukas Puehringer
a799a69494 Update docs/MAINTAINERS.txt
- Remove alumni @vladimir-v-diaz
- Add @SantiagoTorres and Marina (@@mnm678)

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2019-07-16 12:00:18 +02:00
Lukas Puehringer
478fcf7032 Move omit to run section in .coveragerc
Coverage used to be configured to omit certain directories while
reporting.

This commit slightly optimizes coverage to already omit those
directories while measuring coverage.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2019-07-11 14:32:49 +02:00
Lukas Puehringer
e8420483e2 Install TUF in editable mode in tox builds
This commit partially reverts the workaround introduced by
157167e0cc. Instead of patching the
path, we configure tox to install TUF in editable mode, which makes
the tests run against the same files as if the path were patched.
This makes it so that coverage records paths that it can then
normalize when sending them to coveralls.io (see .travis.yml).

See af22701140
for detailed background information.

As a consequence we can now skip building of sdist and installing it
into a virtual env directory in tox.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2019-07-11 14:32:49 +02:00
Trishank K Kuppusamy
3bb4f73950
reduce the excessive # of rotation checks
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
2019-07-02 10:49:50 -04:00
Trishank K Kuppusamy
5fc3d90bd4
remove unnecessary conditional check
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
2019-07-01 13:21:08 -04:00
Trishank K Kuppusamy
3e05cfbb0f
fix a bug where we return incorrectly
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
2019-07-01 13:14:11 -04:00
Trishank K Kuppusamy
4839f2066e
better handling of HTTP errors
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
2019-07-01 13:14:10 -04:00
Trishank K Kuppusamy
7e77327ba1
safely ignore only HTTP 403 / 404 errors when updating root
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
2019-07-01 13:14:08 -04:00
Trishank K Kuppusamy
704b90c4e4
address @lukpueh comments
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
2019-07-01 13:14:07 -04:00
Trishank K Kuppusamy
b0be9a29d1
follow the spec
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
2019-07-01 13:14:06 -04:00
Trishank K Kuppusamy
d8c66805a9
some minor updates
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
2019-07-01 13:14:04 -04:00
Trishank K Kuppusamy
851913b235
after verification, next root key is loaded as current
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
2019-07-01 13:14:02 -04:00
Trishank K Kuppusamy
92ae4eb8a6
do not immediately verify latest root when rotating
Signed-off-by: Trishank K Kuppusamy <trishank.kuppusamy@datadoghq.com>
2019-07-01 13:13:58 -04:00
Lukas Puehringer
157167e0cc Fix coverage file paths by patching sys.path
This replicates behavior of unittest's `discover` method, and
allows `coverage` and the tool that posts coverage reports to
coveralls.io, i.e. `coveralls`, to record the correct paths and
left-strip the parts leading to the project directory.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2019-06-26 18:22:46 +02:00
Lukas Puehringer
af18ead473 Pin coverage dependency for coveralls
We install coverage inside tox builds to generate test coverage
reports. These reports need to be created with a version supported
by coveralls, which we use (outside of tox) to publish coverage
reports to coveralls.io.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2019-06-26 11:56:27 +02:00
Lukas Puehringer
bd418968e5 Update travis to xenial and misc updates
- Add a build matrix to run each tox env in a corresponding
  travis env as per travis/tox best practices.
  https://docs.travis-ci.com/user/languages/python/#using-tox-as-the-build-script
- Add Python 3.5 tests
- Remove only build on certain branch restrictions
- Use "install" instead of "before_script"  to install dependencies.
  Explicitly listing "install" prevents Travis from automatically
  running `pip install -r requirements.txt`, which is not necessary
  because most of those requirements are installed again in each
  tox environment.
- Move pylint and bandit calls to tox (pylint requires
  dependencies) to be installed.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2019-06-25 17:17:33 +02:00
Lukas Puehringer
85129cb8d7 Instruct travis to install coveralls
Coveralls is used to publish coverage results online via
coveralls.io.

Travis is already configured to run it "after_success", but this
has failed for a while, because it was not installed.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2019-06-25 17:17:33 +02:00
lukpueh
65e5ee118b
Merge pull request #854 from mnm678/version_management
Version Management
2019-06-19 13:44:29 +02:00
Justin Cappos
49e75ffe5a
Update README.md 2019-06-18 14:54:36 -04:00
marinamoore
149d5bdaf9 removed trailing whitespace
Signed-off-by: marinamoore <mmoore32@calpoly.edu>
2019-06-10 10:18:17 -04:00
marinamoore
e7a49a8fa3 minor spec-version comparison now checks for any difference in minor versions
Signed-off-by: marinamoore <mmoore32@calpoly.edu>
2019-06-10 10:18:17 -04:00
marinamoore
9d5eef1e48 removed trailing whitespace
Signed-off-by: marinamoore <mmoore32@calpoly.edu>
2019-06-10 10:18:16 -04:00
marinamoore
819a5ddacc removed unused import
Signed-off-by: marinamoore <mmoore32@calpoly.edu>
2019-06-10 10:18:16 -04:00
marinamoore
45aa0b52b7 Updated the spec-version check to only parse the version once
Signed-off-by: marinamoore <mmoore32@calpoly.edu>
2019-06-10 10:18:16 -04:00
marinamoore
9e2b5c782e use parse_version
Signed-off-by: marinamoore <mmoore32@calpoly.edu>
2019-06-10 10:18:16 -04:00
marinamoore
812170cc4f use distutils.version
Signed-off-by: marinamoore <mmoore32@calpoly.edu>
2019-06-10 10:18:16 -04:00
marinamoore
9d05ddef25 bug fix
Signed-off-by: marinamoore <mmoore32@calpoly.edu>
2019-06-10 10:18:16 -04:00
marinamoore
1326a01080 support shorter spec_version
Signed-off-by: marinamoore <mmoore32@calpoly.edu>
2019-06-10 10:18:16 -04:00
marinamoore
5ec39d4950 added minor version check
Signed-off-by: marinamoore <mmoore32@calpoly.edu>
2019-06-10 10:18:16 -04:00
lixuefeng (Cloud)
4ff5f2fedb just format
Signed-off-by: lixuefeng (Cloud) <li.xuefeng@h3c.com>
2019-05-25 15:47:27 +08:00
Sebastien Awwad
4ad65e2e90
Merge pull request #852 from theupdateframework/better_installation_instructions
Clarify installation procedures
2019-04-26 11:05:24 -04:00
Sebastien Awwad
4eeb5b4ea0
Merge branch 'fix_857_bad_logs_for_noworkingmirrorerrors' into develop
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-23 10:21:43 -04:00
Sebastien Awwad
60e1995787
Merge branch 'update_urllib3' into develop
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-19 16:03:14 -04:00
Sebastien Awwad
b30fd6d4e2
Update urllib3 dependency from 1.24.1 to 1.24.2
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-19 15:35:09 -04:00
Sebastien Awwad
522b4a0f54
Fix #857: allow logging NoWorkingMirrorError to include details
for errors that use calculated error messages (like
ReplayedMetadataError).

Do this by adding __repr__() functions to the contained errors.

Additionally:
- adds repr funcs to some other exceptions that have str funcs
- fixes some minor style issues
- for reviewers, adds commented-out direct-reproduction code
  to the repr() funcs.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-19 13:23:19 -04:00
Sebastien Awwad
b005002fef
Merge pull request #853 from theupdateframework/readme_improvements
README: TUF spec version, reference implementation, and other adjustments
2019-04-10 11:05:38 -04:00
Sebastien Awwad
06cdb21efd
DOC: explain what this repo is: the reference implementation
at the very top of the README.

and:
- note that this implementation is intended to conform to version
  1.0 of the TUF specification
- draw some distinctions between the TUF design and this ref impl.
- turn the older blurb about TUF into an About-TUF section
- expand that blurb with a link to both an introduction in the repo
  and the TUF website
- make the documentation links a bit more explicit
- shuffle some graphical elements for better appeal
- minor changes like extending some link text

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-09 16:57:59 -04:00
Sebastien Awwad
7af42eaf97
Merge pull request #851 from theupdateframework/pyup-scheduled-update-2019-04-08
Scheduled weekly dependency update for week 14
2019-04-09 16:00:37 -04:00
pyup-bot
e55b20fd25
Update isort from 4.3.16 to 4.3.17
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-09 15:24:37 -04:00
Sebastien Awwad
56a2928952
DOC: move full install instructions to INSTALLATION.rst
and note that if errors occur while installing the optional
crypto dependencies, that the non-Python dependencies section
should be consulted.

Also adds a git clone step to the development installation
instructions in the contributors' instructions, and other
minor installation notes for contributors.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-08 17:13:11 -04:00
Sebastien Awwad
4f01a31346
Merge pull request #849 from theupdateframework/clarify_role_of_cli
Reframe CLI, revise quickstart, and reorganize tutorials
2019-04-08 15:23:22 -04:00