mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 08:58:27 -07:00
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
31 lines
699 B
Diff
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"},
|
|
)
|