Commit graph

3353 commits

Author SHA1 Message Date
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
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
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
Sebastien Awwad
67dd649680
DOC: cover possible environment requirements in QUICKSTART
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-08 15:21:52 -04:00
Sebastien Awwad
2af4d3f12e
DOC: simplify installation instructions in QUICKSTART
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-08 13:32:43 -04:00
Sebastien Awwad
ed6acd4ef1
minor DOC: label the advanced tutorial as such
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-08 11:56:45 -04:00
Sebastien Awwad
1f3e5b6483
DOC: collapse CLI_EXAMPLES.md into CLI.md
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-08 11:54:10 -04:00
Sebastien Awwad
5a94d5db3e
minor DOC: fix unfinished sentence, some punctuation
in the QUICKSTARD.md

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-08 11:49:25 -04:00
Sebastien Awwad
e82ce352b4
Merge pull request #850 from theupdateframework/pyup-initial-update
Dependency Updates (via pyup)
2019-04-05 17:04:31 -04:00
pyup-bot
b08b6da97e
Update dependencies:
Update astroid from 2.0.4 to 2.2.5
Update cffi from 1.11.5 to 1.12.2
Update cffi from 1.11.5 to 1.12.2
Update configparser from 3.5.0 to 3.7.4
Update cryptography from 2.4.2 to 2.6.1
Update cryptography from 2.4.2 to 2.6.1
Update isort from 4.3.4 to 4.3.16
Update pbr from 5.1.1 to 5.1.3
Update pluggy from 0.8.0 to 0.9.0
Update py from 1.7.0 to 1.8.0
Update pylint from 2.1.1 to 2.3.1
Update pyyaml from 4.2b1 to 5.1
Update stevedore from 1.30.0 to 1.30.1
Update tox from 3.5.3 to 3.8.6
Update virtualenv from 16.1.0 to 16.4.3
Update wrapt from 1.10.11 to 1.11.1
Update certifi from 2018.11.29 to 2019.3.9

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-05 13:53:44 -04:00
Sebastien Awwad
907186e6a4
DOC: revise quickstart and reorganize tutorials:
- correctly frame the CLI's current state as a tutorial toy.
- provide a friendlier quickstart that puts what it's doing into
  perspective and guides you to next steps.
- provide a better sense of what each tutorial/quickstart doc is
  for.
- make the getting started page slightly more friendly.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-05 13:44:07 -04:00
Sebastien Awwad
00f5279fca
minor: doc: typo fix
adjusted casing on TUF (TUf -> TUF)
2019-04-03 10:58:07 -04:00
Sebastien Awwad
254e0c4866
Merge pull request #836 from theupdateframework/destroy_unnecessary_classes_in_formats
Destroy unnecessary MetaFile classes in formats.py
2019-04-03 10:40:04 -04:00
Sebastien Awwad
25aa71d4c6
PR revision: test build_dict_conforming... arg for schema type
Raise an error if it's not a schema.Object instance (not just
if it's not a schema.Schema instance).

Also adds a test for this.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-03 10:30:42 -04:00
Sebastien Awwad
9aa22466c0
PR revision: minor bugfix in casing
May the Python gods forgive me for having three different
names with the same names and different casing on one line....

Perhaps I should address the import module as....

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-02 12:50:20 -04:00
Sebastien Awwad
188bc84f90
DOC: improve build_dict_conforming_to_schema docstring
- Expand on the arguments/kwargs
- Note that the function is particular to schema.Object objects.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-02 12:48:13 -04:00
Sebastien Awwad
915291ea85
PR revision: use type checking, minor readability edit
Edits prompted by Lukas's review.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-02 12:47:16 -04:00
Sebastien Awwad
40f4202b6f
minor DOC: typo fixes
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-04-02 12:46:37 -04:00
Sebastien Awwad
b52ff2d744
Beg pylint for forgiveness re. protected access of SCHEMAs
Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-03-29 15:47:19 -04:00
Sebastien Awwad
3ac174f597
Use build_dict... instead of make_role_... in test_sig.py
since make_role_metadata is being replaced by
build_dict_conforming_to_schema

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-03-29 15:38:30 -04:00
Sebastien Awwad
7ecf522698
Automatically fill _type and spec_version in build_dict_c...
in tuf.formats.build_dict_conforming_to_schema

Populate _type with the expected value for the given schema, and
populate spec_version with tuf.SPECIFICATION_VERSION.  Do this only
when the values are not provided, and support overriding them.

Also adds testing for the above and takes advantage of the above
in repository_lib's _generate metadata functions.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-03-29 15:23:00 -04:00
Sebastien Awwad
491577c282
Perform deep copies in build_dict_conforming_to_schema
Make a copy of the provided fields so that the caller's provided values
do not change when the returned values are changed.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-03-29 15:22:22 -04:00
Sebastien Awwad
47e05f8b96
Kill another partially-used metadata writing func
tuf.formats.make_role_metadata concerned itself with exclusivity checks
for paths and path_hash_prefixes, but no code actually used it for
relevant data.  It's yet another custom metadata writer replaced by
build_dict_conforming_to_schema.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-03-29 15:22:22 -04:00
Sebastien Awwad
e7c822954b
Update testing following MetaFile(etc) class removals
Testing will now use (and test) build_dict_conforming_to_schema.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
2019-03-29 11:37:31 -04:00