This repository has been archived by the owner on Nov 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to pyctdev for project maintenance (#61)
Includes: * packaging metadata declared in setup.cfg (including run time dependencies) * automatic versioning (uses autover via param) * build time dependencies declared in pyproject.toml * conda build is templated (avoids duplicating metadata) except for build time dependencies (doesn't support pyproject.toml) * user command (parambokeh examples) for copying examples (using pyct.cmd) * cleaned up packaging and testing (adds pypi+wheel, adds package testing; all test commands etc are described in tox.ini) Also: * Syntax fix for python2
- Loading branch information
Showing
18 changed files
with
328 additions
and
159 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 |
---|---|---|
@@ -1,22 +1,21 @@ | ||
environment: | ||
global: | ||
CHANS_DEV: "-c pyviz/label/dev" | ||
matrix: | ||
- PY: "3.6" | ||
CONDA: "C:\\Miniconda3-x64" | ||
DOIT: "doit" | ||
- PY: "2.7" | ||
CONDA: "C:\\Miniconda-x64" | ||
DOIT: "doit==0.29.0" | ||
- PY: "3.6" | ||
CONDA: "C:\\Miniconda36-x64" | ||
|
||
install: | ||
- "SET PATH=%CONDA%;%CONDA%\\Scripts;%PATH%" | ||
- pip install %DOIT% ioamdoit | ||
- doit create_env --python=%PY% | ||
- activate test-environment | ||
- doit install_test_dependencies | ||
- doit capture_conda_env | ||
- doit develop_install | ||
- "conda install -y -c pyviz/label/dev pyctdev && doit ecosystem_setup" | ||
- "doit env_create %CHANS_DEV% --name=test --python=%PY%" | ||
- "activate test" | ||
- "doit develop_install -o examples -o tests %CHANS_DEV%" | ||
- "doit env_capture" | ||
|
||
build: off | ||
|
||
test_script: | ||
- doit all_tests | ||
- "doit test_all" |
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 +1,2 @@ | ||
__init__.py export-subst | ||
__init__.py export-subst | ||
setup.cfg export-subst |
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 |
---|---|---|
|
@@ -64,4 +64,5 @@ target/ | |
# Editor files | ||
*~ | ||
|
||
.doit.db.db | ||
*.doit* | ||
|
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
File renamed without changes.
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,8 @@ | ||
include LICENSE.txt | ||
include README.md | ||
include parambokeh/.version | ||
graft examples | ||
graft parambokeh/examples | ||
global-exclude *.py[co] | ||
global-exclude *~ | ||
global-exclude *.ipynb_checkpoints/* |
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,28 +1,45 @@ | ||
{% set sdata = load_setup_py_data() %} | ||
|
||
package: | ||
name: parambokeh | ||
version: {{ os.environ.get("VERSIONHACK") }} | ||
version: {{ sdata['version'] }} | ||
|
||
source: | ||
path: .. | ||
|
||
build: | ||
noarch: python | ||
script: python setup.py install --single-version-externally-managed --record=record.txt | ||
entry_points: | ||
{% for group,epoints in sdata.get("entry_points",{}).items() %} | ||
{% for entry_point in epoints %} | ||
- {{ entry_point }} | ||
{% endfor %} | ||
{% endfor %} | ||
|
||
requirements: | ||
build: | ||
host: | ||
# duplicates pyproject.toml (not supported in conda build) | ||
- python | ||
- setuptools >=30.3.0 | ||
- param >=1.7.0 | ||
- pyct-core >=0.4.4 | ||
run: | ||
- python | ||
- param | ||
- pyviz_comms | ||
- bokeh >=0.12.10 | ||
- python {{ sdata['python_requires'] }} | ||
{% for dep in sdata.get('install_requires',{}) %} | ||
- "{{ dep }}" | ||
{% endfor %} | ||
|
||
test: | ||
imports: | ||
- parambokeh | ||
requires: | ||
{% for dep in sdata['extras_require']['tests'] %} | ||
- "{{ dep }}" | ||
{% endfor %} | ||
|
||
about: | ||
home: https://github.com/ioam/parambokeh | ||
summary: ParamBokeh provides an easy way to generate a UI for param based classes in the notebook or on bokeh server. | ||
license: BSD 3-Clause | ||
home: {{ sdata['url'] }} | ||
summary: {{ sdata['description'] }} | ||
license: {{ sdata['license'] }} | ||
# license_file: {{ sdata['license_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
Oops, something went wrong.