feedwell 0.1.0a1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ test:
15
+ name: Test on Python ${{ matrix.python-version }}
16
+ runs-on: ubuntu-latest
17
+
18
+ strategy:
19
+ matrix:
20
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - name: Set up Python ${{ matrix.python-version }}
26
+ uses: actions/setup-python@v5
27
+ with:
28
+ python-version: ${{ matrix.python-version }}
29
+
30
+ - name: Install dependencies
31
+ run: |
32
+ python -m pip install --upgrade pip
33
+ pip install -e ".[dev]"
34
+
35
+ - name: Run tests
36
+ run: pytest tests/ -v --tb=short
@@ -0,0 +1,94 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+ workflow_dispatch:
8
+ inputs:
9
+ publish_to:
10
+ description: 'Where to publish the package'
11
+ required: true
12
+ type: choice
13
+ options:
14
+ - 'testpypi'
15
+ - 'pypi'
16
+ default: 'testpypi'
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ build:
23
+ name: Build distribution
24
+ runs-on: ubuntu-latest
25
+
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+
29
+ - name: Set up Python
30
+ uses: actions/setup-python@v5
31
+ with:
32
+ python-version: "3.x"
33
+
34
+ - name: Install build dependencies
35
+ run: |
36
+ python -m pip install --upgrade pip
37
+ pip install build
38
+
39
+ - name: Build package
40
+ run: python -m build
41
+
42
+ - name: Store the distribution packages
43
+ uses: actions/upload-artifact@v4
44
+ with:
45
+ name: python-package-distributions
46
+ path: dist/
47
+
48
+ publish-to-pypi:
49
+ name: Publish to PyPI
50
+ needs: [build]
51
+ runs-on: ubuntu-latest
52
+ if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_to == 'pypi')
53
+
54
+ environment:
55
+ name: pypi
56
+ url: https://pypi.org/p/feedwell
57
+
58
+ permissions:
59
+ id-token: write # IMPORTANT: mandatory for trusted publishing
60
+
61
+ steps:
62
+ - name: Download all the dists
63
+ uses: actions/download-artifact@v4
64
+ with:
65
+ name: python-package-distributions
66
+ path: dist/
67
+
68
+ - name: Publish distribution to PyPI
69
+ uses: pypa/gh-action-pypi-publish@release/v1
70
+
71
+ publish-to-testpypi:
72
+ name: Publish to TestPyPI
73
+ needs: [build]
74
+ runs-on: ubuntu-latest
75
+ if: github.event_name == 'workflow_dispatch' && github.event.inputs.publish_to == 'testpypi'
76
+
77
+ environment:
78
+ name: testpypi
79
+ url: https://test.pypi.org/p/feedwell
80
+
81
+ permissions:
82
+ id-token: write # IMPORTANT: mandatory for trusted publishing
83
+
84
+ steps:
85
+ - name: Download all the dists
86
+ uses: actions/download-artifact@v4
87
+ with:
88
+ name: python-package-distributions
89
+ path: dist/
90
+
91
+ - name: Publish distribution to TestPyPI
92
+ uses: pypa/gh-action-pypi-publish@release/v1
93
+ with:
94
+ repository-url: https://test.pypi.org/legacy/
@@ -0,0 +1,13 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .venv/
4
+ venv/
5
+ *.egg-info/
6
+ dist/
7
+ build/
8
+ .pytest_cache/
9
+ .mypy_cache/
10
+ .ruff_cache/
11
+ .coverage
12
+ htmlcov/
13
+ .DS_Store
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.5
2
+ Name: feedwell
3
+ Version: 0.1.0a1
4
+ Summary: All social media accounts suck. This one just sucks less.
5
+ Project-URL: Homepage, https://github.com/aclark4life/feedwell
6
+ Project-URL: Repository, https://github.com/aclark4life/feedwell
7
+ Project-URL: Issues, https://github.com/aclark4life/feedwell/issues
8
+ Author: Jeffrey 'Alex' Clark
9
+ License: MIT
10
+ Requires-Python: >=3.10
11
+ Provides-Extra: dev
12
+ Requires-Dist: mypy>=1.0.0; extra == 'dev'
13
+ Requires-Dist: pre-commit>=3.0.0; extra == 'dev'
14
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
15
+ Requires-Dist: ruff>=0.8.0; extra == 'dev'
16
+ Description-Content-Type: text/markdown
17
+
18
+ # feedwell
19
+
20
+ > All social media accounts suck. This one just sucks less.
21
+
22
+ A unified, local-first client for your social media feeds — one place to
23
+ read and interact with everything, instead of juggling a pile of terrible
24
+ individual apps.
25
+
26
+ ## Install
27
+
28
+ ```bash
29
+ pip install feedwell
30
+ ```
31
+
32
+ ## Run
33
+
34
+ ```bash
35
+ feedwell
36
+ ```
37
+
38
+ This launches a local server and opens it in your browser.
39
+
40
+ ## Status
41
+
42
+ Early scaffolding. Not yet useful. 🙂
@@ -0,0 +1,25 @@
1
+ # feedwell
2
+
3
+ > All social media accounts suck. This one just sucks less.
4
+
5
+ A unified, local-first client for your social media feeds — one place to
6
+ read and interact with everything, instead of juggling a pile of terrible
7
+ individual apps.
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ pip install feedwell
13
+ ```
14
+
15
+ ## Run
16
+
17
+ ```bash
18
+ feedwell
19
+ ```
20
+
21
+ This launches a local server and opens it in your browser.
22
+
23
+ ## Status
24
+
25
+ Early scaffolding. Not yet useful. 🙂
@@ -0,0 +1,58 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "feedwell"
7
+ version = "0.1.0a1"
8
+ description = "All social media accounts suck. This one just sucks less."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = {text = "MIT"}
12
+ authors = [
13
+ {name = "Jeffrey 'Alex' Clark"},
14
+ ]
15
+
16
+ dependencies = []
17
+
18
+ [project.urls]
19
+ Homepage = "https://github.com/aclark4life/feedwell"
20
+ Repository = "https://github.com/aclark4life/feedwell"
21
+ Issues = "https://github.com/aclark4life/feedwell/issues"
22
+
23
+ [project.optional-dependencies]
24
+ dev = [
25
+ "pytest>=7.0.0",
26
+ "pre-commit>=3.0.0",
27
+ "ruff>=0.8.0",
28
+ "mypy>=1.0.0",
29
+ ]
30
+
31
+ [project.scripts]
32
+ feedwell = "feedwell.app:main"
33
+
34
+ [tool.hatch.build.targets.wheel]
35
+ packages = ["src/feedwell"]
36
+
37
+ [tool.pytest.ini_options]
38
+ testpaths = ["tests"]
39
+
40
+ [tool.ruff]
41
+ line-length = 100
42
+ target-version = "py310"
43
+
44
+ [tool.ruff.lint]
45
+ select = [
46
+ "E",
47
+ "W",
48
+ "F",
49
+ "I",
50
+ "B",
51
+ "C4",
52
+ "UP",
53
+ ]
54
+ ignore = []
55
+
56
+ [tool.ruff.format]
57
+ quote-style = "double"
58
+ indent-style = "space"
@@ -0,0 +1,3 @@
1
+ """feedwell package."""
2
+
3
+ __version__ = "0.1.0a1"
@@ -0,0 +1,51 @@
1
+ """feedwell - All social media accounts suck. This one just sucks less.
2
+
3
+ Placeholder entry point: launches a minimal local web server and opens it
4
+ in the default browser. This will be replaced by the real Django app.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ import http.server
10
+ import socketserver
11
+ import threading
12
+ import webbrowser
13
+
14
+ PORT = 8000
15
+
16
+ HTML = b"""<!doctype html>
17
+ <html>
18
+ <head><title>feedwell</title></head>
19
+ <body style="font-family: sans-serif; max-width: 40rem; margin: 4rem auto;">
20
+ <h1>feedwell</h1>
21
+ <p>All social media accounts suck. This one just sucks less.</p>
22
+ <p>(placeholder - real app coming soon)</p>
23
+ </body>
24
+ </html>
25
+ """
26
+
27
+
28
+ class Handler(http.server.BaseHTTPRequestHandler):
29
+ def do_GET(self) -> None:
30
+ self.send_response(200)
31
+ self.send_header("Content-Type", "text/html")
32
+ self.end_headers()
33
+ self.wfile.write(HTML)
34
+
35
+ def log_message(self, format: str, *args) -> None: # noqa: A002
36
+ pass
37
+
38
+
39
+ def main() -> None:
40
+ with socketserver.TCPServer(("127.0.0.1", PORT), Handler) as httpd:
41
+ url = f"http://127.0.0.1:{PORT}"
42
+ print(f"feedwell running at {url} (Ctrl+C to stop)")
43
+ threading.Timer(0.5, lambda: webbrowser.open(url)).start()
44
+ try:
45
+ httpd.serve_forever()
46
+ except KeyboardInterrupt:
47
+ print("\nstopping feedwell")
48
+
49
+
50
+ if __name__ == "__main__":
51
+ main()
@@ -0,0 +1,7 @@
1
+ """Basic smoke tests for feedwell."""
2
+
3
+ from feedwell import __version__
4
+
5
+
6
+ def test_version() -> None:
7
+ assert __version__