-
Notifications
You must be signed in to change notification settings - Fork 45
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
Move to pyproject.toml and cleanup non-source files #89
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e3e2422
Move to pyproject.toml and cleanup non-source files
nhairs b68bdb7
Remove py27 and requirements from tox.ini
nhairs ff7098b
Sort classifiers
nhairs 0c68bea
Use README.md for tests instead of AUTHORS (since file removed)
nhairs d3bdc6a
Remove tox.ini, update python-requires, add py312 to CI
nhairs 5303e32
remove accidental add of git-authors
nhairs 674fcd2
Update storage file
nhairs 15251ee
Fix failing tests
nhairs c535efc
Apply black formatter, remove six, fingerprint bytesio
nhairs 2ebcdab
Use relative path for storage in test_url
nhairs 11498ff
Use pathlib for test_url storagepath
nhairs 381de7c
debug output, move to fstring
nhairs 4924a83
Use sample files, add gitattributes
nhairs 67797fa
Add mypy, black support
nhairs eaf4dc5
Migrate more to sample_files
nhairs 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 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 @@ | ||
tests/sample_files/* binary |
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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,3 +1,27 @@ | ||
Contributors: | ||
# Names should be added to this file as: | ||
# Name <email address> | ||
The following people have contributed to tus-py-client: | ||
|
||
Ifedapo Olarewaju ([email protected]) | ||
Marius ([email protected]) | ||
Mariusz Obajtek ([email protected]) | ||
Nykakin ([email protected]) | ||
Omer Katz ([email protected]) | ||
Kirill Malovitsa ([email protected]) | ||
Peixian Wang ([email protected]) | ||
VImeo-Loaner ([email protected]) | ||
Richo Healey ([email protected]) | ||
Brian Gardiner ([email protected]) | ||
David D Lowe ([email protected]) | ||
mochic808 ([email protected]) | ||
mohsenjavidpanah ([email protected]) | ||
Adrian Partl ([email protected]) | ||
ifedapoolarewaju ([email protected]) | ||
Brian Tate ([email protected]) | ||
Dave Takahashi ([email protected]) | ||
Guang-De Lin ([email protected]) | ||
Janne Pulkkinen ([email protected]) | ||
Honglei ([email protected]) | ||
Hemant Sachdeva ([email protected]) | ||
Jasper ([email protected]) | ||
Marius Kleidl ([email protected]) | ||
Nicola Soranzo ([email protected]) | ||
Nicholas Hairs ([email protected]) |
This file contains 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 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 +1,2 @@ | ||
include README.md | ||
include CONTRIBUTORS |
This file contains 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 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 @@ | ||
[mypy] | ||
|
||
[mypy-parametrize.*] | ||
ignore_missing_imports = True |
This file contains 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,81 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "tuspy" | ||
description = "A Python client for the tus resumable upload protocol -> http://tus.io" | ||
authors = [ | ||
{name = "Ifedapo Olarewaju", email="[email protected]"}, | ||
] | ||
|
||
# Dependency Information | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"requests>=2.18.4", | ||
"tinydb>=3.5.0", | ||
"aiohttp>=3.6.2", | ||
] | ||
|
||
# Extra Information | ||
readme = "README.md" | ||
license = {text = "MIT Licence"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Communications :: File Sharing", | ||
"Topic :: Internet :: File Transfer Protocol (FTP)", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Typing :: Typed", | ||
] | ||
|
||
# Misc | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "http://tus-py-client.readthedocs.io/en/latest/" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't look like the documentation online has been updated in over 5 years, I've set the metadata to point to this documentation as the homepage but maybe that's a bad idea. |
||
GitHub = "http://github.com/tus/tus-py-client/" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"aioresponses>=0.6.2", | ||
"coverage>=4.2", | ||
"parametrize", # https://stackoverflow.com/a/67462680/12281814 | ||
"pytest>=3.0.3", | ||
"pytest-cov>=2.3.1,<2.6", | ||
"responses>=0.5.1", | ||
] | ||
|
||
dev = [ | ||
"black", | ||
"mypy", | ||
"sphinx-autobuild==2021.3.14", | ||
"Sphinx==1.7.1", | ||
"tox>=2.3.1", | ||
"types-requests", | ||
] | ||
|
||
[tool.setuptools] | ||
packages = [ | ||
"tusclient", | ||
"tusclient.fingerprint", | ||
"tusclient.storage", | ||
"tusclient.uploader", | ||
] | ||
include-package-data = true | ||
platforms = ["any"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "tusclient.__version__"} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) The tus-py-client CONTRIBUTORS | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains 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 +1 @@ | ||
{"_default": {"1": {"url": "http://tusd.tusdemo.net/files/foo_bar", "key": "size:1078--md5:f3e5fa051d458fb7f22eaf03749c8272"}}} | ||
{"_default": {"1": {"key": "size:1082--md5:cbb679e9dbcf82224fe3bc5fdc881f06", "url": "http://tusd.tusdemo.net/files/foo_bar"}, "2": {"key": "size:49588--md5:ae275d47f1ef9aed4902b0251455e627", "url": "http://tusd.tusdemo.net/files/foo_bar"}}} |
This file contains 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is someone who is maintain the project that isn't the original author, they should consider adding themselves to the maintainers metadata.