This repository has been archived by the owner on Jul 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
feb23b5
commit 8c6ec1b
Showing
4 changed files
with
108 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,38 +25,23 @@ | |
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
from setuptools import setup | ||
from release import release | ||
import re | ||
|
||
VERSION_PATTERN = re.compile(r"(?m)^__version__\s*=\s*['\"](.+)['\"]$") | ||
|
||
|
||
def get_version(): | ||
"""Return the current version as defined by u2fval_client/__init__.py.""" | ||
|
||
with open('u2fval_client/__init__.py', 'r') as f: | ||
match = VERSION_PATTERN.search(f.read()) | ||
return match.group(1) | ||
from release import setup | ||
|
||
|
||
setup( | ||
name='u2fval-client', | ||
version=get_version(), | ||
author='Dain Nilsson', | ||
author_email='[email protected]', | ||
description='Python based U2FVAL connector library', | ||
maintainer='Yubico Open Source Maintainers', | ||
maintainer_email='[email protected]', | ||
url='https://github.com/Yubico/u2fval-client-python', | ||
license='BSD 2 clause', | ||
packages=['u2fval_client'], | ||
install_requires=['requests'], | ||
test_suite='test', | ||
tests_require=[ | ||
'httpretty', | ||
], | ||
cmdclass={'release': release}, | ||
classifiers=[ | ||
'License :: OSI Approved :: BSD License', | ||
'Programming Language :: Python :: 2', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters