Skip to content

Commit ca0612d

Browse files
author
Jon Palmer
committed
pin biopython<1.80; i dont have time to fix all of these nuances
1 parent 83ceee5 commit ca0612d

File tree

2 files changed

+48
-43
lines changed

2 files changed

+48
-43
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN mamba install -n base --yes conda-pack
77
# Install funannotate deps from bioconda
88
# here specifying specific versions to be able to set ENV below
99
RUN mamba create -c conda-forge -c bioconda -c defaults \
10-
-n funannotate --yes "python>=3.6,<3.9" biopython xlrd==1.2.0 \
10+
-n funannotate --yes "python>=3.6,<3.9" "biopython<1.80" xlrd==1.2.0 \
1111
"trinity==2.8.5" "evidencemodeler==1.1.1" "pasa==2.4.1" "codingquarry==2.0" \
1212
"proteinortho==6.0.16" goatools matplotlib-base natsort numpy pigz \
1313
pandas psutil requests "scikit-learn<1.0.0" scipy seaborn "blast=2.2.31" \

setup.py

+47-42
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,28 @@
1212
from setuptools import find_packages, setup, Command
1313

1414
# Package meta-data.
15-
NAME = 'funannotate'
16-
DESCRIPTION = 'funannotate: eukaryotic genome annotation pipeline'
17-
URL = 'https://github.com/nextgenusfs/funannotate'
18-
19-
AUTHOR = 'Jon Palmer'
20-
REQUIRES_PYTHON = '>=3.6.0, <3.10'
15+
NAME = "funannotate"
16+
DESCRIPTION = "funannotate: eukaryotic genome annotation pipeline"
17+
URL = "https://github.com/nextgenusfs/funannotate"
18+
19+
AUTHOR = "Jon Palmer"
20+
REQUIRES_PYTHON = ">=3.6.0, <3.10"
2121
VERSION = None
2222

2323
# What packages are required for this module to be executed?
2424
REQUIRED = [
25-
'biopython', 'goatools',
26-
'seaborn','psutil',
27-
'pandas','matplotlib',
28-
'natsort', 'numpy',
29-
'requests', 'scikit-learn',
30-
'scipy', 'distro'
25+
"biopython<1.80",
26+
"goatools",
27+
"seaborn",
28+
"psutil",
29+
"pandas",
30+
"matplotlib",
31+
"natsort",
32+
"numpy",
33+
"requests",
34+
"scikit-learn",
35+
"scipy",
36+
"distro",
3137
]
3238

3339
# What packages are optional?
@@ -45,30 +51,30 @@
4551
# Import the README and use it as the long-description.
4652
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
4753
try:
48-
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
49-
long_description = '\n' + f.read()
54+
with io.open(os.path.join(here, "README.md"), encoding="utf-8") as f:
55+
long_description = "\n" + f.read()
5056
except FileNotFoundError:
5157
long_description = DESCRIPTION
5258

5359
# Load the package's __version__.py module as a dictionary.
5460
about = {}
5561
if not VERSION:
56-
with open(os.path.join(here, NAME, '__version__.py')) as f:
62+
with open(os.path.join(here, NAME, "__version__.py")) as f:
5763
exec(f.read(), about)
5864
else:
59-
about['__version__'] = VERSION
65+
about["__version__"] = VERSION
6066

6167

6268
class UploadCommand(Command):
6369
"""Support setup.py upload."""
6470

65-
description = 'Build and publish the package.'
71+
description = "Build and publish the package."
6672
user_options = []
6773

6874
@staticmethod
6975
def status(s):
7076
"""Prints things in bold."""
71-
print(('\033[1m{0}\033[0m'.format(s)))
77+
print(("\033[1m{0}\033[0m".format(s)))
7278

7379
def initialize_options(self):
7480
pass
@@ -78,56 +84,55 @@ def finalize_options(self):
7884

7985
def run(self):
8086
try:
81-
self.status('Removing previous builds…')
82-
rmtree(os.path.join(here, 'dist'))
87+
self.status("Removing previous builds…")
88+
rmtree(os.path.join(here, "dist"))
8389
except OSError:
8490
pass
8591

86-
self.status('Building Source and Wheel (universal) distribution…')
87-
os.system('{0} setup.py sdist bdist_wheel --universal'.format(sys.executable))
92+
self.status("Building Source and Wheel (universal) distribution…")
93+
os.system("{0} setup.py sdist bdist_wheel --universal".format(sys.executable))
8894

89-
self.status('Uploading the package to PyPI via Twine…')
90-
os.system('twine upload dist/*')
95+
self.status("Uploading the package to PyPI via Twine…")
96+
os.system("twine upload dist/*")
9197

92-
self.status('Pushing git tags…')
93-
os.system('git tag v{0}'.format(about['__version__']))
94-
os.system('git push --tags')
98+
self.status("Pushing git tags…")
99+
os.system("git tag v{0}".format(about["__version__"]))
100+
os.system("git push --tags")
95101

96102
sys.exit()
97103

98104

99105
# Where the magic happens:
100106
setup(
101107
name=NAME,
102-
version=about['__version__'],
108+
version=about["__version__"],
103109
description=DESCRIPTION,
104110
long_description=long_description,
105-
long_description_content_type='text/markdown',
111+
long_description_content_type="text/markdown",
106112
author=AUTHOR,
107113
author_email=EMAIL,
108114
python_requires=REQUIRES_PYTHON,
109115
url=URL,
110-
packages=find_packages(exclude=('tests',)),
116+
packages=find_packages(exclude=("tests",)),
111117
entry_points={
112-
'console_scripts':
113-
['funannotate=funannotate.funannotate:main'],
118+
"console_scripts": ["funannotate=funannotate.funannotate:main"],
114119
},
115120
install_requires=REQUIRED,
116121
extras_require=EXTRAS,
117122
include_package_data=True,
118-
license='BSD-2',
119-
#scripts=['scripts/funannotate'],
123+
license="BSD-2",
124+
# scripts=['scripts/funannotate'],
120125
classifiers=[
121126
# Trove classifiers
122127
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
123-
'Development Status :: 4 - Beta',
124-
'License :: OSI Approved :: BSD License',
125-
'Programming Language :: Python',
126-
'Operating System :: Unix',
127-
'Intended Audience :: Science/Research',
128-
'Topic :: Scientific/Engineering :: Bio-Informatics'
129-
],
128+
"Development Status :: 4 - Beta",
129+
"License :: OSI Approved :: BSD License",
130+
"Programming Language :: Python",
131+
"Operating System :: Unix",
132+
"Intended Audience :: Science/Research",
133+
"Topic :: Scientific/Engineering :: Bio-Informatics",
134+
],
130135
cmdclass={
131-
'upload': UploadCommand,
136+
"upload": UploadCommand,
132137
},
133138
)

0 commit comments

Comments
 (0)