Skip to content

Commit

Permalink
Remove snapcraft build
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosottile committed Jan 11, 2021
1 parent e4c8d58 commit 86b0798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 37 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,37 +65,6 @@ jobs:
path: |
dist_actions/Syncplay_${{ env.VER }}.dmg
snapcraft:
name: Build Snap
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Snapcraft with LXD
uses: samuelmeuli/action-snapcraft@v1
with:
use_lxd: true

- name: Build
run: sg lxd -c 'snapcraft --use-lxd'

- name: Prepare for deployment
run: |
ls -al
export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
echo "VER=$VER" >> $GITHUB_ENV
mkdir dist_actions
mv syncplay_build_amd64.snap dist_actions/syncplay_${VER}_amd64.snap
ls -al dist_actions
- name: Deploy
uses: actions/upload-artifact@v2
with:
name: syncplay_${{ env.VER }}_amd64.snap
path: |
dist_actions/syncplay_${{ env.VER }}_amd64.snap
appimage:
name: Build AppImage
runs-on: ubuntu-latest
Expand Down
9 changes: 3 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ def read(fname):
with open(fname, 'r') as f:
return f.read()

if os.getenv('SNAPCRAFT_PART_BUILD', None) is not None:
installRequirements = ["pyasn1"] + read('requirements.txt').splitlines()
else:
installRequirements = read('requirements.txt').splitlines() +\
read('requirements_gui.txt').splitlines()
installRequirements = read('requirements.txt').splitlines() +\
read('requirements_gui.txt').splitlines()

setuptools.setup(
name="syncplay",
Expand Down Expand Up @@ -55,7 +52,7 @@ def read(fname):
"Natural Language :: German",
"Natural Language :: Italian",
"Natural Language :: Russian",
"Natural Language :: Spanish",
"Natural Language :: Spanish",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
Expand Down

0 comments on commit 86b0798

Please sign in to comment.