Skip to content

Commit

Permalink
Merge pull request #1 from Aratz/fix_setup
Browse files Browse the repository at this point in the history
Rewrite setup.py to be similar to the other services
  • Loading branch information
Aratz authored Apr 26, 2023
2 parents b594b77 + d0b67b2 commit 40e6c27
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 43 deletions.
2 changes: 1 addition & 1 deletion sequencing_report_service/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__author__ = """Johan Dahlberg"""
__email__ = '[email protected]'
__version__ = '0.1.0'
__version__ = '1.3.1'
58 changes: 16 additions & 42 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,53 +1,27 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""The setup script."""

from setuptools import setup, find_packages
from sequencing_report_service import __version__
import os

with open('README.md') as readme_file:
readme = readme_file.read()

with open('version.txt') as version_file:
# We use the format vx.x.x in out tags
# but this format is not a valid python
# wheel version, so we remove it here.
version = version_file.read().split('v')[1]

requirements = ['arteria', 'sqlalchemy', 'alembic']

setup_requirements = ['pytest-runner', ]
def read_file(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()

test_requirements = ['pytest', ]
try:
with open("requirements/prod", "r") as f:
install_requires = [x.strip() for x in f.readlines()]
except IOError:
install_requires = []

setup(
author="Johan Dahlberg",
author_email='[email protected]',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
description="Service producing and displaying sequencing reports.",
install_requires=requirements,
license="MIT license",
long_description=readme,
include_package_data=True,
keywords='sequencing_report_service',
name='sequencing_report_service',
version=__version__,
description="Service producing and displaying sequencing reports.",
long_description=read_file('README.md'),
keywords='bioinformatics',
author='SNP&SEQ Technology Platform, Uppsala University',
packages=find_packages(include=["sequencing_report_service*"]),
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
url='https://gitlab.snpseq.medsci.uu.se/shared/sequencing-report-service/sequencing_report_service',
version=version,
zip_safe=False,
include_package_data=True,
entry_points={
'console_scripts': ['sequencing-report-service = sequencing_report_service.app:start']
},

install_requires=install_requires,
)

0 comments on commit 40e6c27

Please sign in to comment.