Skip to content

Commit

Permalink
Minor reformatting for ease of development
Browse files Browse the repository at this point in the history
  • Loading branch information
sequoiap committed Jun 1, 2020
1 parent 5b24831 commit a8f8c9c
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 15 deletions.
42 changes: 42 additions & 0 deletions autogator/__init__.py
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/"
6 changes: 6 additions & 0 deletions autogator/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# -*- coding: utf-8 -*-
#
# Copyright © Autogator Project Contributors
# Licensed under the terms of the MIT License
# (see simphony/__init__.py for details)

import sys

try:
Expand Down
31 changes: 16 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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.",
Expand All @@ -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',
Expand Down

0 comments on commit a8f8c9c

Please sign in to comment.