Skip to content

Commit 7eb1211

Browse files
committed
revert setuptools_scm addition introduced with f22d14b
1 parent f978b54 commit 7eb1211

File tree

5 files changed

+5
-13
lines changed

5 files changed

+5
-13
lines changed

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ include/
1919

2020
.eggs/
2121

22-
# this file is managed by setuptools_scm
23-
_pytest/__init__.py
24-
2522
doc/*/_build
2623
build/
2724
dist/
@@ -35,4 +32,3 @@ env/
3532
.coverage
3633
.ropeproject
3734
.idea
38-

_pytest/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#
2+
__version__ = '2.8.0.dev5'

_pytest/genscript.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ def pkg_to_mapping(name):
3131
else: # package
3232
for pyfile in toplevel.visit('*.py'):
3333
pkg = pkgname(name, toplevel, pyfile)
34-
if pkg == '_pytest.__init__':
35-
# remove the coding comment line to avoid python bug
36-
lines = pyfile.read().splitlines(True)
37-
name2src[pkg] = ''.join(lines[1:])
38-
else:
39-
name2src[pkg] = pyfile.read()
34+
name2src[pkg] = pyfile.read()
4035
# with wheels py source code might be not be installed
4136
# and the resulting genscript is useless, just bail out.
4237
assert name2src, "no source code found for %r at %r" %(name, toplevel)

pytest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
main, UsageError, _preloadplugins, cmdline,
2323
hookspec, hookimpl
2424
)
25-
from _pytest import version as __version__
25+
from _pytest import __version__
2626

2727
_preloadplugins() # to populate pytest.* namespace so help(pytest) works
2828

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def main():
6363
name='pytest',
6464
description='pytest: simple powerful testing with Python',
6565
long_description=long_description,
66-
use_scm_version={'write_to': '_pytest/__init__.py'},
66+
version=get_version(),
6767
url='http://pytest.org',
6868
license='MIT license',
6969
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
@@ -75,7 +75,6 @@ def main():
7575
# the following should be enabled for release
7676
install_requires=install_requires,
7777
extras_require=extras_require,
78-
setup_requires=['setuptools_scm'],
7978
packages=['_pytest', '_pytest.assertion', '_pytest.vendored_packages'],
8079
py_modules=['pytest'],
8180
zip_safe=False,

0 commit comments

Comments
 (0)