forked from langeland/sirius
-
Notifications
You must be signed in to change notification settings - Fork 19
Feature/twitter oauth #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
dd617a3
build: use pyproject.toml for dependency management over requirements…
phillipjf 91ff615
build: update docker image to bullseye from buster
phillipjf 9c86da5
feat(twitter): update twitter auth to use oauth2 flow
phillipjf 2c5df56
feat(friends): remove friends functionality and references
phillipjf d67323d
Rollback the docker image upgrade
joerick 77017d7
Specify packages for setuptools
joerick 72c14d9
modernise circle ci config
joerick ff56e10
Ensure test deps are installed
joerick 916d262
build: match docker python base image to heroku buildpack runtime ver…
phillipjf a48badc
test(oauth_flow): fix access_token format in test
phillipjf 61b935b
test: mock twitter api call
phillipjf d645514
test: fix mock in oauth test
phillipjf 294b8d1
build: add setup.py for heroku detection
phillipjf 6802e73
fix(migration): remove constraint migrations
phillipjf da5a626
Use requirements.txt as this feels more ideomatic to me
joerick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.circleci | ||
notes | ||
docker-compose* | ||
*.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Custom | ||
venv/ | ||
.env | ||
.env* | ||
!.env.example | ||
|
||
certs/ | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
"""Remove friends | ||
|
||
Revision ID: 89a031bd9657 | ||
Revises: 44c4368c2db1 | ||
Create Date: 2023-07-04 18:44:13.041005 | ||
|
||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "89a031bd9657" | ||
down_revision = "44c4368c2db1" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_unique_constraint(None, "claim_code", ["claim_code"]) | ||
op.create_foreign_key(None, "print_key", "print_key", ["parent_id"], ["id"]) | ||
op.create_unique_constraint(None, "printer", ["used_claim_code"]) | ||
op.drop_column("twitter_o_auth", "last_friend_refresh") | ||
op.drop_column("twitter_o_auth", "friends") | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column( | ||
"twitter_o_auth", | ||
sa.Column("friends", postgresql.BYTEA(), autoincrement=False, nullable=True), | ||
) | ||
op.add_column( | ||
"twitter_o_auth", | ||
sa.Column( | ||
"last_friend_refresh", | ||
postgresql.TIMESTAMP(), | ||
autoincrement=False, | ||
nullable=True, | ||
), | ||
) | ||
op.drop_constraint(None, "printer", type_="unique") | ||
op.drop_constraint(None, "print_key", type_="foreignkey") | ||
op.drop_constraint(None, "claim_code", type_="unique") | ||
phillipjf marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# ### end Alembic commands ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
|
||
[project] | ||
name = "sirius" | ||
readme = "README.md" | ||
requires-python = ">=3.7,<3.8" | ||
version = "0.0.0" | ||
dependencies = [ | ||
"Flask==1.1.1", | ||
"Flask-Bootstrap==3.3.7.1", | ||
"Flask-Cors==3.0.8", | ||
"Flask-Login==0.4.1", | ||
"Flask-Migrate==2.5.2", | ||
"Flask-SQLAlchemy==2.4.0", | ||
"Flask-Script==2.0.6", | ||
"Flask-Sockets==0.2.1", | ||
"Flask-WTF==0.14.2", | ||
"Jinja2==2.10.1", | ||
"Mako==1.1.0", | ||
"MarkupSafe==1.1.1", | ||
"Pillow==6.1.0", | ||
"SQLAlchemy==1.3.8", | ||
"WTForms==2.2.1", | ||
"Werkzeug==0.15.6", | ||
"alembic==1.1.0", | ||
"argparse==1.2.1", | ||
"backports.ssl-match-hostname==3.7.0.1", | ||
"blinker==1.4", | ||
"gevent==1.4.0", | ||
"gevent-websocket==0.10.1", | ||
"greenlet==0.4.15", | ||
"gunicorn==19.9.0", | ||
"httplib2==0.13.1", | ||
"itsdangerous==1.1.0", | ||
"nose==1.3.7", | ||
"oauthlib==3.2.2", | ||
"psycopg2-binary==2.8.3", | ||
"pycrypto==2.6.1", | ||
"redis==3.3.8", | ||
"requests==2.22.0", | ||
"requests-oauthlib==1.3.1", | ||
"selenium==3.141.0", | ||
"six==1.12.0", | ||
"twitter==1.18.0", | ||
"websocket-client==0.56.0", | ||
"honcho", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"snapshottest @ git+git://github.com/syrusakbary/snapshottest.git@4ac2b4fb09e9e7728bebb11967c164a914775d1d#snapshottest", | ||
"Flask-Testing==0.7.1", | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["sirius*"] | ||
|
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.