Files
gentoo/dev-python/tox/files/tox-3.9.0-strip-setuptools_scm.patch
Virgil Dupras 06ce73e9cc dev-python/tox: bump to 3.9.0
Also, get rid of the useless setuptools_scm dependency.

Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
2019-05-12 17:21:13 -04:00

31 lines
699 B
Diff

diff --git a/setup.py b/setup.py
index 73f2540..8d6f3c3 100644
--- a/setup.py
+++ b/setup.py
@@ -1,19 +1,13 @@
# -*- coding: utf-8 -*-
-import textwrap
+import os
from setuptools import setup
-setup(
- use_scm_version={
- "write_to": "src/tox/version.py",
- "write_to_template": textwrap.dedent(
- """
- # coding: utf-8
- from __future__ import unicode_literals
+VERSION = os.environ['PV']
+with open('src/tox/version.py', 'wt') as fp:
+ fp.write("__version__ = u'{}'".format(VERSION))
- __version__ = {version!r}
- """
- ).lstrip(),
- },
+setup(
+ version=VERSION,
package_dir={"": "src"},
)