Commit graph

4025 commits

Author SHA1 Message Date
Lukas Pühringer
6d468336d6
Merge pull request #1300 from astrolabe-coop/sandbox/rzr/upstream/debian/review/master
debian/control: Lint using cme
2022-02-17 15:33:30 +01:00
Philippe Coval
0e42516263 debian/changelog: Update to latest release
Relate-to: https://lists.debian.org/debian-python/2021/03/msg00005.html
Change-Id: Idc7f396a6dd2447c35f82d0a63641e1d4c203c61
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2021-03-29 14:39:15 +02:00
Philippe Coval
9b79197673 d/control: Update Maintainer to DPT
Change-Id: I4f19349f135bff1fce3590143900fa7c63d21c5d
Relate-to: https://github.com/theupdateframework/tuf/issues/263
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2021-03-10 15:30:44 +01:00
Philippe Coval
13c2273f76 d/control: Drop python3-iso8601 depencency
It was removed since v0.15.0

Thanks-to: <Lukas Puehringer <lukas.puehringer@nyu.edu>
Relate-to: https://github.com/theupdateframework/tuf/issues/263
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2021-03-10 15:30:33 +01:00
Philippe Coval
fe6c978aff d/control: Lint using cme
Change-Id: Ib59e8dd0b489b48b210efb51915b7135695d1438
Fordwarded: https://github.com/theupdateframework/tuf/pull/1300
Relate-to: https://github.com/theupdateframework/tuf/issues/263
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2021-03-10 15:30:18 +01:00
Philippe Coval
8d47f64e43 debian: Update debian/upstream/signing-key.asc
This change is needed for debian packaging effort of latest release 0.17.0

https://github.com/theupdateframework/tuf/issues/263

Because this key update is critical in the trust's chain,
may I request upstream to double check and acknowledge this change.

This key was obtained from WoT using:

    wget d1cadc8c68/tuf-0.17.0.tar.gz
    wget d1cadc8c68/tuf-0.17.0.tar.gz.asc

    gpg --verify  tuf-0.17.0.tar.gz.asc
    gpg: assuming signed data in 'tuf-0.17.0.tar.gz'
    gpg: Signature made Thu 25 Feb 2021 12:42:50 PM CET
    gpg:                using RSA key 08F3409FCF71D87E30FBD3C21671F65CB74832A4
    gpg: Can't check signature: No public key

    gpg --recv-key 08F3409FCF71D87E30FBD3C21671F65CB74832A4 \
      --keyserver hkp://keys.gnupg.net
    gpg --verify ../tuf-0.17.0.tar.gz.asc
    gpg --fingerprint 08F3409FCF71D87E30FBD3C21671F65CB74832A4
    # pub   rsa3072 2020-03-17 [SC] [expires: 2030-03-15]
    #      08F3 409F CF71 D87E 30FB  D3C2 1671 F65C B748 32A4
    # uid           [ unknown] Joshua Lock (GPG on YubiKey) <jlock@vmware.com>
    # sub   rsa3072 2020-03-17 [E] [expires: 2030-03-15]
    # sub   rsa3072 2020-03-17 [A] [expires: 2030-03-15]

    gpg --armor --export 08F3409FCF71D87E30FBD3C21671F65CB74832A4 \
      > debian/upstream/signing-key.asc

Cc:  Sebastien Awwad <sebastien.awwad@gmail.com @awwad>
Cc:  Lukas Puehringer <lukas.puehringer@nyu.edu @lukpueh>
Cc:  Joshua Lock <jlock@vmware.com @joshuagl>
Relate-to: https://www.debian.org/doc/manuals/debmake-doc/ch05.en.html#signing-key
Origin: https://github.com/CrossStream/tuf/tree/debian/master
Forwarded: https://github.com/theupdateframework/tuf/pull/1299
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2021-03-09 09:30:00 +01:00
Lukas Puehringer
e7f49517c6 Fix bug number in debian/changelog
Replace RFS bug number with ITP bug number in first changelog
entry.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-03-09 09:30:00 +01:00
Lukas Puehringer
4bdaa67450 Update date in debian/changelog
Fixes timewarp-standards-version lintian warning:
The source package refers to a Standards-Version that was released
after the date of the most recent debian/changelog entry.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-03-09 09:30:00 +01:00
Lukas Puehringer
50627a3dad Update debian compat specification
Drop debian/compat and replace "debhelper (>= 12~)" with
"debhelper-compat (= 12)" in debian/control.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-03-09 09:30:00 +01:00
Lukas Puehringer
34b423619d Bump debian standards version to 4.4.0
Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-03-09 09:30:00 +01:00
Lukas Puehringer
4595cc3b66 Remove unnecessary debian source/options file
Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-03-09 09:30:00 +01:00
Lukas Puehringer
3d2c9c370e Add debian metadata
Used these instructions as guide to create debian metadata:
https://wiki.debian.org/Packaging/Intro#The_packaging_work_flow
https://wiki.debian.org/Python/LibraryStyleGuide

Debian build instructions for upstream release 0.11.2.dev3:
-----------------------------------------------------------
 # Assuming sbuild is installed and chroot is created
 # https://wiki.debian.org/sbuild

 # Download upstream tarball + signature and rename to expected pattern
 wget https://github.com/theupdateframework/tuf/releases/download/v0.11.2.dev3/tuf-0.11.2.dev3.tar.gz \
  -O python-tuf_0.11.2.dev3.orig.tar.gz
 wget https://github.com/theupdateframework/tuf/releases/download/v0.11.2.dev3/tuf-0.11.2.dev3.tar.gz.asc \
  -O python-tuf_0.11.2.dev3.orig.tar.gz.asc

 # Extract upstream tarball
 tar xf python-tuf_0.11.2.dev3.orig.tar.gz

 # Clone upstream repo for debian files and tests
 git clone https://github.com/theupdateframework/tuf.git \
  tuf-upstream

 # Copy debian files (from debian branch)
 git -C tuf-upstream checkout debian --
 cp -r tuf-upstream/debian tuf-0.11.2.dev3/

 # Change to unpacked tarball
 cd tuf-0.11.2.dev3

 # Build (w/o tests)
 # NOTE: (1) Securessystemslib is not yet in debian, you need to first build it
 # locally (see instructions at
 # 9d36a9fb3c)
 # and pass it as `--extra-package`
 # NOTE: (2) `--extra-package` does not seem to work for tests during sbuild,
 # hence the nocheck option. This should be easier once securesystemslib is in.
 DEB_BUILD_OPTIONS=nocheck sbuild -A -s -d unstable \
    --extra-package /path/to/python3-securesystemslib_0.11.3-1_all.deb

 # Sign debian files (replace keyid if necessary)
 debsign -k 8BA69B87D43BE294F23E812089A2AD3C07D962E8

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-03-09 09:30:00 +01:00
Joshua Lock
60875f912b
Merge pull request #1284 from joshuagl/joshuagl/release-v0.17.0
Prepare v0.17.0 release
2021-02-25 11:35:07 +00:00
Joshua Lock
76c0a54e75 Prepare v0.17.0 release
Signed-off-by: Joshua Lock <jlock@vmware.com>
2021-02-25 10:49:12 +00:00
lukpueh
74b1549c00
Merge pull request #1288 from CrossStream/sandbox/rzr/review/master
git: Ignore generated files
2021-02-18 13:14:54 +01:00
Philippe Coval
99f12aba90 git: Ignore generated files
This will help packaging effort

Relate-to: https://github.com/theupdateframework/tuf/issues/263
Signed-off-by: Philippe Coval <rzr@users.sf.net>
Change-Id: I60cf8c5fdbe6aa4b44aebadb7f4bc13c546ad159
2021-02-18 11:38:58 +01:00
lukpueh
768f9d8b20
Merge pull request #1286 from theupdateframework/dependabot/pip/cryptography-3.4.6
Bump cryptography from 3.4.5 to 3.4.6
2021-02-17 13:26:19 +01:00
dependabot[bot]
b6fbbef903
Bump cryptography from 3.4.5 to 3.4.6
Bumps [cryptography](https://github.com/pyca/cryptography) from 3.4.5 to 3.4.6.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/3.4.5...3.4.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-17 10:04:12 +00:00
lukpueh
8101c9e3f4
Merge pull request #1285 from joshuagl/joshuagl/sslib-bump
Bump securesystemslib to 0.19.0
2021-02-17 10:14:26 +01:00
Joshua Lock
9dd2ef6cb1 Bump securesystemslib to 0.19.0
Bump securesystemslib to the recently released 0.19.0
https://pypi.org/project/securesystemslib/0.19.0/
https://github.com/secure-systems-lab/securesystemslib/releases/tag/v0.19.0

Signed-off-by: Joshua Lock <jlock@vmware.com>
2021-02-17 09:05:54 +00:00
Joshua Lock
021803e020
Merge pull request #1283 from jku/build-on-push-to-develop-only
CI: Limit build-on-push to develop branch only
2021-02-16 14:01:58 +00:00
Jussi Kukkonen
7c5416d5c3 CI: Limit build-on-push to develop branch only
Dependabot pushes to main repository and ends up triggering two builds
every time (one for PR, one for push): limit the rule for build-on-push
to apply to develop branch only.

If release branches are used later on they should be added to list here.

Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
2021-02-16 15:40:35 +02:00
Joshua Lock
ac8525a72a
Merge pull request #1280 from theupdateframework/dependabot/pip/cffi-1.14.5
Bump cffi from 1.14.4 to 1.14.5
2021-02-16 13:36:36 +00:00
dependabot[bot]
90ba71ca69
Bump cffi from 1.14.4 to 1.14.5
Bumps [cffi](https://github.com/python-cffi/release-doc) from 1.14.4 to 1.14.5.
- [Release notes](https://github.com/python-cffi/release-doc/releases)
- [Commits](https://github.com/python-cffi/release-doc/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-16 13:16:07 +00:00
Joshua Lock
70f2f3951c
Merge pull request #1282 from jku/pin-cryptography
Bump Cryptography, pin the py2 version separately
2021-02-16 13:15:19 +00:00
Jussi Kukkonen
b5304e42a4 Bump Cryptography, pin the py2 version separately
On Python3 bump cryptography from 3.3.1 to 3.4.5.

On python2 bump from 3.3.1 to 3.3.2 (3.3-branch is the last branch
with python2 support).

Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
2021-02-16 11:57:45 +02:00
lukpueh
4ae675cb31
Merge pull request #1271 from MVrachev/setup-doc-update
Docs: change the editable venv installation order
2021-02-02 14:54:30 +01:00
Martin Vrachev
9ad55bdd84 Docs: change the editable venv installation order
If you follow the instructions we provide for our contributors in
docs/CONTRIBUTORS.rst your sys.path (used to search for imports)
will put securesystemlib project directory first and tuf directory
second.
This creates a problem with imports from tuf modules because we can
import the wrong file or on relative imports (as currently we
use in the tests when we import utils), the imports cannot be resolved.

If we change the installation order, then tuf directory will be the
first in the import resolution path and those problems will be fixed.

PS: I want to express my gratitude towards Jussi who helped me find
this problem.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2021-02-02 15:10:42 +02:00
lukpueh
9401059101
Merge pull request #1268 from theupdateframework/dependabot/pip/urllib3-1.26.3
Bump urllib3 from 1.26.2 to 1.26.3
2021-01-27 11:39:43 +01:00
dependabot[bot]
dbd8575aab
Bump urllib3 from 1.26.2 to 1.26.3
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.2 to 1.26.3.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/1.26.3/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.2...1.26.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-27 10:04:35 +00:00
lukpueh
9fe83574f0
Merge pull request #1264 from lukpueh/rm-dependabot-badge
Temporarily remove broken Dependabot badge
2021-01-18 15:46:06 +01:00
lukpueh
c72448ae41
Merge pull request #1265 from jku/maintainership-application
MAINTAINERS: Add myself
2021-01-18 15:44:38 +01:00
Jussi Kukkonen
9e34c5fd9b MAINTAINERS: Add myself
I'd like to apply for this position, let me know if you need a CV :)

Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
2021-01-18 12:30:56 +02:00
Lukas Puehringer
f6b93830e7 Temporarily remove Dependabot badge
The Dependabot status badge no longer works, since having
migrated from stand-alone to GitHub native in #1258.

The issue is tracked upstream in dependabot/dependabot-core#1912.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-01-18 11:15:51 +01:00
lukpueh
322c096ef7
Merge pull request #1252 from lukpueh/gh-actions-coveralls
Reinstate publishing coverage on coveralls.io
2021-01-15 14:34:31 +01:00
Joshua Lock
d524412d56
Merge pull request #1259 from lukpueh/pin-idna
Configure dependabot to ignore 'idna'
2021-01-14 12:25:18 +00:00
Lukas Puehringer
d97c2872db Re-add coveralls.io badge
A recent commit reinstates publishing of coverage data to
coveralls.io. This commit re-adds the corresponding badge which
was temporarily removed in #1242.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-01-13 13:45:03 +01:00
Lukas Puehringer
8bb0187a69 Use py3 coveralls to publish coverage on py2
Prior to this commit our GitHub workflow would set up one Python
version only for each build, which means that the commands to run
the tests and publish coverage (tox and coveralls) were run with
the same Python version as tox runs the tests in.

Given that the coveralls CLI tool dropped py2 a couple of releases
ago, this commit sets up an additional service py3 to run coveralls
(and tox) on when building for py2.

To prevent tox from using the wrong Python version to run the tests
on, this commit changes the toxenv value from the generic 'py'
(uses default python on path) to 'py27'.

For convenience and readability we use the environment variable
TOXENV instead of the tox -e option.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-01-13 13:43:46 +01:00
Lukas Puehringer
32452c4142 Configure GitHub workflow to publish coverage
Re-add coverage publishing on coveralls.io, formerly performed by
Travis CI (prior to #1242), using the coveralls cli tool according
to the documentation:
https://coveralls-python.readthedocs.io/en/latest/usage/configuration.html#github-actions-gotcha

**Considered alternatives:**
- Official coveralls GitHub action, which does not seem to work
  well for Python:
  https://github.com/coverallsapp/github-action/issues/4
  https://github.com/coverallsapp/github-action/issues/30

- Inofficial fork of that action, which seems to work better
  but had issues finding the coverage data in the tests folder,
  or the covered code respectively.
  https://github.com/AndreMiras/coveralls-python-action

Besides aforementioned issues of these actions the use of cli tools
from curated package managers seems slightly preferable over
actions from the GitHub Marketplace (see #1246).

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-01-13 13:43:39 +01:00
Lukas Puehringer
cb164ec1f7 Configure dependabot to ignore 'idna'
New releases of the transitive (via 'requests') dependency 'idna'
break Python 2.7 builds. To fix this we configure dependabot to not
bump 'idna' in requirements-pinned.txt, which lists and
auto-updates all immediate and transitive dependencies for CI/CD
testing.

An alternative would be to add and restrict 'idna' in
'requirements.txt' but this is less preferable because
'requirements.txt' should only have direct dependencies.

For consulted dependabot config docs see:
https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/enabling-and-disabling-version-updates#disabling-dependabot-version-updates

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2021-01-12 13:47:36 +01:00
lukpueh
b5f5e3f77c
Merge pull request #1258 from theupdateframework/dependabot/add-v2-config-file
Create Dependabot config file
2021-01-11 17:42:17 +01:00
dependabot-preview[bot]
e364e7f582
Create Dependabot config file 2021-01-11 16:33:11 +00:00
Joshua Lock
c872797f46
Merge pull request #1239 from theupdateframework/dependabot/pip/chardet-4.0.0
build(deps): bump chardet from 3.0.4 to 4.0.0
2021-01-08 12:42:52 +00:00
dependabot-preview[bot]
019d3a90bc
build(deps): bump chardet from 3.0.4 to 4.0.0
Bumps [chardet](https://github.com/chardet/chardet) from 3.0.4 to 4.0.0.
- [Release notes](https://github.com/chardet/chardet/releases)
- [Commits](https://github.com/chardet/chardet/compare/3.0.4...4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-08 12:17:58 +00:00
lukpueh
9fdbcd5b4b
Merge pull request #1245 from theupdateframework/dependabot/pip/requests-2.25.1
build(deps): bump requests from 2.25.0 to 2.25.1
2020-12-18 09:19:42 +01:00
dependabot-preview[bot]
56655f8adb
build(deps): bump requests from 2.25.0 to 2.25.1
Bumps [requests](https://github.com/psf/requests) from 2.25.0 to 2.25.1.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.25.0...v2.25.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-17 10:39:05 +00:00
lukpueh
f7695dace8
Merge pull request #1242 from lukpueh/gh-actions
Replace Travis/Appveyor CI with GitHub Action Workflow
2020-12-17 10:50:01 +01:00
Lukas Puehringer
0ab9ee7617 Temporarily remove coveralls + fossa badges
The newly add GitHub workflow, which replaces Travis and Appveyor
does not support publishing coverage (coveralls) and license
(fossa) data yet (formerly done by Travis).

This commit removes the corresponding badges from README. It shall
be reverted once coveralls and fossa are re-enabled.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2020-12-17 10:29:06 +01:00
Lukas Puehringer
61cffeea95 Remove travis/appveyor config in favor of actions
Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2020-12-17 10:29:06 +01:00
Lukas Puehringer
9ec845cbc1 Adopt CI change in TUF docs
Replace mentions of travis/appveyor with GitHub Actions in
governance (contribution) and readme (badges) documents.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2020-12-17 10:28:38 +01:00