Skip to content

Commit

Permalink
Merge pull request pierrepo#131 from HubLot/conda
Browse files Browse the repository at this point in the history
conda package
  • Loading branch information
pierrepo authored Oct 10, 2016
2 parents 0a59735 + 916dfa1 commit 8e06917
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ eggs
# Unit test / coverage reports
.coverage
nosetests.xml
# conda
devtools/conda/*.json

5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Dev
- add some unit tests
- add a function test() within the root path of PBxplore
- add a Release file

1.3.1
- remove pbxplore import from setup.py and add version number

Expand Down
28 changes: 28 additions & 0 deletions devtools/RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## How to release

#### Update version number


#### Publish Documentation


#### Publish on Pypi


#### Publish on Conda

1. Build the package (inside `conda` directory)

conda build --python 2.7 --python 3.3 --python 3.4 --python 3.5 -c bioconda -c mdanalysis pbxplore

2. The path of the created archive will be given at the end of the process

3. Convert it for all plateforms (where `X.X.X` is the pbxplore version and `YY` is the Python version)

conda convert --platform all /path/to/archive/pbxplore-X.X.X-pyYY_0.tar.bz2

4. Upload it to anaconda

anaconda upload /path/to/archive/pbxplore-X.X.X-pyYY_0.tar.bz2

This has to be done for each package created.
8 changes: 8 additions & 0 deletions devtools/conda/pbxplore/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"%PYTHON%" setup.py install
if errorlevel 1 exit 1

:: Add more build steps here, if they are necessary.

:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.
9 changes: 9 additions & 0 deletions devtools/conda/pbxplore/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

$PYTHON setup.py install

# Add more build steps here, if they are necessary.

# See
# http://docs.continuum.io/conda/build.html
# for a list of environment variables that are set during the build process.
64 changes: 64 additions & 0 deletions devtools/conda/pbxplore/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
package:
name: pbxplore
version: "1.3.1"

source:
git_url: https://github.com/pierrepo/PBxplore
git_branch: master

build:
entry_points:
- PBassign = pbxplore.scripts.PBassign:pbassign_cli
- PBclust = pbxplore.scripts.PBclust:pbclust_cli
- PBcount = pbxplore.scripts.PBcount:pbcount_cli
- PBstat = pbxplore.scripts.PBstat:pbstat_cli
- PBdata = pbxplore.scripts.PBdata:pbdata_cli


requirements:
build:
- python
- setuptools
- numpy
- matplotlib
- python-weblogo
- mdanalysis >=0.11

run:
- python
- numpy
- matplotlib
- python-weblogo
- mdanalysis >=0.11

test:
imports:
- pbxplore
- pbxplore.analysis
- pbxplore.demo
- pbxplore.io
- pbxplore.structure
- pbxplore.tests

commands:
- PBassign --help
- PBclust --help
- PBcount --help
- PBstat --help
- PBdata --help
- python -c 'import pbxplore; pbxplore.test()'


requires:
- coverage
- nose

about:
home: https://github.com/pierrepo/PBxplore
license: MIT License
license_file: LICENSE
summary: 'PBxplore is a suite of tools dedicated to Protein Block analysis.'

# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml

0 comments on commit 8e06917

Please sign in to comment.