Skip to content

Commit

Permalink
chore(release): v0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vladkens committed Jan 1, 2025
1 parent c9bad5f commit 260d170
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
.ruff_cache/
.coverage
accounts/
results-raw/
results-parsed/
accounts.db*
data/
data_media/
dist/
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,15 @@ jobs:
- name: install dependencies
run: pip install -e .[dev]

- name: lint
run: make lint

- name: test
run: make test
- run: make lint
- run: make test

release:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-latest
needs: test
permissions:
contents: write
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ install:
pip install -e .[dev]
python -m build

build:
python -m build --sdist --wheel --outdir dist/ .

lint:
@# https://docs.astral.sh/ruff/settings/#sorting-imports
@ruff check --select I --fix .
Expand Down Expand Up @@ -39,7 +42,7 @@ test-py-matrix:
@make test-py v=3.10
@make test-py v=3.11
@make test-py v=3.12
@make test-py v=3.13-rc
@make test-py v=3.13

test-sq-matrix:
@# https://www.sqlite.org/chronology.html
Expand Down Expand Up @@ -70,7 +73,3 @@ update-mocks:
twscrape list_timeline --raw --limit 10 1494877848087187461 | jq > ./tests/mocked-data/raw_list_timeline.json
@# twscrape favoriters --raw --limit 10 1649191520250245121 | jq > ./tests/mocked-data/raw_favoriters.json
@# twscrape liked_tweets --raw --limit 10 2244994945 | jq > ./tests/mocked-data/raw_likes.json

x:
twscrape tweet_details --raw 1790441814857826439 | jq > ./tests/mocked-data/card_broadcast.json
twscrape tweet_details --raw 1789054061729173804 | jq > ./tests/mocked-data/card_audiospace.json
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "twscrape"
version = "0.14"
version = "0.15.0"
authors = [{ name = "vladkens", email = "[email protected]" }]
description = "Twitter GraphQL and Search API implementation with SNScrape data models"
readme = "readme.md"
Expand Down

0 comments on commit 260d170

Please sign in to comment.