Skip to content

Commit

Permalink
Merge pull request #237 from freedomofpress/use_python3_setuptools
Browse files Browse the repository at this point in the history
Fixes #232 Uses python3 setuptools for sdist
  • Loading branch information
emkll committed Mar 31, 2021
2 parents 616972a + 42a185f commit e960cd9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 124 deletions.
58 changes: 0 additions & 58 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,36 +226,6 @@ common-steps:
git commit -m "Automated SecureDrop workstation build"
git push origin main
- &sign_rpm
run:
name: Sign rpms with test GPG key
command: |
./devops/ci-sign-rpm
- &commitworkstationrpms
run:
name: Commit workstation rpms for deployment to yum-test.securedrop.org
command: |
git clone --depth=1 git@github.com:freedomofpress/securedrop-workstation-dev-rpm-packages-lfs.git
cd securedrop-workstation-dev-rpm-packages-lfs
git config user.email "securedrop@freedom.press"
git config user.name "sdcibot"
# Copy built RPM packages to the relevant workstation repo and git push.
cp ~/packaging/securedrop-workstation/rpm-build/RPMS/noarch/*.rpm ./workstation/dom0/f25/
git add workstation/dom0/f25/*.rpm
git commit -m "Automated SecureDrop workstation build"
git push origin main
- &buildrpm
run:
name: Build dom0 rpm
command: |
cd ~/packaging/$PKG_NAME
make dom0-rpm
version: 2.1
jobs:
lint-and-test:
Expand Down Expand Up @@ -448,30 +418,6 @@ jobs:
- *setmetapackageversion
- *builddebianpackage

build-nightly-dom0-rpm:
machine:
image: ubuntu-1604:201903-01
steps:
- checkout
- *installgitlfs
- *clonesecuredropworkstation
- *getrpmnightlyversion
- *buildrpm
- *sign_rpm
- *addsshkeys
- *commitworkstationrpms

make-dom0-rpm:
machine:
image: ubuntu-1604:201903-01
steps:
- checkout
- *installgitlfs
- *clonesecuredropworkstation
- *getlatestreleasedversion
- *buildrpm
- *sign_rpm

build-buster-securedrop-workstation-config:
docker:
- image: circleci/python:3.7-buster
Expand Down Expand Up @@ -519,7 +465,6 @@ workflows:
- build-buster-securedrop-workstation-grsec
- build-buster-securedrop-workstation-config
- build-buster-securedrop-keyring
- make-dom0-rpm

# Nightly jobs for each package are run in series to ensure there are no
# conflicts or race conditions when committing deb packages to git-lfs.
Expand Down Expand Up @@ -549,6 +494,3 @@ workflows:
- build-nightly-buster-securedrop-workstation-config:
requires:
- build-nightly-buster-securedrop-workstation-svs-disp
# There is also a dom0 rpm build `build-nightly-dom0-rpm`
# intended for staging environments but it is temporarily
# disabled to enable pre-release QA of release candidate RPMs.
33 changes: 0 additions & 33 deletions devops/Dockerfile

This file was deleted.

32 changes: 0 additions & 32 deletions devops/ci-sign-rpm

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/build-debianpackage
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function build_source_tarball() {
git -C "$build_dir" checkout "$PKG_VERSION"
fi

(cd "$build_dir" && LC_ALL="C.UTF-8" python setup.py sdist)
(cd "$build_dir" && LC_ALL="C.UTF-8" python3 setup.py sdist)

# Initial tarball will contain timestamps from NOW, let's repack
# with timestamps from the changelog, which is static.
Expand Down

0 comments on commit e960cd9

Please sign in to comment.