-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched from using setup.py to pyproject.toml
Added build dependency to setuptools_scm Use setuptools_scm to set the version
- Loading branch information
Showing
21 changed files
with
129 additions
and
73 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
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 |
---|---|---|
|
@@ -130,3 +130,6 @@ dmypy.json | |
|
||
# PyCharm | ||
.idea/ | ||
|
||
#setuptools_scm version file | ||
_version.py |
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
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
Empty file.
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 64", | ||
"setuptools_scm[toml] >= 8", | ||
"setuptools_scm_git_archive", | ||
"wheel >= 0.29.0", | ||
] | ||
build-backend = 'setuptools.build_meta' | ||
|
||
[project] | ||
name = 'eva_sub_cli' | ||
description = 'EBI EVA - validation and submission command line tool' | ||
dynamic = ["version", 'requires-python'] | ||
readme = 'README.md' | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Intended Audience :: Science/Research', | ||
'Natural Language :: English', | ||
'Operating System :: POSIX :: Linux', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Topic :: Scientific/Engineering :: Bio-Informatics', | ||
'Topic :: Communications :: File Sharing', | ||
'License :: OSI Approved :: Apache', | ||
] | ||
[project.scripts] | ||
'eva-sub-cli.py'='eva_sub_cli.executables.cli:main' | ||
'check_fasta_insdc.py'='eva_sub_cli.executables.check_fasta_insdc:main' | ||
'check_metadata_semantics.py'='eva_sub_cli.executables.check_metadata_semantics:main' | ||
'samples_checker.py'='eva_sub_cli.executables.samples_checker:main' | ||
'xlsx2json.py'='eva_sub_cli.executables.xlsx2json:main' | ||
|
||
[tool.setuptools] | ||
packages = ['eva_sub_cli', 'eva_sub_cli.executables'] | ||
|
||
[tool.setuptools.package-data] | ||
'eva_sub_cli'=['nextflow/*', 'etc/*', 'jinja_templates/*'] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = 'requirements.txt'} | ||
|
||
|
||
[tool.setuptools_scm] | ||
write_to = 'eva_sub_cli/_version.py' | ||
|
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
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,30 +1,36 @@ | ||
import glob | ||
from distutils.core import setup | ||
from os.path import join, abspath, dirname | ||
from setuptools import find_packages | ||
|
||
base_dir = abspath(dirname(__file__)) | ||
requirements_txt = join(base_dir, 'requirements.txt') | ||
requirements = [l.strip() for l in open(requirements_txt) if l and not l.startswith('#')] | ||
|
||
version = open(join(base_dir, 'eva_sub_cli', 'VERSION')).read().strip() | ||
import setuptools | ||
from setuptools import find_packages | ||
# | ||
# base_dir = abspath(dirname(__file__)) | ||
# requirements_txt = join(base_dir, 'requirements.txt') | ||
# requirements = [l.strip() for l in open(requirements_txt) if l and not l.startswith('#')] | ||
# | ||
# version = open(join(base_dir, 'eva_sub_cli', 'VERSION')).read().strip() | ||
# | ||
# setup( | ||
# name='eva_sub_cli', | ||
# packages=find_packages(), | ||
# package_data={'eva_sub_cli': ['nextflow/*', 'etc/*', 'VERSION', 'jinja_templates/*']}, | ||
# use_scm_version={'write_to': 'eva_sub_cli/_version.py'}, | ||
# license='Apache', | ||
# description='EBI EVA - validation and submission command line tool', | ||
# url='https://github.com/EBIvariation/eva-sub-cli', | ||
# keywords=['ebi', 'eva', 'python', 'submission', 'validation'], | ||
# install_requires=requirements, | ||
# setup_requires=['setuptools_scm'], | ||
# classifiers=[ | ||
# 'Development Status :: 5 - Production/Stable', | ||
# 'Intended Audience :: Science/Research', | ||
# 'Topic :: Communications :: File Sharing', | ||
# 'License :: OSI Approved :: Apache Software License', | ||
# 'Programming Language :: Python :: 3' | ||
# ], | ||
# scripts=glob.glob(join(dirname(__file__), 'bin', '*.py')) | ||
# ) | ||
|
||
setup( | ||
name='eva_sub_cli', | ||
packages=find_packages(), | ||
package_data={'eva_sub_cli': ['nextflow/*', 'etc/*', 'VERSION', 'jinja_templates/*']}, | ||
version=version, | ||
license='Apache', | ||
description='EBI EVA - validation and submission command line tool', | ||
url='https://github.com/EBIvariation/eva-sub-cli', | ||
keywords=['ebi', 'eva', 'python', 'submission', 'validation'], | ||
install_requires=requirements, | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Communications :: File Sharing', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Programming Language :: Python :: 3' | ||
], | ||
scripts=glob.glob(join(dirname(__file__), 'bin', '*.py')) | ||
) | ||
if __name__ == "__main__": | ||
setuptools.setup() |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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