-
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.
setup and meta.yaml files are added for setting up shiver wheel and c…
…onda package creation, action added too
- Loading branch information
Showing
6 changed files
with
159 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
exclude: "DGS_SC_scripts/.*|.*\\.mat$" | ||
exclude: "setup.*|DGS_SC_scripts/.*|.*\\.mat$" | ||
|
||
ci: | ||
skip: [pylint] | ||
|
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,45 @@ | ||
# load information from setup.cfg/setup.py | ||
{% set data = load_setup_py_data() %} | ||
{% set license = data.get('license') %} | ||
{% set description = data.get('description') %} | ||
{% set url = data.get('url') %} | ||
# this will get the version set by environment variable | ||
{% set version = environ.get('VERSION') %} | ||
{% set version_number = environ.get('GIT_DESCRIBE_NUMBER', '0') | string %} | ||
|
||
|
||
package: | ||
name: shiver | ||
version: {{ version_number }} | ||
|
||
source: | ||
path: .. | ||
|
||
build: | ||
noarch: python | ||
linux-64: python | ||
number: {{ version_number }} | ||
string: py{{py}} | ||
script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vvv | ||
|
||
requirements: | ||
host: | ||
- python | ||
- versioningit | ||
|
||
build: | ||
- setuptools | ||
- versioningit | ||
- mantidworkbench | ||
- qtpy | ||
- pytest | ||
|
||
run: | ||
- mantidworkbench | ||
|
||
about: | ||
home: {{ url }} | ||
license: {{ license }} | ||
license_family: GPL | ||
license_file: ../LICENSE | ||
summary: {{ description }} |
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,75 @@ | ||
[metadata] | ||
name = shiver | ||
version = 0.0.1 | ||
distance = 0 | ||
description = Spectroscopy Histogram Visualizer for Event Reduction | ||
long_description = file: README.md, LICENSE | ||
long_description_content_type = text/markdown | ||
url = https://github.com/neutrons/Shiver/ | ||
license = GPL3.0 | ||
|
||
[options] | ||
package_dir = | ||
=src | ||
include_package_data = True | ||
packages = find: | ||
python_requires >= 3.8 | ||
install_requires = | ||
mantidworkbench | ||
pyoncat == 1.4.1 | ||
qtpy | ||
tests_require = | ||
pylint | ||
flake8 | ||
black | ||
mypy | ||
pytest | ||
mock | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
shiver = shiver.__init__:main | ||
|
||
[options.packages.find] | ||
where = | ||
src | ||
exclude = | ||
tests* | ||
DGS_SC_scripts* | ||
|
||
[options.package_data] | ||
* = | ||
*.txt | ||
*.yml | ||
*.yaml | ||
*.ini | ||
|
||
[options.extras_require] | ||
dev = | ||
versioningit | ||
tests = pytest | ||
|
||
[flake8] | ||
max-line-length = 120 | ||
ignore = E203, W503 | ||
exclude = conda.recipe/meta.yml | ||
|
||
[versioning] | ||
source-version-file = shiver/_version.py | ||
version-pattern = {tag} | ||
commit-message-pattern = {raw} | ||
tag-message-pattern = {raw} | ||
|
||
[coverage:run] | ||
source = src/shiver | ||
omit = | ||
*/tests/* | ||
conda.recipe/* | ||
docs/* | ||
DGS_SC_scripts/* | ||
|
||
[coverage:report] | ||
# temp set low until project is more developed, default 60 | ||
fail_under = 1 | ||
exclude_lines = | ||
if __name__ == "__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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# this file is necessary so conda can read the contents of setup.cfg using | ||
# its load_setup_py_data function | ||
from setuptools import setup | ||
from versioningit import get_cmdclasses | ||
|
||
setup(cmdclass=get_cmdclasses()) |