-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor reformatting for ease of development
- Loading branch information
Showing
3 changed files
with
64 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# MIT License | ||
# | ||
# Copyright © 2019-2020 Autogator Project Contributors and others (see AUTHORS.txt). | ||
# | ||
# The resources, libraries, and some source files under other terms (see NOTICE.txt). | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
|
||
|
||
import platform | ||
import sys | ||
|
||
if sys.version_info < (3, 0, 0): | ||
raise Exception( | ||
"Autogator requires Python 3 (version " | ||
+ platform.python_version() | ||
+ " detected)." | ||
) | ||
|
||
__version__ = "0.1.0dev0" | ||
__license__ = __doc__ | ||
__project_url__ = "https://github.com/BYUCamachoLab/autogator" | ||
__forum_url__ = "https://github.com/BYUCamachoLab/autogator/issues" | ||
__website_url__ = "https://camacholab.byu.edu/" |
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 |
---|---|---|
|
@@ -5,19 +5,10 @@ | |
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
verstr = "unknown" | ||
try: | ||
verstrline = open('autogator/_version.py', "rt").read() | ||
except EnvironmentError: | ||
# No version file. | ||
raise RuntimeError("Unable to find version in autogator/_version.py") | ||
else: | ||
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" | ||
mo = re.search(VSRE, verstrline, re.M) | ||
if mo: | ||
verstr = mo.group(1) | ||
else: | ||
raise RuntimeError("unable to find version in autogator/_version.py") | ||
|
||
NAME = 'autogator' | ||
LIBNAME = 'autogator' | ||
from autogator import __version__, __website_url__ #analysis:ignore | ||
|
||
extra_files = [] | ||
data_files_ext = [] | ||
|
@@ -33,7 +24,7 @@ def package_data_files(directory): | |
|
||
setuptools.setup( | ||
name="AutoGator", | ||
version=verstr, | ||
version=__version__, | ||
author="Sequoia Ploeg", | ||
author_email="[email protected]", | ||
description="A software package for camera-assisted motion control of PIC chip interrogation platforms.", | ||
|
@@ -47,7 +38,17 @@ def package_data_files(directory): | |
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Operating System :: Microsoft :: Windows", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Education", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Developers", | ||
"Topic :: Scientific/Engineering", | ||
], | ||
install_requires=[ | ||
'numpy', | ||
|