44pytest-flask
55============
66
7- A set of `pytest <http ://pytest.org>`_ fixtures to test Flask
7+ A set of `pytest <https ://docs. pytest.org>`_ fixtures to test Flask
88extensions and applications.
99
1010Features
@@ -117,16 +117,6 @@ def read(*parts):
117117 return ''
118118
119119
120- def get_version ():
121- version_file = read ('pytest_flask' , '__init__.py' )
122- version_match = re .search (r'^__version__ = [\'"]([^\'"]*)[\'"]' ,
123- version_file , re .MULTILINE )
124- if version_match :
125- return version_match .group (1 )
126- raise RuntimeError ('Unable to find version string.' )
127-
128-
129- version = get_version ()
130120requirements = read ('requirements' , 'main.txt' ).splitlines () + ['pytest' ]
131121tests_require = []
132122
@@ -139,16 +129,19 @@ def get_version():
139129setup (
140130 name = 'pytest-flask' ,
141131
142- # Versions should comply with PEP440. For a discussion on single-sourcing
143- # the version across setup.py and the project code, see
144- # http://packaging.python.org/en/latest/tutorial.html#version
145- version = version ,
132+ # Versions should comply with PEP440, and automatically obtained from tags
133+ # thanks to setuptools_scm
134+ use_scm_version = { "write_to" : "pytest_flask/_version.py" },
135+ setup_requires = [ "setuptools-scm" ] ,
146136
147137 author = 'Vital Kudzelka' ,
148138 author_email = 'vital.kudzelka@gmail.com' ,
149139
150140 url = 'https://github.com/vitalk/pytest-flask' ,
151- download_url = 'https://github.com/vitalk/pytest-flask/tarball/%s' % version ,
141+ project_urls = {
142+ "Source" : "https://github.com/pytest-dev/pytest-flask" ,
143+ "Tracker" : "https://github.com/pytest-dev/pytest-flask/issues" ,
144+ },
152145 description = 'A set of py.test fixtures to test Flask applications.' ,
153146 long_description = __doc__ ,
154147 license = 'MIT' ,
@@ -173,7 +166,10 @@ def get_version():
173166 'Programming Language :: Python :: 2' ,
174167 'Programming Language :: Python :: 2.7' ,
175168 'Programming Language :: Python :: 3' ,
176- 'Programming Language :: Python :: 3.3' ,
169+ 'Programming Language :: Python :: 3.4' ,
170+ 'Programming Language :: Python :: 3.5' ,
171+ 'Programming Language :: Python :: 3.6' ,
172+ 'Programming Language :: Python :: 3.7' ,
177173 'Topic :: Software Development :: Testing' ,
178174 'Topic :: Software Development :: Libraries :: Python Modules' ,
179175 ],
0 commit comments