Skip to content

Commit

Permalink
Merge pull request #43 from INM-6/packaging
Browse files Browse the repository at this point in the history
Packaging for 0.1.0
  • Loading branch information
shashwatsridhar authored Jun 16, 2021
2 parents 7306ab2 + 9e18144 commit 9fd9c9d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
14 changes: 14 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
numpy==1.20.3
quantities==0.12.4
PyQt5==5.15.4
pyqtgraph==0.11.1
odml==1.5.1
elephant==0.8.0
neo==0.8.0
pyopengl==3.1.5
matplotlib==3.4.2
scikit-learn==0.24.2
psutil==5.8.0
scipy==1.6.3
pandas==1.2.4
colorcet==2.0.6
25 changes: 7 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,40 +1,28 @@
from setuptools import setup
from sys import version_info
from pathlib import Path


def readme():
with open("README.md") as f:
return f.read()


if version_info < (3, 3):
raise RuntimeError("Required: Python version > 3.3")
if version_info < (3, 9):
raise RuntimeError("Required: Python version > 3.9")

with open("swan/version.py") as fp:
d = {}
exec(fp.read(), d)
swan_version = d['version']

install_requirements = [
'numpy',
'quantities',
'PyQt5',
'pyqtgraph',
'odml',
'elephant',
'pyopengl',
'matplotlib',
'scikit-learn',
'psutil',
'scipy',
'pandas',
'colorcet',
]
install_requirements = Path("./requirements.txt").read_text()

setup(
name='swan',
name='python-swan',
version=swan_version,
packages=['swan',
'swan.app',
'swan.gui',
'swan.resources',
'swan.base',
Expand All @@ -52,6 +40,7 @@ def readme():
description='Python based tool for tracking single units from spike sorted data across several '
'electrophysiological recording sessions.',
long_description=readme(),
long_description_content_type='text/markdown',
entry_points={
'console_scripts': ['swan = swan.app.start:launch']
},
Expand Down

0 comments on commit 9fd9c9d

Please sign in to comment.