Skip to content

Commit

Permalink
Add setup.py (#4)
Browse files Browse the repository at this point in the history
This will support Windows properly and allow conda-tree to be
added to conda-forge.
  • Loading branch information
xylar authored and rvalieris committed May 14, 2019
1 parent 05d999d commit 911a4f6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
16 changes: 10 additions & 6 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
package:
name: conda-tree
version: "0.0.2"
version: "0.0.3"

source:
git_url: https://github.com/rvalieris/conda-tree.git
git_rev: v0.0.2
git_rev: v0.0.3

requirements:
host:
- python
- pip
- setuptools

run:
- python
- networkx
- conda

build:
number: 1
number: 0
noarch: generic
script: # See https://github.com/conda/conda-build/issues/3166
- mkdir -p "$PREFIX/bin"
- cp conda-tree.py "$PREFIX/bin/conda-tree"
script:
- "{{ PYTHON }} -m pip install . --no-deps -vv"
entry_points:
- conda-tree = conda_tree:main

test:
commands:
Expand Down
17 changes: 17 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python

from setuptools import setup
import shutil


# we need to rename the script because it's not a valid module name
shutil.copyfile('conda-tree.py', 'conda_tree.py')

setup(name='conda-tree',
version='0.0.3',
description='conda dependency tree helper',
author='Renan Valieris',
url='https://github.com/rvalieris/conda-tree',
py_modules=['conda_tree'],
entry_points={
'console_scripts': ['conda-tree=conda_tree:main']})

0 comments on commit 911a4f6

Please sign in to comment.