[Docs] Cleanup changelog and docs

This commit is contained in:
Calum Lind 2019-06-05 23:32:37 +01:00
commit d4185505d1
19 changed files with 91 additions and 62 deletions

View file

@ -1,6 +1,12 @@
# Deluge Changelog # Changelog
## Deluge 2.0.0 - (In Development) ## 2.0.0 (In Development)
### Codebase
- Ported to Python 3
### Core
- Improved Logging - Improved Logging
- Removed the AutoAdd feature on the core. It's now handled with the AutoAdd - Removed the AutoAdd feature on the core. It's now handled with the AutoAdd
@ -8,14 +14,7 @@
now, it even supports multiple users perfectly. now, it even supports multiple users perfectly.
- Authentication/Permission exceptions are now sent to clients and recreated - Authentication/Permission exceptions are now sent to clients and recreated
there to allow acting upon them. there to allow acting upon them.
- Enforced the use of the "deluge.plugins" namespace to reduce package
names clashing beetween regular packages and deluge plugins.
- Fix potential for host_id collision when creating hostlist entries.
- Add Option To Specify Outgoing Connection Interface.
- Updated SSL/TLS Protocol parameters for better security. - Updated SSL/TLS Protocol parameters for better security.
### Core
- Make the distinction between adding to the session new unmanaged torrents - Make the distinction between adding to the session new unmanaged torrents
and torrents loaded from state. This will break backwards compatability. and torrents loaded from state. This will break backwards compatability.
- Pass a copy of an event instead of passing the event arguments to the - Pass a copy of an event instead of passing the event arguments to the
@ -29,9 +28,12 @@
which sould then ask the username/password to the user. which sould then ask the username/password to the user.
- Implemented sequential downloads. - Implemented sequential downloads.
- Provide information about a torrent's pieces states - Provide information about a torrent's pieces states
- Add Option To Specify Outgoing Connection Interface.
- Fix potential for host_id collision when creating hostlist entries.
### GtkUI ### GtkUI
- Ported to GTK3 (3rd-party plugins will need updated).
- Allow changing ownership of torrents. - Allow changing ownership of torrents.
- Host entries in the Connection Manager UI are now editable. - Host entries in the Connection Manager UI are now editable.
- Implemented sequential downloads UI handling. - Implemented sequential downloads UI handling.

View file

@ -7,7 +7,7 @@ All modules will require the [common](#common) section dependencies.
## Prerequisite ## Prerequisite
- [Python] _>= 2.7.7 or >= 3.5_ - [Python] _>= 3.5_
## Build ## Build

View file

@ -38,7 +38,7 @@ class AboutDialog(object):
self.about.set_copyright( self.about.set_copyright(
_('Copyright %(year_start)s-%(year_end)s Deluge Team') _('Copyright %(year_start)s-%(year_end)s Deluge Team')
% {'year_start': 2007, 'year_end': 2015} % {'year_start': 2007, 'year_end': 2019}
) )
self.about.set_comments( self.about.set_comments(
_('A peer-to-peer file sharing program\nutilizing the BitTorrent protocol.') _('A peer-to-peer file sharing program\nutilizing the BitTorrent protocol.')

View file

@ -1,4 +1,4 @@
.TH DELUGE-CONSOLE 1 "January 2017" "2.0-dev" .TH DELUGE-CONSOLE 1
.SH NAME .SH NAME
deluge-console - A BitTorrent client console interface deluge-console - A BitTorrent client console interface

View file

@ -1,4 +1,4 @@
.TH DELUGE-GTK 1 "January 2017" "2.0-dev" .TH DELUGE-GTK 1
.SH NAME .SH NAME
deluge-gtk - A BitTorrent client Gtk interface deluge-gtk - A BitTorrent client Gtk interface

View file

@ -1,4 +1,4 @@
.TH DELUGE-WEB 1 "January 2017" "2.0-dev" .TH DELUGE-WEB 1
.SH NAME .SH NAME
deluge-web - A BitTorrent client web interface deluge-web - A BitTorrent client web interface

View file

@ -1,4 +1,4 @@
.TH DELUGE 1 "January 2017" "2.0-dev" .TH DELUGE 1
.SH NAME .SH NAME
deluge - A BitTorrent client deluge - A BitTorrent client

View file

@ -1,4 +1,4 @@
.TH DELUGED 1 ""January 2099" "2.0-dev" .TH DELUGED 1
.SH NAME .SH NAME
deluged - A BitTorrent client daemon deluged - A BitTorrent client daemon

1
docs/source/changelog.md Symbolic link
View file

@ -0,0 +1 @@
../../CHANGELOG.md

View file

@ -114,6 +114,10 @@ html_theme = 'sphinx_rtd_theme'
# given in html_static_path. # given in html_static_path.
# html_style = 'default.css' # html_style = 'default.css'
# Add font-mfizz for icons.
html_css_files = [
'https://cdnjs.cloudflare.com/ajax/libs/font-mfizz/2.4.1/font-mfizz.min.css'
]
# The name for this set of Sphinx documents. If None, it defaults to # The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation". # "<project> v<release> documentation".
# html_title = None # html_title = None

View file

@ -1,7 +1,6 @@
# How-to guides # How-to guides
This is a collection of guides for specific issues or cover more details than A collection of guides for specific issues or to cover more detail than the tutorials.
the tutorials.
## Web JSON-RPC ## Web JSON-RPC
@ -9,4 +8,8 @@ the tutorials.
## Plugins ## Plugins
<!--
- [Create a plugin](create-plugin.md)
-->
- [Update 1.3 plugin for 2.0](update-1.3-plugin.md) - [Update 1.3 plugin for 2.0](update-1.3-plugin.md)

View file

@ -1,7 +1,7 @@
# Deluge Development Guide # Development guide
This is a guide to help with developing Deluge. This is a guide to help with developing Deluge.
- [Tutorials](tutorials/index.md) - [Tutorials](tutorials/index.md)
- [How-to](how-to/index.md) - [How-to guides](how-to/index.md)
- [Packaging](packaging/index.md) - [Packaging](packaging/index.md)

View file

@ -5,24 +5,21 @@
- Update [translation](../contributing/translations.md) `po` files from - Update [translation](../contributing/translations.md) `po` files from
[Launchpad](https://translations.launchpad.net/deluge) account. [Launchpad](https://translations.launchpad.net/deluge) account.
- Changelog is updated with relevant commits and release date is added. - Changelog is updated with relevant commits and release date is added.
- Version number increment:
- setup.py
- man pages
- osx/Info.plist
- Version and month `sed` commands:
- `git grep -l '2\.0\.0' | grep -v CHANGELOG.md | xargs sed -i 's/2\.0\.0/2\.0\.1/g'`
- `git grep -l 'October' docs/man | xargs sed -i 's/October/November/g'`
- Increment copyright year:
- osx/Info.plist
- Tag release in git and push upstream. - Tag release in git and push upstream.
- e.g. `git tag -a deluge-2.0.0 -m "Deluge 2.0.0 Release"` - e.g. `git tag -a deluge-2.0.0 -m "Deluge 2.0.0 Release"`
## Release ## Release
- Run `make_release` script on extracted tarball e.g. - Create source and wheel distributions:
- `make_release deluge-2.0.0`
python setup.py sdist bdist_wheel
- Upload to PyPi:
twine upload dist/deluge-2.0.0.tar.xz dist/deluge-2.0.0-py3-none-any.whl
- Package for OSs, Ubuntu, Windows, OSX. - Package for OSs, Ubuntu, Windows, OSX.
- Upload source tarballs and packages to ftp. - Upload source tarballs and packages.
(_Ensure file permissions are global readable:_ `0644`) (_Ensure file permissions are global readable:_ `0644`)
## Post-Release ## Post-Release

View file

@ -0,0 +1,5 @@
# How-to guides
A collection of guides covering common issues that might be encountered using Deluge.
- [Set default torrent application](set-mime-type.md)

View file

@ -10,15 +10,15 @@ gio mime x-scheme-handler/magnet
gio mime x-scheme-handler/magnet deluge.desktop gio mime x-scheme-handler/magnet deluge.desktop
gio mime application/x-bittorrent deluge.desktop gio mime application/x-bittorrent deluge.desktop
## Troubleshoot ## Troubleshooting
update-mime-database ~/.local/share/mime update-mime-database ~/.local/share/mime
update-desktop-database ~/.local/share/applications update-desktop-database ~/.local/share/applications
# XDG ### XDG Check
xdg-mime query default x-scheme-handler/magnet xdg-mime query default x-scheme-handler/magnet
References: ## References
https://help.gnome.org/admin/system-admin-guide/stable/mime-types-custom-user.html.en https://help.gnome.org/admin/system-admin-guide/stable/mime-types-custom-user.html.en

View file

@ -1,4 +1,4 @@
Deluge Documentation Deluge documentation
==================== ====================
Contents Contents
@ -7,9 +7,11 @@ Contents
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
Getting Started <intro/index.md> Getting started <intro/index.md>
How-to guides <how-to/index.md>
Changelog <changelog.md>
Contributing <contributing/index.md> Contributing <contributing/index.md>
Developer Guide <devguide/index.md> Developer guide <devguide/index.md>
Reference <reference/index.rst> Reference <reference/index.rst>
* :ref:`genindex` * :ref:`genindex`

View file

@ -1,43 +1,52 @@
# Installing Deluge # Installing Deluge
These are the instructions for installer Deluge. They are a work-in-progress and feel These are the instructions for installing Deluge. Consider them a work-in-progress and
free to make suggestions for improvement. feel free to make suggestions for improvement.
## Ubuntu ## <i class="icon-ubuntu"></i> Ubuntu
### PPA ### PPA
https://launchpad.net/~deluge-team/+archive/ubuntu/develop/ Until the stable PPA is updated, the development version of Deluge can be used:
### PyPi sudo add-apt-repository -u ppa:deluge-team/develop
sudo apt install deluge
Deluge requires the following system installed packages: ### <i class="icon-python"></i> PyPi
To install from Python PyPi, Deluge requires the following system installed packages:
sudo apt install python3-pip python3-libtorrent python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-appindicator3 sudo apt install python3-pip python3-libtorrent python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-appindicator3
Install with pip: Install with pip:
pip install --user deluge pip install deluge
## Windows ## <i class="fa fa-windows"></i> Windows
There is no installer package currently for Windows, but can try Deluge as follows. There is no installer package currently for Windows, but can try Deluge as follows.
1. Install Python 3.6. 1. Download and install [Python 3.6].
2. Download and extract the `gvsbuild`. 2. Download and extract [gvsbuild] tarball to `C:\`.
3. Open a terminal. 3. Open a terminal.
4. Add directory to PATH: `set PATH=C:\gvsbuild\release;%PATH%` 4. Run this command to add `gvsbuild` directory to `PATH`:
5. Install Python wheels from gvsbuild:
pip install C:\gvsbuild\release\python\pycairo-1.17.1-cp36-cp36m-win_amd64.whl set PATH=C:\gvsbuild\release;%PATH%
pip install C:\gvsbuild\release\python\PyGObject-3.28.3-py3.6-win-amd64.whl
6. Install Deluge 5. Install `gvsbuild` Python wheels:
pip install C:\gvsbuild\release\python\pycairo-1.18.0-cp36-cp36m-win_amd64.whl
pip install C:\gvsbuild\release\python\PyGObject-3.32.0-cp36-cp36m-win_amd64.whl
6. Install Deluge:
pip install deluge deluge-libtorrent pip install deluge deluge-libtorrent
## macOS ## <i class="fa fa-apple"></i> macOS
There is no `.app` package currently for macOS, but can try Deluge with homebrew. There is no `.app` package currently for macOS, but can try Deluge with homebrew.
1. Install [Homebrew](https://brew.sh/) 1. Install [Homebrew]
2. Open a terminal. 2. Open a terminal.
3. Run the following to install required packages: 3. Run the following to install required packages:
@ -51,3 +60,8 @@ There is no `.app` package currently for macOS, but can try Deluge with homebrew
5. Install Deluge: 5. Install Deluge:
pip3 install deluge pip3 install deluge
[develop ppa]: https://launchpad.net/~deluge-team/+archive/ubuntu/develop/
[homebrew]: https://brew.sh/
[python 3.6]: https://www.python.org/downloads/release/python-368/
[gvsbuild]: https://ci.appveyor.com/api/buildjobs/b0y2sttcq3t1071q/artifacts/gvsbuild-vs14-x64.tar.gz

View file

@ -1,8 +1,11 @@
# Getting Started with Deluge # Getting started with Deluge
This is a starting point if you are new to Deluge where we will walk This is a starting point if you are new to Deluge where we will walk
you through getting up and running with our BitTorrent client. you through getting up and running with our BitTorrent client.
1. [Installing Deluge](01-install.md) - [1. Installing Deluge](01-install.md)
<!--
2. Using Deluge 2. Using Deluge
3. Install a plugin 3. Install a plugin
-->

View file

@ -149,7 +149,6 @@ commands =
[testenv:docs] [testenv:docs]
# Exclude site-packages so local builds have a similar environment to ReadTheDocs. # Exclude site-packages so local builds have a similar environment to ReadTheDocs.
sitepackages = False sitepackages = False
skip_install = True
deps = {[basedocs]deps} deps = {[basedocs]deps}
commands = commands =
python setup.py clean_docs python setup.py clean_docs
@ -157,12 +156,11 @@ commands =
[testenv:docscoverage] [testenv:docscoverage]
sitepackages = False sitepackages = False
skip_install = True
deps = deps =
{[basedocs]deps} {[basedocs]deps}
pytest-cov pytest-cov
commands = commands =
sphinx-build -W -b coverage -d docs/build/doctrees docs/source docs/build/doccoverage sphinx-build -b coverage -d docs/build/doctrees docs/source docs/build/doccoverage
pytest --doctest-glob='*.rst' pytest --doctest-glob='*.rst'
# ======================== # ========================