Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 19 additions & 26 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,25 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
name: Configure pip caching

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
enable-cache: true

- name: Install dependencies
run: |
pip install -e '.[test]'
run: uv sync --locked --all-groups --dev
- name: Run tests
run: |
pytest
uv run pytest

deploy:
runs-on: ubuntu-latest
needs: [test]
Expand All @@ -38,20 +37,14 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: actions/cache@v3
name: Configure pip caching

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
path: ~/.cache/pip
key: ${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-publish-pip-
enable-cache: true

- name: Install dependencies
run: |
pip install setuptools wheel twine
run: uv sync --locked --all-groups --dev

- name: Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload --verbose dist/*
run: uv publish
22 changes: 10 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
name: Configure pip caching

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
enable-cache: true

- name: Install dependencies
run: |
pip install -e '.[test]'
run: uv sync --locked --all-groups --dev
- name: Run tests
run: |
pytest
uv run pytest
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

38 changes: 38 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[project]
name = "feed-to-sqlite"
version = "0.6.0"
description = "Save an RSS or ATOM feed to a SQLITE database"
readme = "README.md"
authors = [{ name = "Chris Amico", email = "eyeseast@gmail.com" }]
requires-python = ">=3.9"
dependencies = ["sqlite-utils>=2.22", "httpx", "feedparser", "awesome-slugify"]
license = "Apache-2.0"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: Apache Software License",
"Topic :: Database",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]

[build-system]
requires = ["uv_build>=0.8.13,<0.9.0"]
build-backend = "uv_build"

[tool.uv.build-backend]
module-root = ""

[dependency-groups]
test = ["pytest>=8.4.1"]

[project.scripts]
feed-to-sqlite = "feed_to_sqlite.cli:cli"

[project.urls]
homepage = "https://github.com/eyeseast/feed-to-sqlite"
source = "https://github.com/eyeseast/feed-to-sqlite"
47 changes: 0 additions & 47 deletions setup.py

This file was deleted.

Loading