-
Notifications
You must be signed in to change notification settings - Fork 33
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 #156 from ChihweiLHBird/setuptools
Change to setup.cfg Only Python Project (Will Be Installed By Setuptools) (2)
- Loading branch information
Showing
4 changed files
with
46 additions
and
55 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 40.9.0", | ||
"wheel" | ||
] | ||
build-backend = "setuptools.build_meta" |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[metadata] | ||
name = sciunit | ||
version = 0.2.2.2 | ||
description = A test-driven framework for formally validating scientific models against data. | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = http://sciunit.scidash.org | ||
|
||
author = Rick Gerkin | ||
author_email = rgerkin@asu.edu | ||
license = MIT | ||
classifiers = | ||
License :: OSI Approved :: MIT License | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
|
||
|
||
[options] | ||
zip_safe = False | ||
packages = find: | ||
install_requires = | ||
quantities>=0.12.1 | ||
pandas>=0.18 | ||
ipython | ||
matplotlib | ||
bs4 | ||
lxml | ||
nbconvert | ||
ipykernel | ||
nbformat | ||
gitpython | ||
cerberus>=1.2 | ||
|
||
|
||
[options.entry_points] | ||
console_scripts = sciunit=sciunit.__main__:main |
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,44 +1 @@ | ||
"""Setup file for SciUnit""" | ||
|
||
from pathlib import Path | ||
from setuptools import setup, find_packages | ||
|
||
|
||
def read_requirements() -> list: | ||
'''parses requirements from requirements.txt''' | ||
reqs_path = Path(__file__).parent / 'requirements.txt' | ||
reqs = None | ||
with open(reqs_path) as reqs_file: | ||
reqs = reqs_file.read().splitlines() | ||
return reqs | ||
|
||
def get_version() -> dict: | ||
version = {} | ||
with open(Path(__file__).parent / 'sciunit' / 'version.py') as f: | ||
exec(f.read(), version) | ||
return version['__version__'] | ||
|
||
|
||
readme_path = Path(__file__).parent / 'README.md' | ||
with open(readme_path, encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name='sciunit', | ||
version=get_version(), | ||
author='Rick Gerkin', | ||
author_email='rgerkin@asu.edu', | ||
packages=find_packages(), | ||
url='http://sciunit.scidash.org', | ||
license='MIT', | ||
description=('A test-driven framework for formally validating scientific ' | ||
'models against data.'), | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
install_requires=read_requirements(), | ||
entry_points={ | ||
'console_scripts': [ | ||
'sciunit = sciunit.__main__:main' | ||
] | ||
} | ||
) | ||
import setuptools; setuptools.setup() |