Commit e8074252 authored by jtc42's avatar jtc42
Browse files

Migrate to Poetry pyproject.toml

parent 58cbbf32
Loading
Loading
Loading
Loading

pyproject.toml

0 → 100644
+23 −0
Original line number Diff line number Diff line
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

[tool.poetry]
name = "openflexure-microscope-software"
version = "1.0.0"
description = "Python module, and Flask-based web API, to run the OpenFlexure Microscope."
authors = ["Joel Collins <j.collins@bath.ac.uk>"]
license = "GPL-3.0"

[tool.poetry.dependencies]
python = "^3.5"
Flask = "^1.0"
pyyaml = "^3.13"
numpy = "^1.15"
Pillow = "^5.4"
# RPi.GPIO = "^0.6.5"  # To be added on pi (poetry add RPi.GPIO)
# picamera = "^1.13"  # To be added on pi (poetry add picamera). Need to check lens shading compatibility.
# openflexure-stage = ">0.1.1"  # Can't resolve until updated on PyPI

[tool.poetry.dev-dependencies]
sphinxcontrib-httpdomain = "^1.7"

requirements.txt

deleted100644 → 0
+0 −11
Original line number Diff line number Diff line
-e git://github.com/rwb27/openflexure_nano_motor_controller.git#egg=openflexure_stage
-e git://github.com/rwb27/picamera.git@lens-shading#egg=picamera

flask >= 0.12.3
pyyaml==3.13
numpy
Pillow
RPi.GPIO

gunicorn
sphinxcontrib-httpdomain
 No newline at end of file

setup.py

deleted100644 → 0
+0 −56
Original line number Diff line number Diff line
from setuptools import setup, find_packages
from codecs import open
from os import path
import re

__author__ = 'Joel Collins'

HERE = path.abspath(path.dirname(__file__))

# Get the long description from the README file
with open(path.join(HERE, 'README.md'), encoding='utf-8') as f:
    LONG_DESCRIPTION = f.read()


def find_version():
    """Determine the version based on __init__.py."""
    with open(path.join(HERE, "openflexure_microscope", "__init__.py"), 'r') as f:
        init_py = f.read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", init_py, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError("Couldn't parse version string from __init__.py")

VERSION = find_version()

setup(
    name='openflexure_microscope',
    version=VERSION,
    description='Control scripts for the OpenFlexure Microscope',
    long_description=LONG_DESCRIPTION,
    author='Joel Collins',
    author_email='joel@jtcollins.net',
    packages=find_packages(),
    keywords=['arduino', 'python', 'serial', 'microscope'],
    zip_safe=True,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
        'Programming Language :: Python :: 3.5'
        ],
    install_requires=[
        'pyserial',
        'future',
        'openflexure_stage',
        'flask',
        'itsdangerous',
        'Jinja2',
        'MarkupSafe',
        'picamera',
        'Werkzeug',
        'pyyaml',
        'numpy',
        'Pillow',
        'RPi.GPIO',
    ],
)