Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dimitrovr/test permissions #14

Merged
merged 688 commits into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
688 commits
Select commit Hold shift + click to select a range
99a4d71
Update supported specification version to 1.0.28
MVrachev Feb 4, 2022
1a59b29
Revert "github: disable pip caching temporarily"
Feb 4, 2022
7d48588
build(deps): bump pynacl from 1.4.0 to 1.5.0
dependabot[bot] Feb 5, 2022
a03381f
build(deps): bump requests from 2.26.0 to 2.27.1
dependabot[bot] Feb 5, 2022
59064d5
build(deps): bump urllib3 from 1.26.7 to 1.26.8
dependabot[bot] Feb 5, 2022
e2ce7e8
build(deps): bump charset-normalizer from 2.0.7 to 2.0.11
dependabot[bot] Feb 5, 2022
cd95ff0
build(deps): bump cryptography from 35.0.0 to 36.0.1
dependabot[bot] Feb 5, 2022
3f3b921
Metadata API: Document serialization "repro" issue
Jan 26, 2022
1c46eeb
Merge pull request #1824 from jku/revert-pip-cache-disable
lukpueh Feb 7, 2022
8a0bb88
Merge pull request #1827 from jku/do-dependabots-job-for-dependabot
lukpueh Feb 7, 2022
70c7358
Merge pull request #1800 from jku/document-serialization-hash-issue
lukpueh Feb 7, 2022
cf9af04
doc: render tuf logo and favicon on rtd
lukpueh Feb 7, 2022
5b2290c
Exceptions docs for __init__ and from_dict()
MVrachev Feb 3, 2022
92e49ad
github: Pin actions hashes
Feb 7, 2022
ba911e0
Merge pull request #1825 from MVrachev/specification-version
Feb 7, 2022
6db3f69
Add small missing tests
MVrachev Feb 7, 2022
a21036e
Merge pull request #1830 from jku/pin-actions-hashes
jku Feb 7, 2022
891e1c7
build: Re-add setup.py
Feb 7, 2022
a622276
build: Remove pylintrc from MANIFEST
Feb 8, 2022
efc6877
Merge pull request #1829 from lukpueh/add-logo-rtd
lukpueh Feb 8, 2022
c7da199
Merge pull request #1831 from MVrachev/small-tests
lukpueh Feb 8, 2022
0bc891f
Merge pull request #1832 from jku/return-of-setup-py
lukpueh Feb 8, 2022
9598725
build(deps): bump pycparser from 2.20 to 2.21
dependabot[bot] Feb 8, 2022
0b2f985
Merge pull request #1820 from MVrachev/constructors-documentation
lukpueh Feb 8, 2022
2f381ae
verify_signature(): handle SerializationError
MVrachev Feb 8, 2022
9cda6e5
Merge pull request #1796 from jku/accept-two-part-spec-version
lukpueh Feb 8, 2022
d0846a9
build: add license field to setup.cfg
joshuagl Feb 8, 2022
0feec0c
Improve docstrings language in Metadata API - quotes
ivanayov Feb 2, 2022
40aef7e
Improve docstrings language in Metadata API - wording
ivanayov Feb 2, 2022
acf3df6
Improve docstrings language in Metadata API - article
ivanayov Feb 2, 2022
9169fcb
Update repetitive docstrings language in Metadata API
ivanayov Feb 2, 2022
f379e94
Merge pull request #1837 from joshuagl/joshuagl/license
lukpueh Feb 8, 2022
b497180
Merge pull request #1815 from ivanayov/metadata_docstrings_imprv
Feb 8, 2022
5f51579
verify_delegate() doc ValueError and TypeError
MVrachev Feb 8, 2022
2cc3df5
Merge pull request #1834 from theupdateframework/dependabot/pip/pycpa…
Feb 8, 2022
1e36ec6
Merge pull request #1838 from MVrachev/verify-delegate-document-excep…
lukpueh Feb 8, 2022
0537f12
build: Remove docs build requirement version pin
Feb 8, 2022
8b6566a
from_securesystemslib_key() raise ValueError
MVrachev Feb 8, 2022
39ef751
Merge pull request #1839 from jku/requirements-remove-docutils-pinning
lukpueh Feb 8, 2022
177976a
Merge pull request #1840 from MVrachev/from-securesystemslib-key-ssli…
lukpueh Feb 8, 2022
d4dd652
Merge pull request #1836 from MVrachev/verify-sig-serialization-error
lukpueh Feb 8, 2022
365f17b
doc: remove obsolete docs/images dir
lukpueh Feb 9, 2022
4d1fad2
doc: rename contribution instructions
lukpueh Feb 9, 2022
e879773
Merge pull request #1850 from lukpueh/mv-contributors
lukpueh Feb 9, 2022
5ec4c95
doc: update installation documentation
lukpueh Feb 9, 2022
4343931
doc: update install section in contributing doc
lukpueh Feb 9, 2022
0b2b1bb
doc: minor title changes for rtd navbar
lukpueh Feb 9, 2022
c40bb30
doc: fix link to tox docs
lukpueh Feb 9, 2022
99059a5
Merge pull request #1848 from lukpueh/rm-docs-images
Feb 10, 2022
0216740
doc: move verify section in install docs
lukpueh Feb 10, 2022
cd70e47
doc: cross-doc absolute link hack
lukpueh Feb 10, 2022
b94ef08
doc: Remove inactive maintainers from MAINTAINERS
lukpueh Feb 10, 2022
bf5c6ee
Update securesystemslib version to 0.22.0
MVrachev Feb 10, 2022
d2a840f
Add signatures serialization tests
MVrachev Jan 28, 2022
cd34793
Move nonunique sigs test to serialization tests
MVrachev Jan 28, 2022
17503eb
Remove unnecessary copy operations
MVrachev Feb 10, 2022
16e6f73
doc: add emeritus section to maintainers file
lukpueh Feb 11, 2022
3b135d7
Merge pull request #1855 from lukpueh/update-maintainers-txt
lukpueh Feb 11, 2022
a347d03
Merge pull request #1809 from MVrachev/signatures-tests
lukpueh Feb 11, 2022
d8f60e1
Unify quoting in ngclient docstrings
ivanayov Feb 9, 2022
d399ad5
Unify article in ngclient docstrings
ivanayov Feb 9, 2022
43080e1
Unify wording of docstrings language in ngclient
ivanayov Feb 9, 2022
a0d3185
Fix line lengths in ngclient docstrings
ivanayov Feb 11, 2022
be2c8f0
Metadata test full serialization cycle
MVrachev Feb 12, 2022
2f59322
build(deps): bump charset-normalizer from 2.0.11 to 2.0.12
dependabot[bot] Feb 14, 2022
922c5d2
Add support for unrecognized fields in Metadata
MVrachev Feb 13, 2022
66b3b46
Merge pull request #1863 from theupdateframework/dependabot/pip/chars…
lukpueh Feb 14, 2022
216c1eb
Merge pull request #1856 from ivanayov/ngclient_docstrings_imprv
lukpueh Feb 14, 2022
73ce299
Merge pull request #1861 from MVrachev/metadata-unrecognized-fields
jku Feb 14, 2022
8ec45dc
dep: update pinned requirements
lukpueh Feb 14, 2022
899b762
Merge pull request #1853 from lukpueh/update-install-docs
Feb 14, 2022
7dc057a
Merge pull request #1865 from lukpueh/update-req-pinned
Feb 14, 2022
5643cec
build: pin test requirements for deterministic CI
lukpueh Feb 15, 2022
24561bc
doc: minor readme updates
lukpueh Feb 15, 2022
7a13933
doc: remove note about unstable API in RTD docs
lukpueh Feb 15, 2022
0b64056
Merge pull request #1868 from lukpueh/minor-doc-updates
lukpueh Feb 15, 2022
d806b62
github: Update github-script to 6.0.0
Feb 16, 2022
5845c89
doc: update acknowledgements and rm AUHTORS.txt
lukpueh Feb 15, 2022
c5e787c
CI: remind to update contributor acknowledgement
lukpueh Feb 16, 2022
217a508
Merge pull request #1870 from jku/github-script-v6
lukpueh Feb 16, 2022
fc9b42f
Merge pull request #1871 from lukpueh/rm-authors-txt
lukpueh Feb 16, 2022
b678de8
doc: reword announcement about upcoming 1.0.0
lukpueh Feb 15, 2022
70466ae
__init__.py: Remove unused constant
Feb 18, 2022
46f5bb7
python-tuf version 1.0.0 \o/
Feb 9, 2022
03d0232
Merge pull request #1873 from jku/1.0.0-release
Feb 21, 2022
d4814e8
Metadata API: Add messages to serialization errors
Feb 21, 2022
fc1558b
Metadata API: Log details of verify error
Feb 21, 2022
84c632e
Merge pull request #1867 from lukpueh/update-req-pinned
lukpueh Feb 22, 2022
92c7721
docs: Add blog configuration
Feb 24, 2022
e78ffc1
docs: Add a blog post
Feb 24, 2022
5ee575e
docs: Add a new 200px icon
Feb 25, 2022
a75abe3
Merge pull request #1886 from jku/add-development-blog
lukpueh Feb 28, 2022
45e8898
docs: Clean up blog header
Feb 28, 2022
30a707c
Add __eq__ to classes in Metadata API
MVrachev Dec 21, 2021
5d24956
Test __eq__ implementation for all classes
MVrachev Feb 5, 2022
a17ceda
Add "validation" arg in JSONSerializer
MVrachev Dec 21, 2021
6ea5372
Take order into account for certain cases
MVrachev Feb 4, 2022
a74f7a1
Merge pull request #1775 from MVrachev/validation-during-serialization
Feb 28, 2022
8448619
Merge pull request #1887 from jku/remove-blog-header-links
lukpueh Mar 1, 2022
311120a
build(deps): bump actions/setup-python from 2.3.2 to 3
dependabot[bot] Mar 1, 2022
0504866
Merge pull request #1891 from theupdateframework/dependabot/github_ac…
Mar 1, 2022
38b5e07
build(deps): bump actions/checkout from 2.4.0 to 3
dependabot[bot] Mar 2, 2022
248dabd
Merge pull request #1892 from theupdateframework/dependabot/github_ac…
Mar 2, 2022
5155ba7
build: Single source version number
Mar 3, 2022
bf511ec
docs: Update release docs
Mar 3, 2022
29e4e63
Merge pull request #1895 from jku/single-source-version
Mar 4, 2022
e7037cf
Merge pull request #1860 from MVrachev/serialization-bytes-array
Mar 7, 2022
0d2f695
Remove redundant comment about version
joshuagl Mar 9, 2022
430bdf5
test: use tox isolated environments
joshuagl Mar 9, 2022
22fee97
setup: remove upper bound limit on python_requires
joshuagl Mar 9, 2022
150bfd0
gitignore: fix directory patterns
joshuagl Mar 9, 2022
8ac7167
Merge pull request #1900 from joshuagl/joshuagl/build-nits
Mar 11, 2022
0611884
Use spec version from tuf/api/metadata in examples
MVrachev Mar 17, 2022
9c8622d
Merge pull request #1908 from MVrachev/update-spec-ver
lukpueh Mar 17, 2022
98db711
Update package metadata
ofek Mar 18, 2022
db7fbb2
Improve docstrings in Metadata API to be more descritpive
ivanayov Feb 8, 2022
e71aa4a
Improve Signer docstrings in Metadata API
ivanayov Mar 18, 2022
e26363c
Add tests for Updater input validation
ivanayov Jan 5, 2022
15c8d80
Test expired metadata from cache
ivanayov Dec 3, 2021
cab99f5
Verify validation is performed from local metadata
ivanayov Dec 13, 2021
d8d0486
Fix expired metadata tests
ivanayov Feb 3, 2022
8d4d9af
Update expired metadata tests logic
ivanayov Feb 18, 2022
f2e80a8
Merge pull request #1843 from ivanayov/metadata_docstrings_imprv_foll…
lukpueh Mar 21, 2022
d9f2d9d
Merge pull request #1707 from ivanayov/test_expired_metadata
Mar 21, 2022
1d166f0
Merge pull request #1876 from jku/more-details-on-verify-failure
Mar 21, 2022
ff770ea
Merge pull request #1896 from ofek/modernize-metadata
lukpueh Mar 22, 2022
53bacdf
build: Add verify-release script
Mar 11, 2022
69cc684
gitattributes: make all JSON files end with LF
MVrachev Mar 11, 2022
384772e
Provide a way to generate a simple repository
MVrachev Mar 2, 2022
1e9967b
Revert "build: pin test requirements for deterministic CI"
lukpueh Mar 23, 2022
ec8a767
build: pin direct test dependencies
lukpueh Mar 23, 2022
b272ac7
Merge pull request #1918 from lukpueh/pin-direct-test-deps-only
lukpueh Mar 23, 2022
02890d1
build(deps): bump cryptography from 36.0.1 to 36.0.2
dependabot[bot] Mar 23, 2022
05c2959
Merge pull request #1915 from MVrachev/test-statics-data-generation
Mar 23, 2022
b7b035a
Merge pull request #1758 from ivanayov/updater_api_input_validation
Mar 23, 2022
65d6503
verify_release: Be explicit about PyPI version
Mar 23, 2022
d2f8c99
Metadata API: Add default constructor arguments
Mar 23, 2022
220e854
tests: Use the default Metadata constructor args
Mar 23, 2022
8071806
examples: Use the constructor default arguments
Mar 24, 2022
8454414
build(deps): bump urllib3 from 1.26.8 to 1.26.9
dependabot[bot] Mar 24, 2022
4392574
tests: Remove unused variables from generate_md
Mar 24, 2022
6819d41
verify_release: Be specific about expected artifacts
Mar 24, 2022
7da03ee
Merge pull request #1913 from jku/verify-release
lukpueh Mar 24, 2022
d8c0f3b
Metadata API: Be more careful with container args
Mar 24, 2022
96b2cd4
Metadata API: Set default expires to utcnow()
Mar 24, 2022
d1c52b5
Merge pull request #1919 from theupdateframework/dependabot/pip/crypt…
Mar 25, 2022
8163759
Merge pull request #1923 from theupdateframework/dependabot/pip/urlli…
Mar 25, 2022
bf878ce
verify_release: Warn about missing requirements
Mar 24, 2022
57c610d
Merge pull request #1926 from jku/verify-release-imports
lukpueh Mar 28, 2022
b482886
build(deps): bump pylint from 2.12.2 to 2.13.2
dependabot[bot] Mar 28, 2022
bde78bc
Merge pull request #1927 from theupdateframework/dependabot/pip/pylin…
Mar 28, 2022
10f7375
build(deps): bump types-requests from 2.27.14 to 2.27.15
dependabot[bot] Mar 28, 2022
3ec455c
Merge pull request #1928 from theupdateframework/dependabot/pip/types…
Mar 28, 2022
e1e8645
build(deps): bump mypy from 0.941 to 0.942
dependabot[bot] Mar 28, 2022
71259a3
Merge pull request #1925 from theupdateframework/dependabot/pip/mypy-…
Mar 29, 2022
811000f
build(deps): bump black from 22.1.0 to 22.3.0
dependabot[bot] Mar 29, 2022
d36b701
Merge pull request #1930 from theupdateframework/dependabot/pip/black…
Mar 29, 2022
b5e42c1
import requests.exceptions is not necessary
Mar 31, 2022
8c223f5
build(deps): bump pylint from 2.13.2 to 2.13.4
dependabot[bot] Mar 31, 2022
59245a2
Add test coverage for delegated hash bins
ivanayov Jan 28, 2022
434730f
Merge pull request #1934 from kairoaraujo/unecessary_import_requests_…
Mar 31, 2022
0bd8fec
tests: Small refactor of a test
Apr 1, 2022
958a2bd
Merge pull request #1936 from jku/refactor-trusted-metadata-set-test
Apr 1, 2022
dd3f4fa
Merge pull request #1935 from theupdateframework/dependabot/pip/pylin…
Apr 4, 2022
b17ae3f
Merge pull request #1808 from ivanayov/delegated_hash_bins_tests
Apr 4, 2022
f76b6c7
build(deps): bump types-requests from 2.27.15 to 2.27.16
dependabot[bot] Apr 4, 2022
b0a73e4
build(deps): bump actions/setup-python from 3.0.0 to 3.1.0
dependabot[bot] Apr 4, 2022
0d3bb68
Metadata API: Document constructor default arguments
Mar 24, 2022
8de43ab
Merge pull request #1940 from theupdateframework/dependabot/github_ac…
Apr 4, 2022
b350847
Merge pull request #1922 from jku/constructor-defaults
lukpueh Apr 4, 2022
10f9fea
Merge pull request #1939 from theupdateframework/dependabot/pip/types…
Apr 4, 2022
faef040
build: add GH workflow to build + release on PyPI
lukpueh Mar 30, 2022
5bfe897
build: update CD workflow to create GH release
lukpueh Apr 6, 2022
1d9219a
build(deps): bump pylint from 2.13.4 to 2.13.5
dependabot[bot] Apr 7, 2022
a1a71c1
build: update CI/CD workflow to run in series
lukpueh Apr 6, 2022
a76ed28
build: lint 'verify_release' with tox
lukpueh Apr 6, 2022
4f275ad
build: add skip-pypi flag to verify_release script
lukpueh Apr 6, 2022
37cb272
doc: describe auto release workflow in RELEASE.md
lukpueh Apr 6, 2022
156e535
build(deps): bump actions/setup-python from 3.1.0 to 3.1.1
dependabot[bot] Apr 7, 2022
fe95c88
Merge pull request #1944 from theupdateframework/dependabot/pip/pylin…
Apr 8, 2022
76a4609
Merge pull request #1945 from theupdateframework/dependabot/github_ac…
Apr 8, 2022
62580ab
verify_release: Build from git sources only
Apr 8, 2022
8a7243f
Merge pull request #1947 from jku/verify-release-build-isolation
Apr 11, 2022
944a540
Metadata API: Annotate 'unrecognized_fields' as Dict
abs007 Apr 11, 2022
c47121b
Merge pull request #1950 from abs007/patch-1938
Apr 13, 2022
ce11102
Tests: restore objects to initial state after test
MVrachev Apr 13, 2022
17ec875
tests: Test client max metadata length config
Apr 14, 2022
65d1b87
build(deps): bump actions/checkout from 3.0.0 to 3.0.1
dependabot[bot] Apr 15, 2022
39ccb99
build(deps): bump types-requests from 2.27.16 to 2.27.19
dependabot[bot] Apr 18, 2022
d867deb
Replaced manual path construction with os.path.join
aribasch Apr 14, 2022
0708fb4
Reverted URL construction back to f-strings
aribasch Apr 14, 2022
8e526d7
Merge pull request #1954 from aribasch/fix-path-construction
lukpueh Apr 19, 2022
c2087b3
Merge pull request #1955 from jku/test-client-metadata-length-limits
lukpueh Apr 19, 2022
9c5c5f7
Update supported spec version
mnm678 Apr 19, 2022
70b27b0
Regenerate tests with new spec version
mnm678 Apr 19, 2022
b8acf55
Merge pull request #1953 from MVrachev/fix-eq-tests
Apr 20, 2022
3a7fad7
Merge pull request #1960 from mnm678/spec-version
Apr 20, 2022
5811f55
Merge pull request #1958 from theupdateframework/dependabot/pip/types…
Apr 20, 2022
9da9050
Merge pull request #1957 from theupdateframework/dependabot/github_ac…
Apr 20, 2022
4d54629
build(deps): bump actions/setup-python from 3.1.1 to 3.1.2
dependabot[bot] Apr 20, 2022
31ca674
Merge pull request #1951 from theupdateframework/dependabot/github_ac…
Apr 20, 2022
674eb9d
doc: describe repo setup in RELEASE.md + typos fix
lukpueh Apr 20, 2022
b99d043
build: minor updates in CI/CD workflow files
lukpueh Apr 20, 2022
ae723d4
build(deps): bump pylint from 2.13.5 to 2.13.7
dependabot[bot] Apr 21, 2022
734dcc5
build(deps): bump types-requests from 2.27.19 to 2.27.20
dependabot[bot] Apr 21, 2022
72424a9
Merge pull request #1946 from lukpueh/auto-release
lukpueh Apr 21, 2022
f4165ff
Update build config to include examples dir
lukpueh Apr 21, 2022
68fd8a1
build(deps): bump actions/checkout from 3.0.0 to 3.0.2
dependabot[bot] Apr 22, 2022
34b3c23
Merge pull request #1970 from lukpueh/include-examples-sdist
Apr 26, 2022
0ad6eab
Merge pull request #1973 from theupdateframework/dependabot/github_ac…
Apr 26, 2022
f150807
Merge pull request #1964 from theupdateframework/dependabot/pip/pylin…
Apr 26, 2022
b1ba818
Merge pull request #1965 from theupdateframework/dependabot/pip/types…
Apr 26, 2022
38b774e
Refactor ci/cd workflows (WIP)
lukpueh Apr 22, 2022
db471a5
Refactor ci/cd workflows
lukpueh Apr 22, 2022
0b0c55b
Restrict cd permissions to contents: write
lukpueh Apr 22, 2022
a50062f
Merge pull request #1971 from lukpueh/robust-ci-cd
lukpueh Apr 26, 2022
13e64bc
Adopt recent ci/cd changes in release docs
lukpueh Apr 26, 2022
f1a4cb3
Merge pull request #1976 from lukpueh/fix-release-doc
Apr 26, 2022
6a0a47a
build(deps): bump securesystemslib[crypto,pynacl] from 0.22.0 to 0.23.0
dependabot[bot] Apr 27, 2022
e7544bf
build: fix success message in verify_release
lukpueh Apr 27, 2022
e56ff07
build: add 'gpg sign' option to verify_release
lukpueh Apr 27, 2022
8167889
doc: describe signatures creation in RELEASE.md
lukpueh Apr 27, 2022
6b511c6
Merge pull request #1977 from theupdateframework/dependabot/pip/secur…
Apr 27, 2022
a3d5a37
build: minor style/wording fixes in verify_release
lukpueh Apr 27, 2022
7e5b9b5
Merge pull request #1979 from lukpueh/verify_release-sign
Apr 27, 2022
8941748
python-tuf 1.1.0
Apr 27, 2022
3f28d40
Merge pull request #1980 from jku/release-1.1.0
Apr 27, 2022
96232d2
verify_release: Tweak pip download
Apr 27, 2022
7c0de84
Update maintainers permission checklist
Apr 27, 2022
5ba3c92
Merge pull request #1982 from jku/fix-pip-download
Apr 28, 2022
48a6b76
build: Pin hatchling version
Apr 28, 2022
a70918d
build(deps): bump cryptography from 36.0.2 to 37.0.1
dependabot[bot] Apr 28, 2022
7ffc5db
build(deps): bump mypy from 0.942 to 0.950
dependabot[bot] Apr 28, 2022
b1bbd6c
Merge pull request #1989 from jku/pin-hatchling-version
lukpueh Apr 28, 2022
83f2eee
Merge pull request #1983 from jku/update-maintainer-permissions-list
lukpueh Apr 28, 2022
eb23fff
lint: Stop using requests annotations
Apr 29, 2022
79d924a
Metadata API: Checking for None instead of falsyness
abs007 Apr 21, 2022
1efd52c
Merge pull request #1975 from abs007/1937
lukpueh May 2, 2022
dc1d1e6
Merge pull request #1985 from theupdateframework/dependabot/pip/crypt…
May 3, 2022
cdca321
Merge pull request #1986 from theupdateframework/dependabot/pip/mypy-…
May 3, 2022
4c872e3
Merge pull request #1991 from jku/no-requests-type-checking
May 3, 2022
384b1ab
build(deps): bump pylint from 2.13.7 to 2.13.8
dependabot[bot] May 3, 2022
096152d
Merge pull request #1994 from theupdateframework/dependabot/pip/pylin…
May 4, 2022
2d52473
docs: Add a blog post about ngclient design
Mar 4, 2022
7b593f3
docs: Add doc links to ngclient blog post
Mar 23, 2022
ac96114
blog: Update post date, update sloccount
May 4, 2022
211f2af
Merge pull request #1914 from jku/blog-ngclient-design
May 4, 2022
4ac6931
chore: update the workflow responsible for notifying of new TUF spec …
rdimitrov May 5, 2022
cb5dd1f
chore: limit the permissions for the job calling the version check wo…
rdimitrov May 10, 2022
8874aad
chore: test with issues:read permission
rdimitrov May 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .fossa.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Files that will always have LF line endings on checkout.
tests/repository_data/** text eol=lf

# All JSON files will always have LF line endings on checkout.
# This prevents git replacing line endings with CRLF on Windows.
*.json text eol=lf
12 changes: 10 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
version: 2
updates:
- package-ecosystem: pip

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: daily
interval: "daily"
time: "10:00"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "10:00"
open-pull-requests-limit: 10
90 changes: 90 additions & 0 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
on:
workflow_call:
# Permissions inherited from caller workflow


jobs:
tests:
name: Tests
strategy:
fail-fast: false
# Run regular TUF tests on each OS/Python combination, plus special tests
# (sslib master) and linters on Linux/Python3.x only.
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest, macos-latest, windows-latest]
toxenv: [py]
include:
- python-version: 3.x
os: ubuntu-latest
toxenv: with-sslib-master
experimental: true
- python-version: 3.x
os: ubuntu-latest
toxenv: lint

env:
# Set TOXENV env var to tell tox which testenv (see tox.ini) to use
# NOTE: The Python 2.7 runner has two Python versions on the path (see
# setup-python below), so we tell tox explicitly to use the 'py27'
# testenv. For all other runners the toxenv configured above suffices.
TOXENV: ${{ matrix.toxenv }}

runs-on: ${{ matrix.os }}

steps:
- name: Checkout TUF
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@98f2ad02fd48d057ee3b4d4f66525b231c3e52b6
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements*.txt'

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade tox coveralls

- name: Run tox (${{ env.TOXENV }})
# See TOXENV environment variable for the testenv to be executed here
run: tox

- name: Publish on coveralls.io
# A failure to publish coverage results on coveralls should not
# be a reason for a job failure.
continue-on-error: true
# TODO: Maybe make 'lint' a separate job instead of case handling here
if: ${{ env.TOXENV != 'lint' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ runner.os }} / Python ${{ matrix.python-version }} / ${{ env.TOXENV }}
COVERALLS_PARALLEL: true
# Use cp workaround to publish coverage reports with relative paths
# FIXME: Consider refactoring the tests to not require the test
# aggregation script being invoked from the `tests` directory, so
# that `.coverage` is written to and .coveragrc can also reside in
# the project root directory as is the convention.
run: |
cp tests/.coverage .
coveralls --service=github --rcfile=tests/.coveragerc

coveralls-fin:
# Always run when all 'tests' jobs have finished even if they failed
# TODO: Replace always() with a 'at least one job succeeded' expression
if: always()
needs: tests
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade coveralls
- name: Finalize publishing on coveralls.io
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --finish
87 changes: 87 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: CD
concurrency: cd

on:
push:
tags:
- v*

permissions:
contents: write

jobs:
test:
uses: ./.github/workflows/_test.yml

build:
name: Build
runs-on: ubuntu-latest
needs: test
outputs:
release_id: ${{ steps.gh-release.outputs.id }}
steps:
- name: Checkout release tag
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
with:
ref: ${{ github.event.workflow_run.head_branch }}

- name: Set up Python
uses: actions/setup-python@0ebf233433c08fb9061af664d501c3f3ff0e9e20
with:
python-version: '3.x'

- name: Install build dependency
run: python3 -m pip install --upgrade pip build

- name: Build binary wheel and source tarball
run: python3 -m build --sdist --wheel --outdir dist/ .

- id: gh-release
name: Publish GitHub release candiate
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
with:
name: ${{ github.ref_name }}-rc
tag_name: ${{ github.ref }}
body: "Release waiting for review..."
files: dist/*

- name: Store build artifacts
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535
# NOTE: The GitHub release page contains the release artifacts too, but using
# GitHub upload/download actions seems robuster: there is no need to compute
# download URLs and tampering with artifacts between jobs is more limited.
with:
name: build-artifacts
path: dist

release:
name: Release
runs-on: ubuntu-latest
needs: build
environment: release
steps:
- name: Fetch build artifacts
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
with:
name: build-artifacts
path: dist

- name: Publish binary wheel and source tarball on PyPI
uses: pypa/gh-action-pypi-publish@717ba43cfbb0387f6ce311b169a825772f54d295
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

- name: Finalize GitHub release
uses: actions/github-script@9ac08808f993958e9de277fe43a64532a609130e
with:
script: |
await github.rest.repos.updateRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: '${{ needs.build.outputs.release_id }}',
name: '${{ github.ref_name }}',
body: 'See [CHANGELOG.md](https://github.com/' +
context.repo.owner + '/' + context.repo.repo +
'/blob/${{ github.ref_name }}/docs/CHANGELOG.md) for details.'
})
102 changes: 7 additions & 95 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,104 +1,16 @@
name: Run TUF tests and linter
name: CI

on:
push:
branches:
- develop

pull_request:
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
# Run regular TUF tests on each OS/Python combination, plus special tests
# (sslib master) and linters on Linux/Python3.x only.
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, macos-latest, windows-latest]
toxenv: [py]
include:
- python-version: 3.x
os: ubuntu-latest
toxenv: with-sslib-master
experimental: true
# TODO: Change to 3.x once pylint fully supports Python 3.9
- python-version: 3.8
os: ubuntu-latest
toxenv: lint

env:
# Set TOXENV env var to tell tox which testenv (see tox.ini) to use
# NOTE: The Python 2.7 runner has two Python versions on the path (see
# setup-python below), so we tell tox explicitly to use the 'py27'
# testenv. For all other runners the toxenv configured above suffices.
TOXENV: ${{ matrix.toxenv }}

runs-on: ${{ matrix.os }}

steps:
- name: Checkout TUF
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
permissions:
contents: read

- name: Find pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"

- name: pip cache
uses: actions/cache@v2
with:
# Use the os dependent pip cache directory found above
path: ${{ steps.pip-cache.outputs.dir }}
# A match with 'key' counts as cache hit
key: ${{ runner.os }}-pip-${{ hashFiles('requirements*.txt') }}
# A match with 'restore-keys' is used as fallback
restore-keys: ${{ runner.os }}-pip-

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade tox coveralls

- name: Run tox (${{ env.TOXENV }})
# See TOXENV environment variable for the testenv to be executed here
run: tox

- name: Publish on coveralls.io
# A failure to publish coverage results on coveralls should not
# be a reason for a job failure.
continue-on-error: true
# TODO: Maybe make 'lint' a separate job instead of case handling here
if: ${{ env.TOXENV != 'lint' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ runner.os }} / Python ${{ matrix.python-version }} / ${{ env.TOXENV }}
COVERALLS_PARALLEL: true
# Use cp workaround to publish coverage reports with relative paths
# FIXME: Consider refactoring the tests to not require the test
# aggregation script being invoked from the `tests` directory, so
# that `.coverage` is written to and .coveragrc can also reside in
# the project root directory as is the convention.
run: |
cp tests/.coverage .
coveralls --service=github --rcfile=tests/.coveragerc

coveralls-fin:
# Always run when all 'build' jobs have finished even if they failed
# TODO: Replace always() with a 'at least one job succeeded' expression
if: always()
needs: build
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finalize publishing on coveralls.io
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade coveralls
coveralls --finish
jobs:
test:
uses: ./.github/workflows/_test.yml
55 changes: 55 additions & 0 deletions .github/workflows/maintainer-permissions-reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Maintainer review reminder

on:
schedule:
- cron: '10 10 10 2 *'
workflow_dispatch:

permissions:
issues: write

jobs:
file-reminder-issue:
name: File issue to review maintainer permissions
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@9ac08808f993958e9de277fe43a64532a609130e
with:
script: |
await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: "Yearly maintainer permissions review",
body: `
This is a checklist for evaluating python-tuf maintainer accounts and permissions. This issue is automatically opened once a year.

### Tasks

1. Update this list to include any new services
2. Evaluate the accounts and permissions for each service on the list. Some rules of thumb:
* Critical services should have a minimum of 3 _active_ maintainers/admins to prevent project lockout
* Each additional maintainer/admin increases the risk of project compromise: for this reason permissions should be removed if they are no longer used
* For services that are not frequently used, each maintainer/admin should check that they really are still able to authenticate to the service and confirm this in the comments
3. Update MAINTAINERS.txt to reflect current permissions
4. (Bonus) Update significant contributors in README.md#acknowledgements

### Critical services

* [ ] **PyPI**: maintainer list is visible to everyone at https://pypi.org/project/tuf/
* Only enough maintainers and org admins to prevent locking the project out
* [ ] **GitHub**: release environment reviewers listed in https://github.com/theupdateframework/python-tuf/settings/environments
* Maintainers who can approve releases to PyPI
* [ ] **GitHub**: permissions visible to admins at https://github.com/theupdateframework/python-tuf/settings/access
* "admin" permission: Only for maintainers and org admins who do project administration
* "push/maintain" permission: Maintainers who actively approve and merge PRs (+admins)
* "triage" permission: All contributors trusted to manage issues

### Other

* [ ] **ReadTheDocs**: admin list is visible to everyone at https://readthedocs.org/projects/theupdateframework/
* [ ] **Coveralls**: everyone with github "admin" permissions is a Coveralls admin: https://coveralls.io/github/theupdateframework/python-tuf
`
})
console.log("New issue created.")


Loading