Skip to content

Commit

Permalink
Merge branch 'master' into video-upload-3
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Dec 28, 2020
2 parents 5dfe5ca + f084da8 commit ca633c4
Show file tree
Hide file tree
Showing 29 changed files with 310 additions and 247 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy

on:
release:
types: [published]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine wheel
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev,test]
- name: Run tests
run: |
python setup.py nosetests
- name: Send coverage to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: python-${{ matrix.python-version }}
COVERALLS_PARALLEL: true
if: ${{ github.event_name == 'push' }}
run: |
coveralls
coveralls:
needs: test
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finish sending coverage to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install coveralls
coveralls --finish
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
Also see https://github.com/tweepy/tweepy/releases for changelogs.

Version 3.10.0
--------------
This will be the last major and minor version to support Python 2.7 ([#1253](https://github.com/tweepy/tweepy/issues/1253)) and Python 3.5.
The next non-patch release should be version 4.0.0.

### New Features / Improvements
- Add `API.search_30_day` and `API.search_full_archive` ([#1175](https://github.com/tweepy/tweepy/issues/1175), [#1294](https://github.com/tweepy/tweepy/pull/1294))
- Update allowed parameters for `API.home_timeline` ([#1410](https://github.com/tweepy/tweepy/issues/1410), [#1458](https://github.com/tweepy/tweepy/pull/1458))
- Add `trim_user`, `exclude_replies`, `include_entities`
- Remove `page` as erroneously documented parameter
- Reorder `count` to be the first parameter
- Update allowed parameters for `API.get_oembed`
- Add `hide_thread`, `theme`, `link_color`, `widget_type`, `dnt`
- Remove `id`
- Remove `API.update_profile_background_image` ([#1466](https://github.com/tweepy/tweepy/issues/1466))
- Add support for Python 3.9
- Switch from Travis CI to GitHub Actions to run tests and deploy releases ([#1402](https://github.com/tweepy/tweepy/pull/1402))
- Update and improve various documentation

### Bug Fixes
- Use `mimetypes.guess_type` as fallback for determining image file type ([#1411](https://github.com/tweepy/tweepy/issues/1411))
- Use proper MIME type in Content-Type header for uploaded images
- Allow `file` parameter to be used again for `API.media_upload` ([#1412](https://github.com/tweepy/tweepy/issues/1412), [#1413](https://github.com/tweepy/tweepy/pull/1413))
- Allow `file` parameter to be used again for `API.update_profile_banner`, `API.update_profile_image`, and `API.update_with_media` ([#1475](https://github.com/tweepy/tweepy/pull/1475))
- Fix `User.lists`, `User.lists_memberships`, and `User.lists_subscriptions` to retrieve information about the user in question rather than the authenticating user ([#1443](https://github.com/tweepy/tweepy/issues/1443), [#1444](https://github.com/tweepy/tweepy/pull/1444))

Version 3.9.0
-------------
### New Features / Improvements
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Tweepy: Twitter for Python!
======

[![Build Status](http://img.shields.io/travis/tweepy/tweepy/master.svg?style=flat)](https://travis-ci.org/tweepy/tweepy)
[![Documentation Status](http://img.shields.io/badge/docs-v3.9.0-brightgreen.svg?style=flat)](http://docs.tweepy.org)
[![Version](http://img.shields.io/pypi/v/tweepy.svg?style=flat)](https://pypi.org/project/tweepy/)
[![Test Status](https://github.com/tweepy/tweepy/workflows/Test/badge.svg)](https://github.com/tweepy/tweepy/actions?query=workflow%3ATest)
[![Documentation Status](https://img.shields.io/badge/docs-v3.10.0-brightgreen.svg?style=flat)](http://docs.tweepy.org)
[![Version](https://img.shields.io/pypi/v/tweepy.svg?style=flat)](https://pypi.org/project/tweepy/)
[![Coverage Status](https://img.shields.io/coveralls/tweepy/tweepy/master.svg?style=flat)](https://coveralls.io/github/tweepy/tweepy?branch=master)
[![Discord](https://img.shields.io/discord/432685901596852224.svg)](https://discord.gg/bJvqnhg)

Expand All @@ -24,7 +24,7 @@ Alternatively, install directly from the GitHub repository:

pip install git+https://github.com/tweepy/tweepy.git

Python 2.7, 3.5, 3.6, 3.7, & 3.8 are supported.
Python 3.5 - 3.9 are supported.

Community
---------
Expand Down
72 changes: 36 additions & 36 deletions cassettes/testgetoembed.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"request": {
"method": "GET",
"uri": "https://api.twitter.com/1.1/statuses/oembed.json?id=266367358078169089",
"uri": "https://api.twitter.com/1.1/statuses/oembed.json?url=https%3A%2F%2Ftwitter.com%2FTwitter%2Fstatus%2F266367358078169089",
"body": null,
"headers": {
"Host": [
Expand All @@ -18,60 +18,60 @@
"message": "OK"
},
"headers": {
"content-type": [
"application/json; charset=utf-8"
"strict-transport-security": [
"max-age=631138519"
],
"x-xss-protection": [
"1; mode=block; report=https://twitter.com/i/xss_report"
"date": [
"Fri, 18 Dec 2020 13:28:43 GMT"
],
"server": [
"tsa_b"
"x-response-time": [
"22"
],
"cache-control": [
"must-revalidate, max-age=3153600000"
"set-cookie": [
"personalization_id=\"v1_lNZrX8ERkRY3O6pDMRf0EQ==\"; Max-Age=63072000; Expires=Sun, 18 Dec 2022 13:28:43 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None",
"guest_id=v1%3A160829812347056154; Max-Age=63072000; Expires=Sun, 18 Dec 2022 13:28:43 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None"
],
"x-content-type-options": [
"nosniff"
"content-length": [
"983"
],
"x-xss-protection": [
"0"
],
"expires": [
"Sun, 24 Nov 2120 13:28:43 GMT"
],
"content-disposition": [
"attachment; filename=json.json"
],
"x-connection-hash": [
"f20848b1bd595645ddbfd9c752ca85f5"
"cache-control": [
"must-revalidate, max-age=3153600000"
],
"content-length": [
"983"
"last-modified": [
"Fri, 18 Dec 2020 13:28:43 GMT"
],
"x-rate-limit-limit": [
"180"
"server": [
"tsa_b"
],
"expires": [
"Mon, 19 Jun 2119 02:27:42 GMT"
"x-connection-hash": [
"535f712e275b4e0dcb0621cfe640c1e5"
],
"x-content-type-options": [
"nosniff"
],
"x-frame-options": [
"SAMEORIGIN"
],
"x-response-time": [
"23"
],
"x-rate-limit-remaining": [
"175"
],
"strict-transport-security": [
"max-age=631138519"
],
"last-modified": [
"Sat, 13 Jul 2019 02:27:42 GMT"
"177"
],
"date": [
"Sat, 13 Jul 2019 02:27:42 GMT"
"x-rate-limit-limit": [
"180"
],
"x-rate-limit-reset": [
"1562984890"
"1608298530"
],
"set-cookie": [
"personalization_id=\"v1_khrXSwhAwqa8deQuSQp2gg==\"; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:27:42 GMT; Path=/; Domain=.twitter.com",
"guest_id=v1%3A156298486221234862; Max-Age=63072000; Expires=Mon, 12 Jul 2021 02:27:42 GMT; Path=/; Domain=.twitter.com"
"content-type": [
"application/json; charset=utf-8"
]
},
"body": {
Expand All @@ -80,4 +80,4 @@
}
}
]
}
}

0 comments on commit ca633c4

Please sign in to comment.