-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
61 lines (53 loc) · 2.17 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Copyright (C) 2016-2023 Deep Genomics Inc. All Rights Reserved.
from setuptools import setup, find_packages
from setuptools.command.egg_info import egg_info
from setup import c_ext
COPYRIGHT_FILE = "COPYRIGHT.txt"
LICENSE_FILE = "LICENSE"
tests_require = [
"twobitreader>=3.1",
]
version = "6.3.0"
# See https://stackoverflow.com/questions/9977889/how-to-include-license-file-in-setup-py-script/66443941#66443941
class egg_info_ex(egg_info):
"""Includes license file into `.egg-info` folder."""
def run(self):
# don't duplicate license into `.egg-info` when building a distribution
if not self.distribution.have_run.get('install', True):
# `install` command is in progress, copy license
self.mkpath(self.egg_info)
self.copy_file(COPYRIGHT_FILE, self.egg_info)
self.copy_file(LICENSE_FILE, self.egg_info)
egg_info.run(self)
if __name__ == "__main__":
setup(
author="Deep Genomics",
author_email="info@deepgenomics.com",
python_requires=">=3.9, <4",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
description="GenomeKit is a Python library for fast and easy access to genomic resources such as sequence, data tracks, and annotations.",
license="Apache License 2.0",
license_files=(COPYRIGHT_FILE, LICENSE_FILE,),
name="genomekit",
packages=find_packages(include=["genome_kit"]),
project_urls={
"Documentation": "https://deepgenomics.github.io/GenomeKit"
},
cmdclass={
'build_ext': c_ext.NoCWarningsBuildExt,
'egg_info': egg_info_ex
},
ext_modules=[c_ext.extension],
test_suite="tests",
tests_require=tests_require,
url=f"https://github.com/deepgenomics/GenomeKit/v{version}",
version=version,
zip_safe=False,
)