mirror of
https://github.com/arsenetar/send2trash.git
synced 2025-05-08 17:59:50 +00:00
Compare commits
No commits in common. "00dfe77e4087cd5286a191ca6fb99e9d45af7338" and "49bc438546e12199484a8b35770e623f4ead25ca" have entirely different histories.
00dfe77e40
...
49bc438546
11
.travis.yml
11
.travis.yml
@ -17,15 +17,12 @@ matrix:
|
|||||||
- python: "3.4"
|
- python: "3.4"
|
||||||
- python: "3.5"
|
- python: "3.5"
|
||||||
- python: "3.6"
|
- python: "3.6"
|
||||||
|
# Obtain Python 3.7 from xenial as per https://github.com/travis-ci/travis-ci/issues/9815
|
||||||
- python: "3.7"
|
- python: "3.7"
|
||||||
- python: "3.8"
|
dist: xenial
|
||||||
- python: "3.9"
|
|
||||||
- python: "nightly" # 3.10
|
|
||||||
before_script:
|
|
||||||
- export TOXENV=py310
|
|
||||||
install:
|
install:
|
||||||
- python -m pip install tox
|
- pip install tox
|
||||||
before_script:
|
before_script:
|
||||||
- export TOXENV=$(echo py$TRAVIS_PYTHON_VERSION | tr -d .)
|
- export TOXENV=$(echo py$TRAVIS_PYTHON_VERSION | tr -d .)
|
||||||
script:
|
script:
|
||||||
- python -m tox
|
- tox
|
||||||
|
@ -24,7 +24,7 @@ Installation
|
|||||||
|
|
||||||
You can download it with pip::
|
You can download it with pip::
|
||||||
|
|
||||||
python -m pip install -U send2trash
|
pip install Send2Trash
|
||||||
|
|
||||||
or you can download the source from http://github.com/arsenetar/send2trash and install it with::
|
or you can download the source from http://github.com/arsenetar/send2trash and install it with::
|
||||||
|
|
||||||
|
@ -112,8 +112,9 @@ def trash_move(src, dst, topdir=None):
|
|||||||
check_create(infopath)
|
check_create(infopath)
|
||||||
|
|
||||||
os.rename(src, op.join(filespath, destname))
|
os.rename(src, op.join(filespath, destname))
|
||||||
with open(op.join(infopath, destname + INFO_SUFFIX), "w") as f:
|
f = open(op.join(infopath, destname + INFO_SUFFIX), "w")
|
||||||
f.write(info_for(src, topdir))
|
f.write(info_for(src, topdir))
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
|
||||||
def find_mount_point(path):
|
def find_mount_point(path):
|
||||||
|
8
setup.py
8
setup.py
@ -14,13 +14,12 @@ CLASSIFIERS = [
|
|||||||
"Programming Language :: Python :: 3.6",
|
"Programming Language :: Python :: 3.6",
|
||||||
"Programming Language :: Python :: 3.7",
|
"Programming Language :: Python :: 3.7",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
|
||||||
"Programming Language :: Python :: 3.10",
|
|
||||||
"Topic :: Desktop Environment :: File Managers",
|
"Topic :: Desktop Environment :: File Managers",
|
||||||
]
|
]
|
||||||
|
|
||||||
with open("README.rst", "rt") as f1, open("CHANGES.rst", "rt") as f2:
|
LONG_DESCRIPTION = (
|
||||||
LONG_DESCRIPTION = f1.read() + "\n\n" + f2.read()
|
open("README.rst", "rt").read() + "\n\n" + open("CHANGES.rst", "rt").read()
|
||||||
|
)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="Send2Trash",
|
name="Send2Trash",
|
||||||
@ -37,5 +36,4 @@ setup(
|
|||||||
classifiers=CLASSIFIERS,
|
classifiers=CLASSIFIERS,
|
||||||
extras_require={"win32": ["pywin32"]},
|
extras_require={"win32": ["pywin32"]},
|
||||||
project_urls={"Bug Reports": "https://github.com/arsenetar/send2trash/issues"},
|
project_urls={"Bug Reports": "https://github.com/arsenetar/send2trash/issues"},
|
||||||
entry_points={"console_scripts": ["send2trash=send2trash.__main__:main"]},
|
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user