Skip to content

Commit a8f8c9c

Browse files
committed
Minor reformatting for ease of development
1 parent 5b24831 commit a8f8c9c

File tree

3 files changed

+64
-15
lines changed

3 files changed

+64
-15
lines changed

autogator/__init__.py

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# MIT License
4+
#
5+
# Copyright © 2019-2020 Autogator Project Contributors and others (see AUTHORS.txt).
6+
#
7+
# The resources, libraries, and some source files under other terms (see NOTICE.txt).
8+
#
9+
# Permission is hereby granted, free of charge, to any person obtaining a copy
10+
# of this software and associated documentation files (the "Software"), to deal
11+
# in the Software without restriction, including without limitation the rights
12+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
# copies of the Software, and to permit persons to whom the Software is
14+
# furnished to do so, subject to the following conditions:
15+
#
16+
# The above copyright notice and this permission notice shall be included in all
17+
# copies or substantial portions of the Software.
18+
#
19+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25+
# SOFTWARE.
26+
27+
28+
import platform
29+
import sys
30+
31+
if sys.version_info < (3, 0, 0):
32+
raise Exception(
33+
"Autogator requires Python 3 (version "
34+
+ platform.python_version()
35+
+ " detected)."
36+
)
37+
38+
__version__ = "0.1.0dev0"
39+
__license__ = __doc__
40+
__project_url__ = "https://github.com/BYUCamachoLab/autogator"
41+
__forum_url__ = "https://github.com/BYUCamachoLab/autogator/issues"
42+
__website_url__ = "https://camacholab.byu.edu/"

autogator/__main__.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright © Autogator Project Contributors
4+
# Licensed under the terms of the MIT License
5+
# (see simphony/__init__.py for details)
6+
17
import sys
28

39
try:

setup.py

+16-15
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,10 @@
55
with open("README.md", "r") as fh:
66
long_description = fh.read()
77

8-
verstr = "unknown"
9-
try:
10-
verstrline = open('autogator/_version.py', "rt").read()
11-
except EnvironmentError:
12-
# No version file.
13-
raise RuntimeError("Unable to find version in autogator/_version.py")
14-
else:
15-
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
16-
mo = re.search(VSRE, verstrline, re.M)
17-
if mo:
18-
verstr = mo.group(1)
19-
else:
20-
raise RuntimeError("unable to find version in autogator/_version.py")
8+
9+
NAME = 'autogator'
10+
LIBNAME = 'autogator'
11+
from autogator import __version__, __website_url__ #analysis:ignore
2112

2213
extra_files = []
2314
data_files_ext = []
@@ -33,7 +24,7 @@ def package_data_files(directory):
3324

3425
setuptools.setup(
3526
name="AutoGator",
36-
version=verstr,
27+
version=__version__,
3728
author="Sequoia Ploeg",
3829
author_email="sequoia.ploeg@ieee.org",
3930
description="A software package for camera-assisted motion control of PIC chip interrogation platforms.",
@@ -47,7 +38,17 @@ def package_data_files(directory):
4738
classifiers=[
4839
"Programming Language :: Python :: 3",
4940
"License :: OSI Approved :: MIT License",
50-
"Operating System :: OS Independent",
41+
"Operating System :: Microsoft :: Windows",
42+
"Programming Language :: Python :: 3",
43+
"Programming Language :: Python :: 3 :: Only",
44+
"Programming Language :: Python :: 3.6",
45+
"Programming Language :: Python :: 3.7",
46+
"Programming Language :: Python :: 3.8",
47+
"Development Status :: 4 - Beta",
48+
"Intended Audience :: Education",
49+
"Intended Audience :: Science/Research",
50+
"Intended Audience :: Developers",
51+
"Topic :: Scientific/Engineering",
5152
],
5253
install_requires=[
5354
'numpy',

0 commit comments

Comments
 (0)