Skip to content

Instantly share code, notes, and snippets.

@cjw296
Last active April 12, 2018 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjw296/481b155fa63e3d48241add1946f389d5 to your computer and use it in GitHub Desktop.
Save cjw296/481b155fa63e3d48241add1946f389d5 to your computer and use it in GitHub Desktop.
{% set data = load_setup_py_data() %}
package:
name: "{{ data['name'] }}"
version: "{{ data['version'] }}"
source:
path: .
build:
entry_points:
{% for script in data['entry_points']['console_scripts'] %}
- {{ script }}
{% endfor %}
script: python setup.py install
noarch: python
requirements:
build:
- python
{% for dep in data['extra_requires']['build'] %}
- {{ dep.lower() }}
{% endfor %}
run:
- python
test:
commands:
- picky -h
about:
summary: "{{ data['description'] }}"
description: "{{ data['description'] }}"
home: "{{ data['url'] }}"
license: "{{ data['license'] }}"
extra:
recipe-maintainers: "{{ data['author'] }} <{{ data['author_email'] }}>"
import os
from setuptools import setup, find_packages
base_dir = os.path.dirname(__file__)
description = "A tool for locking down your conda package usage."
setup(
name='picky-conda',
version='2.0.0dev',
author='Chris Withers',
author_email='chris@withers.org',
license='MIT',
description=description,
long_description=description,
url='https://github.com/Simplistix/picky-conda',
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
extras_require=dict(
test=[
'coveralls',
'pytest',
],
build=['sphinx', 'pkginfo', 'setuptools-git', 'twine', 'wheel']
),
entry_points = {
'console_scripts': [
'picky = picky.main:main',
]}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment