Skip to content

Commit

Permalink
add conda package
Browse files Browse the repository at this point in the history
This is a bit of a hack because:
1. The git tags used in quamash upset conda-build (which doesn't like hyphens) so I manually retagged
2. setup.py imported quamash for metadata (version etc) which didn't work without a qt package, so I moved that
data into setup.py (HACK/TO FIX)
  • Loading branch information
hartytp authored and LabUser committed May 9, 2019
1 parent 2ccf441 commit b006c9a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
18 changes: 18 additions & 0 deletions conda/quamash/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package:
name: quamash
version: {{ environ.get("GIT_DESCRIBE_TAG", "") }}

source:
path: ../..

build:
noarch: python
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
string: py35_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:] }}
script: python setup.py install

requirements:
build:
- python 3.5*
run:
- python 3.5*
18 changes: 12 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
from setuptools import setup
import quamash

import re
import os.path

groups = re.findall(r'(.+?) <(.+?)>(?:,\s*)?', quamash.__author__)
__author__ = 'Mark Harviston <[email protected]>, Arve Knudsen <[email protected]>'
__version__ = '0.6.1'
__url__ = 'https://github.com/harvimt/quamash'
__license__ = 'BSD'
__all__ = ['QEventLoop', 'QThreadExecutor']

groups = re.findall(r'(.+?) <(.+?)>(?:,\s*)?', __author__)
authors = [x[0].strip() for x in groups]
emails = [x[1].strip() for x in groups]

Expand All @@ -13,13 +19,13 @@

setup(
name='Quamash',
version=quamash.__version__,
url=quamash.__url__,
version=__version__,
url=__url__,
author=', '.join(authors),
author_email=', '.join(emails),
packages=['quamash'],
license=quamash.__license__,
description=quamash.__doc__,
license=__license__,
description=__doc__,
long_description=long_description,
keywords=['Qt', 'asyncio'],
classifiers=[
Expand Down

0 comments on commit b006c9a

Please sign in to comment.