-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Aratz/fix_setup
Rewrite setup.py to be similar to the other services
- Loading branch information
Showing
2 changed files
with
17 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
|
||
__author__ = """Johan Dahlberg""" | ||
__email__ = '[email protected]' | ||
__version__ = '0.1.0' | ||
__version__ = '1.3.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |