Skip to content

Commit 51dc3e9

Browse files
author
arch
committed
fix pip package
1 parent eedd71b commit 51dc3e9

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

build_appimage.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
echo "WARNING: The Full application in the AppImage only work on the build system. Only the Generator work portable for now!"
4+
35
if [ ! -f ./linuxdeploy-x86_64.AppImage ]; then
46
wget -c "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
57
fi

setup.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import setuptools
22
import os
3+
import glob
34
import sys
45
import git # pip install gitpython
56

7+
from pathlib import Path
8+
69
PACKAGE = 'funscript_editor'
710
DESCRIPTION = "A tool to create funscripts"
811
INCLUDE_REQUIREMENTS = False
12+
DOCS = ['docs/app/site', 'docs/code/_build/html']
913

1014
TAGS = sorted(git.Repo('.').tags, key=lambda x: x.commit.committed_datetime) if os.path.exists('.git') else []
1115
VERSION = str(TAGS[-1]) if len(TAGS) > 0 else "0.0.0"
@@ -15,10 +19,11 @@
1519
if x.startswith(PACKAGE+os.sep) \
1620
and os.path.exists(x)]
1721

18-
docs = [os.path.join('.', x) \
19-
for x in git.Git('.').ls_files().splitlines() \
20-
if x.startswith('docs'+os.sep) \
21-
and os.path.exists(x)]
22+
docs = []
23+
for docs_dir in DOCS:
24+
docs += [os.path.join('.', x) \
25+
for x in Path(docs_dir).rglob('**/*') \
26+
if os.path.isfile(x)]
2227

2328
with open("README.md", "r", encoding="utf-8") as f:
2429
long_description = f.read()
@@ -34,6 +39,7 @@
3439

3540
with open(os.path.join(PACKAGE, 'VERSION.txt'), 'w') as f:
3641
f.write(VERSION)
42+
src += [os.path.join('..', PACKAGE, 'VERSION.txt')]
3743

3844
setuptools.setup(
3945
name=PACKAGE.replace('_', '-'),

0 commit comments

Comments
 (0)