Fix error in requirements.rst

This commit is contained in:
Brian May 2017-07-09 09:01:57 +10:00
parent 6c6a39fefa
commit e76d1e14bd
5 changed files with 2 additions and 8 deletions

1
.gitignore vendored
View File

@ -1,5 +1,4 @@
/sshuttle/version.py /sshuttle/version.py
/docs/conf.py
/tmp/ /tmp/
/.cache/ /.cache/
/.eggs/ /.eggs/

View File

@ -6,7 +6,6 @@ include LICENSE
include run include run
include tox.ini include tox.ini
exclude sshuttle/version.py exclude sshuttle/version.py
exclude docs/conf.py
recursive-include docs *.bat recursive-include docs *.bat
recursive-include docs *.py recursive-include docs *.py
recursive-include docs *.rst recursive-include docs *.rst

View File

@ -42,7 +42,7 @@ information.
MacOS / FreeBSD / OpenBSD / pfSense MacOS / FreeBSD / OpenBSD / pfSense
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Method: pf Method: pf
Supports: Supports:

View File

@ -18,18 +18,14 @@
# along with python-tldap If not, see <http://www.gnu.org/licenses/>. # along with python-tldap If not, see <http://www.gnu.org/licenses/>.
from setuptools import setup, find_packages from setuptools import setup, find_packages
import shutil
with open("./docs/conf.orig.py", "r") as src:
with open("./docs/conf.py", "w") as dst:
dst.write("# FILE COPIED FROM conf.orig.py; DO NOT CHANGE\n")
shutil.copyfileobj(src, dst)
def version_scheme(version): def version_scheme(version):
from setuptools_scm.version import guess_next_dev_version from setuptools_scm.version import guess_next_dev_version
version = guess_next_dev_version(version) version = guess_next_dev_version(version)
return version.lstrip("v") return version.lstrip("v")
setup( setup(
name="sshuttle", name="sshuttle",
use_scm_version={ use_scm_version={