Skip to content

Commit 2043bb8

Browse files
committed
CHange deployed package name to cecli, update deployment pipelines
1 parent 8c98a4c commit 2043bb8

4 files changed

Lines changed: 106 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PyPI Release
1+
name: PyPI Release (cecli + aider-ce)
22

33
on:
44
workflow_dispatch:
@@ -7,7 +7,7 @@ on:
77
- 'v[0-9]+.[0-9]+.[0-9]+'
88

99
jobs:
10-
build_and_publish:
10+
publish_cecli:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
@@ -20,12 +20,55 @@ jobs:
2020
with:
2121
python-version: 3.x
2222

23+
- name: Rename pyproject.toml for cecli build
24+
run: |
25+
# Backup original pyproject.toml if it exists
26+
if [ -f "pyproject.toml" ]; then
27+
mv pyproject.toml pyproject.toml.backup
28+
fi
29+
# Copy cecli.pyproject.toml to pyproject.toml
30+
cp cecli.pyproject.toml pyproject.toml
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install build setuptools wheel twine importlib-metadata==7.2.1
36+
37+
- name: Build and publish cecli
38+
env:
39+
TWINE_USERNAME: __token__
40+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
41+
run: |
42+
python -m build
43+
twine upload dist/*
44+
45+
- name: Restore original pyproject.toml
46+
run: |
47+
# Restore original pyproject.toml if it was backed up
48+
if [ -f "pyproject.toml.backup" ]; then
49+
mv pyproject.toml.backup pyproject.toml
50+
fi
51+
52+
publish_aider_ce:
53+
runs-on: ubuntu-latest
54+
needs: publish_cecli
55+
steps:
56+
- name: Checkout code
57+
uses: actions/checkout@v4
58+
with:
59+
fetch-depth: 0
60+
61+
- name: Set up Python
62+
uses: actions/setup-python@v5
63+
with:
64+
python-version: 3.x
65+
2366
- name: Install dependencies
2467
run: |
2568
python -m pip install --upgrade pip
2669
pip install build setuptools wheel twine importlib-metadata==7.2.1
2770
28-
- name: Build and publish
71+
- name: Build and publish aider-ce (shim package)
2972
env:
3073
TWINE_USERNAME: __token__
3174
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
!/HISTORY.md
2626
!/LICENSE.txt
2727
!/MANIFEST.in
28+
!/cecli.pyproject.toml
2829
!/pyproject.toml
2930
!/pytest.ini
3031
!/README.md

cecli.pyproject.toml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
[project]
2+
name = "cecli"
3+
description = "we also can't pronounce cecli"
4+
readme = "README.md"
5+
classifiers = [
6+
"Development Status :: 4 - Beta",
7+
"Environment :: Console",
8+
"Intended Audience :: Developers",
9+
"License :: OSI Approved :: Apache Software License",
10+
"Programming Language :: Python :: 3",
11+
"Programming Language :: Python :: 3.10",
12+
"Programming Language :: Python :: 3.11",
13+
"Programming Language :: Python :: 3.12",
14+
"Programming Language :: Python",
15+
"Topic :: Software Development",
16+
]
17+
requires-python = ">=3.10"
18+
dynamic = ["dependencies", "optional-dependencies", "version"]
19+
20+
[project.urls]
21+
Homepage = "https://github.com/dwash96/cecli"
22+
Documentation = "https://github.com/dwash96/cecli"
23+
Repository = "https://github.com/dwash96/cecli"
24+
25+
[project.scripts]
26+
aider-ce = "cecli.main:main"
27+
"cecli" = "cecli.main:main"
28+
"ce.cli" = "cecli.main:main"
29+
30+
[tool.setuptools.dynamic]
31+
dependencies = { file = "requirements/requirements.in" }
32+
33+
[tool.setuptools.dynamic.optional-dependencies]
34+
dev = { file = "requirements/requirements-dev.in" }
35+
help = { file = "requirements/requirements-help.in" }
36+
playwright = { file = "requirements/requirements-playwright.in" }
37+
tui = { file = "requirements/requirements-tui.in" }
38+
39+
[tool.setuptools]
40+
include-package-data = true
41+
42+
[tool.setuptools.packages.find]
43+
include = ["cecli*"]
44+
45+
[build-system]
46+
requires = ["setuptools>=68", "setuptools_scm[toml]>=8"]
47+
build-backend = "setuptools.build_meta"
48+
49+
[tool.setuptools_scm]
50+
write_to = "cecli/_version.py"
51+
local_scheme = "no-local-version"
52+
53+
[tool.codespell]
54+
skip = "*.svg,Gemfile.lock,tests/fixtures/*,cecli/website/assets/*"
55+
write-changes = true

pyproject.toml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[project]
33
name = "aider-ce"
4-
description = "Aider is AI pair programming in your terminal"
4+
description = "⚠️ DEPRECATED: This package has been renamed to 'cecli'. Please install 'cecli' instead. ⚠️ aider-ce - now available as 'cecli' package."
55
readme = "README.md"
66
classifiers = [
77
"Development Status :: 4 - Beta",
@@ -16,7 +16,8 @@ classifiers = [
1616
"Topic :: Software Development",
1717
]
1818
requires-python = ">=3.10"
19-
dynamic = ["dependencies", "optional-dependencies", "version"]
19+
dependencies = ["cecli"]
20+
dynamic = ["optional-dependencies", "version"]
2021

2122
[project.urls]
2223
Homepage = "https://github.com/dwash96/aider-ce"
@@ -27,13 +28,7 @@ aider-ce = "cecli.main:main"
2728
"ce.cli" = "cecli.main:main"
2829

2930
[tool.setuptools.dynamic]
30-
dependencies = { file = "requirements/requirements.in" }
31-
32-
[tool.setuptools.dynamic.optional-dependencies]
33-
dev = { file = "requirements/requirements-dev.in" }
34-
help = { file = "requirements/requirements-help.in" }
35-
playwright = { file = "requirements/requirements-playwright.in" }
36-
tui = { file = "requirements/requirements-tui.in" }
31+
optional-dependencies = { file = "requirements/requirements-dev.in" }
3732

3833
[tool.setuptools]
3934
include-package-data = true

0 commit comments

Comments
 (0)