Compare commits
No commits in common. "main" and "issue-93-handle-failing-pipelines" have entirely different histories.
main
...
issue-93-h
|
@ -1,7 +1,3 @@
|
||||||
# WARNING!
|
|
||||||
# THIS IS AN AUTOGENERATED FILE!
|
|
||||||
# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN!
|
|
||||||
|
|
||||||
name: Build Python Container
|
name: Build Python Container
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -10,72 +6,13 @@ on:
|
||||||
paths-ignore: ['README.md', '.gitignore', 'LICENSE', 'CONVENTIONS.md', 'ruff.toml']
|
paths-ignore: ['README.md', '.gitignore', 'LICENSE', 'CONVENTIONS.md', 'ruff.toml']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-image:
|
Package-Container:
|
||||||
runs-on: ubuntu-latest
|
uses: jmaa/workflows/.gitea/workflows/container.yaml@v6.21
|
||||||
container:
|
|
||||||
image: catthehacker/ubuntu:act-latest
|
|
||||||
env:
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
|
||||||
steps:
|
|
||||||
- run: apt-get update
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Setting up SSH
|
|
||||||
if: ${{ hashFiles('requirements_private.txt') != '' }}
|
|
||||||
uses: https://github.com/shimataro/ssh-key-action@v2.5.1
|
|
||||||
with:
|
with:
|
||||||
key: ${{ secrets.PIPELINE_WORKER_SSH_KEY }}
|
REGISTRY_DOMAIN: gitfub.space
|
||||||
name: id_rsa
|
REGISTRY_ORGANIZATION: jmaa
|
||||||
known_hosts: ${{ secrets.PIPELINE_WORKER_KNOWN_HOSTS }}
|
secrets:
|
||||||
config: |
|
DOCKER_USERNAME: ${{ secrets.PIPY_REPO_USER }}
|
||||||
Host gitfub
|
DOCKER_PASSWORD: ${{ secrets.PIPY_REPO_PASS }}
|
||||||
HostName gitfub.space
|
PIPELINE_WORKER_SSH_KEY: ${{ secrets.PIPELINE_WORKER_SSH_KEY }}
|
||||||
User ${{ secrets.PIPY_REPO_USER }}
|
PIPELINE_WORKER_KNOWN_HOSTS: ${{ secrets.PIPELINE_WORKER_KNOWN_HOSTS }}
|
||||||
|
|
||||||
- name: Download private dependencies
|
|
||||||
if: ${{ hashFiles('requirements_private.txt') != '' }}
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
mkdir -p private_deps
|
|
||||||
cd private_deps
|
|
||||||
while IFS=$" " read -r -a dependency_spec
|
|
||||||
do
|
|
||||||
if test -n "${dependency_spec[1]}"
|
|
||||||
then
|
|
||||||
git clone -v --single-branch --no-tags "${dependency_spec[0]}" --branch "${dependency_spec[1]}"
|
|
||||||
else
|
|
||||||
git clone -v --single-branch --no-tags "${dependency_spec[0]}"
|
|
||||||
fi
|
|
||||||
done < ../requirements_private.txt
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v2
|
|
||||||
|
|
||||||
- name: Set up Docker BuildX
|
|
||||||
uses: docker/setup-buildx-action@v2
|
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
registry: gitfub.space
|
|
||||||
username: ${{ secrets.PIPY_REPO_USER }}
|
|
||||||
password: ${{ secrets.PIPY_REPO_PASS }}
|
|
||||||
|
|
||||||
- name: Get Meta
|
|
||||||
id: meta
|
|
||||||
run: |
|
|
||||||
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
|
||||||
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v4
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile
|
|
||||||
platforms: |
|
|
||||||
linux/amd64
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
gitfub.space/jmaa/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
|
||||||
gitfub.space/jmaa/${{ steps.meta.outputs.REPO_NAME }}:latest
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
# WARNING!
|
|
||||||
# THIS IS AN AUTOGENERATED FILE!
|
|
||||||
# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN!
|
|
||||||
|
|
||||||
name: Package Python
|
name: Package Python
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -10,24 +6,11 @@ on:
|
||||||
paths-ignore: ['README.md', '.gitignore', 'LICENSE', 'CONVENTIONS.md', 'ruff.toml']
|
paths-ignore: ['README.md', '.gitignore', 'LICENSE', 'CONVENTIONS.md', 'ruff.toml']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Package-Python-And-Publish:
|
Package:
|
||||||
runs-on: ubuntu-latest
|
uses: jmaa/workflows/.gitea/workflows/python-package.yaml@v6.21
|
||||||
container:
|
with:
|
||||||
image: node:21-bookworm
|
REGISTRY_DOMAIN: gitfub.space
|
||||||
steps:
|
REGISTRY_ORGANIZATION: jmaa
|
||||||
- name: Setting up Python ${{ env.PYTHON_VERSION }} for ${{runner.arch}} ${{runner.os}}
|
secrets:
|
||||||
run: |
|
PIPY_REPO_USER: ${{ secrets.PIPY_REPO_USER }}
|
||||||
apt-get update
|
PIPY_REPO_PASS: ${{ secrets.PIPY_REPO_PASS }}
|
||||||
apt-get install -y python3 python3-pip
|
|
||||||
- name: Check out repository code
|
|
||||||
if: success()
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Installing Python Dependencies
|
|
||||||
if: success()
|
|
||||||
run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest --break-system-packages
|
|
||||||
- name: Build
|
|
||||||
if: success()
|
|
||||||
run: python3 -m build
|
|
||||||
- name: Publish
|
|
||||||
if: success()
|
|
||||||
run: python3 -m twine upload --repository-url "https://gitfub.space/api/packages/jmaa/pypi" -u ${{ secrets.PIPY_REPO_USER }} -p ${{ secrets.PIPY_REPO_PASS }} dist/*
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
# WARNING!
|
|
||||||
# THIS IS AN AUTOGENERATED FILE!
|
|
||||||
# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN!
|
|
||||||
|
|
||||||
name: Run Python tests (through Pytest)
|
name: Run Python tests (through Pytest)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
# WARNING!
|
|
||||||
# THIS IS AN AUTOGENERATED FILE!
|
|
||||||
# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN!
|
|
||||||
|
|
||||||
name: Verify Python project can be installed, loaded and have version checked
|
name: Verify Python project can be installed, loaded and have version checked
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
<!-- WARNING! -->
|
|
||||||
<!-- THIS IS AN AUTOGENERATED FILE! -->
|
|
||||||
<!-- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! -->
|
|
||||||
|
|
||||||
# Conventions
|
# Conventions
|
||||||
|
|
||||||
When contributing code to this project, you MUST follow the requirements
|
When contributing code to this project, you MUST follow the requirements
|
||||||
|
|
10
README.md
10
README.md
|
@ -1,6 +1,7 @@
|
||||||
<!-- WARNING! -->
|
<!--- WARNING --->
|
||||||
<!-- THIS IS AN AUTOGENERATED FILE! -->
|
<!--- THIS IS AN AUTO-GENERATED FILE --->
|
||||||
<!-- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! -->
|
<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN --->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Aider Gitea
|
# Aider Gitea
|
||||||
|
@ -17,9 +18,6 @@ When such an issue is found, it:
|
||||||
3. Runs tests and code quality checks.
|
3. Runs tests and code quality checks.
|
||||||
4. Creates a pull request with the solution.
|
4. Creates a pull request with the solution.
|
||||||
|
|
||||||
Inspired by [the AI workflows](https://github.com/oscoreio/ai-workflows/)
|
|
||||||
project.
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
An application token must be supplied for the `gitea_token` secret. This must
|
An application token must be supplied for the `gitea_token` secret. This must
|
||||||
|
|
|
@ -134,21 +134,17 @@ def bash_cmd(*commands: str) -> str:
|
||||||
|
|
||||||
|
|
||||||
AIDER_TEST = bash_cmd(
|
AIDER_TEST = bash_cmd(
|
||||||
'echo "Setting up virtual environment"'
|
|
||||||
'virtualenv venv',
|
'virtualenv venv',
|
||||||
'echo "Activating virtual environment"'
|
|
||||||
'source venv/bin/activate',
|
'source venv/bin/activate',
|
||||||
'echo "Installing package"'
|
|
||||||
'pip install -e .',
|
'pip install -e .',
|
||||||
'echo "Testing package"'
|
|
||||||
'pytest test',
|
'pytest test',
|
||||||
)
|
)
|
||||||
|
|
||||||
RUFF_FORMAT_AND_AUTO_FIX = bash_cmd(
|
RUFF_FORMAT_AND_AUTO_FIX = bash_cmd(
|
||||||
'ruff format --silent',
|
'ruff format',
|
||||||
'ruff check --fix --ignore RUF022 --ignore PGH004 --silent',
|
'ruff check --fix --ignore RUF022 --ignore PGH004',
|
||||||
'ruff format --silent',
|
'ruff format',
|
||||||
'ruff check --fix --ignore RUF022 --ignore PGH004 --silent',
|
'ruff check --fix --ignore RUF022 --ignore PGH004',
|
||||||
)
|
)
|
||||||
|
|
||||||
AIDER_LINT = bash_cmd(
|
AIDER_LINT = bash_cmd(
|
||||||
|
@ -158,21 +154,14 @@ AIDER_LINT = bash_cmd(
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
LLM_MESSAGE_FORMAT = """{issue}
|
LLM_MESSAGE_FORMAT = (
|
||||||
|
"""{issue}\nDo not wait for explicit approval before working on code changes."""
|
||||||
|
)
|
||||||
|
|
||||||
Go ahead with the changes you deem appropriate without waiting for explicit approval.
|
# CODE_MODEL = 'ollama/gemma3:4b'
|
||||||
|
CODE_MODEL = 'o4-mini'
|
||||||
Do not draft changes beforehand; produce changes only once prompted for a specific file.
|
|
||||||
"""
|
|
||||||
|
|
||||||
CODE_MODEL = None
|
|
||||||
EVALUATOR_MODEL = 'ollama/gemma3:27b'
|
EVALUATOR_MODEL = 'ollama/gemma3:27b'
|
||||||
|
|
||||||
MODEL_EDIT_MODES = {
|
|
||||||
'ollama/qwen3:32b': 'diff',
|
|
||||||
'ollama/hf.co/unsloth/Qwen3-30B-A3B-GGUF:Q4_K_M': 'diff',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def create_aider_command(issue: str) -> list[str]:
|
def create_aider_command(issue: str) -> list[str]:
|
||||||
l = [
|
l = [
|
||||||
|
@ -189,16 +178,8 @@ def create_aider_command(issue: str) -> list[str]:
|
||||||
'--auto-test',
|
'--auto-test',
|
||||||
'--no-auto-lint',
|
'--no-auto-lint',
|
||||||
'--yes',
|
'--yes',
|
||||||
'--disable-playwright',
|
|
||||||
'--timeout',
|
|
||||||
str(10_000),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
if edit_format := MODEL_EDIT_MODES.get(CODE_MODEL):
|
|
||||||
l.append('--edit-format')
|
|
||||||
l.append(edit_format)
|
|
||||||
del edit_format
|
|
||||||
|
|
||||||
for key in secrets.llm_api_keys():
|
for key in secrets.llm_api_keys():
|
||||||
l += ['--api-key', key]
|
l += ['--api-key', key]
|
||||||
|
|
||||||
|
@ -216,7 +197,7 @@ def create_aider_command(issue: str) -> list[str]:
|
||||||
l.append('--model')
|
l.append('--model')
|
||||||
l.append(CODE_MODEL)
|
l.append(CODE_MODEL)
|
||||||
|
|
||||||
if CODE_MODEL.startswith('ollama/') and False:
|
if CODE_MODEL.startswith('ollama/'):
|
||||||
l.append('--auto-lint')
|
l.append('--auto-lint')
|
||||||
|
|
||||||
if True:
|
if True:
|
||||||
|
@ -348,6 +329,7 @@ def run_cmd(cmd: list[str], cwd: Path | None = None, check=True) -> bool:
|
||||||
def issue_solution_round(repository_path, issue_content):
|
def issue_solution_round(repository_path, issue_content):
|
||||||
# Primary Aider command
|
# Primary Aider command
|
||||||
aider_command = create_aider_command(issue_content)
|
aider_command = create_aider_command(issue_content)
|
||||||
|
print(aider_command)
|
||||||
aider_did_not_crash = run_cmd(
|
aider_did_not_crash = run_cmd(
|
||||||
aider_command,
|
aider_command,
|
||||||
repository_path,
|
repository_path,
|
||||||
|
@ -363,17 +345,10 @@ def issue_solution_round(repository_path, issue_content):
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def remove_thinking_tokens(text: str) -> str:
|
|
||||||
text = re.sub(r'^\s*<think>.*?</think>', '', text, flags=re.MULTILINE | re.DOTALL)
|
|
||||||
text = text.strip()
|
|
||||||
return text
|
|
||||||
|
|
||||||
assert remove_thinking_tokens('<think>Hello</think>\nWorld\n') == 'World'
|
|
||||||
assert remove_thinking_tokens('<think>\nHello\n</think>\nWorld\n') == 'World'
|
|
||||||
assert remove_thinking_tokens('\n<think>\nHello\n</think>\nWorld\n') == 'World'
|
|
||||||
|
|
||||||
def run_ollama(cwd: Path, texts: list[str]) -> str:
|
def run_ollama(cwd: Path, texts: list[str]) -> str:
|
||||||
cmd = ['ollama', 'run', EVALUATOR_MODEL.removeprefix('ollama/')]
|
cmd = ['ollama', 'run', EVALUATOR_MODEL.removeprefix('ollama/')]
|
||||||
|
print(cmd)
|
||||||
process = subprocess.Popen(
|
process = subprocess.Popen(
|
||||||
cmd,
|
cmd,
|
||||||
cwd=cwd,
|
cwd=cwd,
|
||||||
|
@ -383,22 +358,20 @@ def run_ollama(cwd: Path, texts: list[str]) -> str:
|
||||||
text=True,
|
text=True,
|
||||||
)
|
)
|
||||||
stdout, stderr = process.communicate('\n'.join(texts))
|
stdout, stderr = process.communicate('\n'.join(texts))
|
||||||
stdout = remove_thinking_tokens(stdout)
|
print(stdout)
|
||||||
return stdout
|
return stdout
|
||||||
|
|
||||||
|
|
||||||
def parse_yes_no_answer(text: str) -> bool | None:
|
def parse_yes_no_answer(text: str) -> bool | None:
|
||||||
interword = '\n \t.,?-'
|
text = text.lower().strip()
|
||||||
text = text.lower().strip(interword)
|
words = text.split('\n \t.,?-')
|
||||||
words = text.split(interword)
|
print(words)
|
||||||
if words[-1] in {'yes', 'agree'}:
|
if words[-1] in {'yes', 'agree'}:
|
||||||
return True
|
return True
|
||||||
if words[-1] in {'no', 'disagree'}:
|
if words[-1] in {'no', 'disagree'}:
|
||||||
return False
|
return False
|
||||||
return None
|
return None
|
||||||
|
|
||||||
assert parse_yes_no_answer('Yes.') == True
|
|
||||||
assert parse_yes_no_answer('no') == False
|
|
||||||
|
|
||||||
def run_ollama_and_get_yes_or_no(cwd, initial_texts: list[str]) -> bool:
|
def run_ollama_and_get_yes_or_no(cwd, initial_texts: list[str]) -> bool:
|
||||||
texts = list(initial_texts)
|
texts = list(initial_texts)
|
||||||
|
@ -548,17 +521,6 @@ def solve_issues_in_repository(
|
||||||
issue_number,
|
issue_number,
|
||||||
client,
|
client,
|
||||||
)
|
)
|
||||||
seen_issues_db.mark_as_seen(issue_url, str(issue_number))
|
|
||||||
seen_issues_db.update_pr_info(
|
|
||||||
issue_url,
|
|
||||||
issue_resolution.pull_request_id,
|
|
||||||
issue_resolution.pull_request_url,
|
|
||||||
)
|
|
||||||
logger.info(
|
|
||||||
'Stored PR #%s information for issue #%s',
|
|
||||||
issue_resolution.pull_request_id,
|
|
||||||
issue_number,
|
|
||||||
)
|
|
||||||
|
|
||||||
# TODO: PR comment handling disabled for now due to missing functionality
|
# TODO: PR comment handling disabled for now due to missing functionality
|
||||||
if False:
|
if False:
|
||||||
|
@ -581,6 +543,17 @@ def solve_issues_in_repository(
|
||||||
Path(repository_path),
|
Path(repository_path),
|
||||||
client,
|
client,
|
||||||
)
|
)
|
||||||
|
seen_issues_db.mark_as_seen(issue_url, str(issue_number))
|
||||||
|
seen_issues_db.update_pr_info(
|
||||||
|
issue_url,
|
||||||
|
issue_resolution.pull_request_id,
|
||||||
|
issue_resolution.pull_request_url,
|
||||||
|
)
|
||||||
|
logger.info(
|
||||||
|
'Stored PR #%s information for issue #%s',
|
||||||
|
issue_resolution.pull_request_id,
|
||||||
|
issue_number,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def handle_pr_comments(
|
def handle_pr_comments(
|
||||||
|
@ -659,7 +632,5 @@ def handle_failing_pipelines(
|
||||||
check=False,
|
check=False,
|
||||||
)
|
)
|
||||||
run_cmd(
|
run_cmd(
|
||||||
['git', 'push', 'origin', branch_name],
|
['git', 'push', 'origin', branch_name], repository_path, check=False,
|
||||||
repository_path,
|
|
||||||
check=False,
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -42,13 +42,13 @@ def parse_args():
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--interval',
|
'--interval',
|
||||||
type=int,
|
type=int,
|
||||||
default=30,
|
default=300,
|
||||||
help='Interval in seconds between checks in daemon mode (default: 300)',
|
help='Interval in seconds between checks in daemon mode (default: 300)',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--aider-model',
|
'--aider-model',
|
||||||
help='Model to use for generating code (overrides default)',
|
help='Model to use for generating code (overrides default)',
|
||||||
required=True,
|
default=None,
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--evaluator-model',
|
'--evaluator-model',
|
||||||
|
@ -65,7 +65,9 @@ def main():
|
||||||
# Override default models if provided
|
# Override default models if provided
|
||||||
import aider_gitea as core
|
import aider_gitea as core
|
||||||
|
|
||||||
|
if args.aider_model:
|
||||||
core.CODE_MODEL = args.aider_model
|
core.CODE_MODEL = args.aider_model
|
||||||
|
if args.evaluator_model:
|
||||||
core.EVALUATOR_MODEL = args.evaluator_model
|
core.EVALUATOR_MODEL = args.evaluator_model
|
||||||
|
|
||||||
seen_issues_db = SeenIssuesDB()
|
seen_issues_db = SeenIssuesDB()
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = '0.1.10'
|
__version__ = '0.1.6'
|
||||||
|
|
31
setup.py
31
setup.py
|
@ -1,9 +1,10 @@
|
||||||
# WARNING!
|
# WARNING
|
||||||
# THIS IS AN AUTOGENERATED FILE!
|
#
|
||||||
# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN!
|
# THIS IS AN AUTOGENERATED FILE.
|
||||||
|
#
|
||||||
|
# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN.
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
@ -22,9 +23,6 @@ When such an issue is found, it:
|
||||||
3. Runs tests and code quality checks.
|
3. Runs tests and code quality checks.
|
||||||
4. Creates a pull request with the solution.
|
4. Creates a pull request with the solution.
|
||||||
|
|
||||||
Inspired by [the AI workflows](https://github.com/oscoreio/ai-workflows/)
|
|
||||||
project.
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
An application token must be supplied for the `gitea_token` secret. This must
|
An application token must be supplied for the `gitea_token` secret. This must
|
||||||
|
@ -87,28 +85,13 @@ A code automation tool that integrates Gitea with Aider to automatically solve i
|
||||||
|
|
||||||
|
|
||||||
def parse_version_file(text: str) -> str:
|
def parse_version_file(text: str) -> str:
|
||||||
text = re.sub('^#.*', '', text, flags=re.MULTILINE)
|
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
||||||
match = re.match(r'^\s*__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
|
||||||
if match is None:
|
if match is None:
|
||||||
msg = 'Malformed _version.py file!'
|
msg = 'Malformed _version.py file!'
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
return match.group(2)
|
return match.group(2)
|
||||||
|
|
||||||
|
|
||||||
def find_python_packages() -> list[str]:
|
|
||||||
"""
|
|
||||||
Find all python packages. (Directories containing __init__.py files.)
|
|
||||||
"""
|
|
||||||
root_path = Path(PACKAGE_NAME)
|
|
||||||
packages: set[str] = set([PACKAGE_NAME])
|
|
||||||
|
|
||||||
# Search recursively
|
|
||||||
for init_file in root_path.rglob('__init__.py'):
|
|
||||||
packages.add(str(init_file.parent).replace('/', '.'))
|
|
||||||
|
|
||||||
print(f'Found following packages: {packages}')
|
|
||||||
return sorted(packages)
|
|
||||||
|
|
||||||
with open(PACKAGE_NAME + '/_version.py') as f:
|
with open(PACKAGE_NAME + '/_version.py') as f:
|
||||||
version = parse_version_file(f.read())
|
version = parse_version_file(f.read())
|
||||||
|
|
||||||
|
@ -128,7 +111,7 @@ setup(
|
||||||
author='Jon Michael Aanes',
|
author='Jon Michael Aanes',
|
||||||
author_email='jonjmaa@gmail.com',
|
author_email='jonjmaa@gmail.com',
|
||||||
url='https://gitfub.space/Jmaa/' + PACKAGE_NAME,
|
url='https://gitfub.space/Jmaa/' + PACKAGE_NAME,
|
||||||
packages=find_python_packages(),
|
packages=[PACKAGE_NAME],
|
||||||
install_requires=REQUIREMENTS_MAIN,
|
install_requires=REQUIREMENTS_MAIN,
|
||||||
extras_require={
|
extras_require={
|
||||||
'test': REQUIREMENTS_TEST,
|
'test': REQUIREMENTS_TEST,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user