Skip to content

Commit 6f13bba

Browse files
committed
prepare release 2.2.0
1 parent a3a0c4b commit 6f13bba

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include *.rst
2+
include setup.py
3+
include requirements-testing.txt
4+
include tox.ini

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[bdist_wheel]
2+
universal = 1
3+
14
[options]
25
# for compatibility with older installers
36
setup_requires = setuptools_scm[toml] >= 3.4.1

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
import codecs
33
import os
44
import sys
5+
import re
56

67
from setuptools import setup
78

8-
import pytest_services
9-
109
dirname = os.path.dirname(__file__)
1110

1211
long_description = (
1312
codecs.open(os.path.join(dirname, 'README.rst'), encoding='utf-8').read() + '\n' +
13+
codecs.open(os.path.join(dirname, 'AUTHORS.rst'), encoding='utf-8').read() + '\n' +
1414
codecs.open(os.path.join(dirname, 'CHANGES.rst'), encoding='utf-8').read()
1515
)
1616

@@ -27,6 +27,9 @@
2727
if PY2:
2828
install_requires.append('subprocess32')
2929

30+
with codecs.open(os.path.join(dirname, "pytest_services", "__init__.py"), encoding="utf-8") as fd:
31+
VERSION = re.compile(r".*__version__ = ['\"](.*?)['\"]", re.S).match(fd.read()).group(1)
32+
3033

3134
setup(
3235
name='pytest-services',
@@ -35,7 +38,7 @@
3538
author='Anatoly Bubenkov, Paylogic International and others',
3639
license='MIT license',
3740
author_email='[email protected]',
38-
version=pytest_services.__version__,
41+
version=VERSION,
3942
url='https://github.com/pytest-dev/pytest-services',
4043
install_requires=install_requires,
4144
extras={

0 commit comments

Comments
 (0)