Commit graph

17 commits

Author SHA1 Message Date
Mathieu Arnold
551be3c723 Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
  current python flavor.  It can be used in dependency lines when the
  port itself is not python flavored.  For example, deskutils/calibre.

  By default, all the flavors are generated.  To only generate flavors
  for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
  BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.

  In all the ports with Python dependencies, the *_DEPENDS entries MUST
  end with the flavor so that the framework knows which to build/use.
  This is done by appending '@${PY_FLAVOR}' after the origin (or
  @${FLAVOR} if in a Python module with Python flavors, as the content
  will be the same).  For example:

    RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

PR:		223071
Reviewed by:	portmgr, python
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12464
2017-11-30 15:50:30 +00:00
Kubilay Kocak
ceb037fd0c finance/py-stripe: Revert (part of) r426059
Revert r426059 which removed py-unittest2.

(1) The port was revived and (2) the change was incomplete, breaking the
test target/phase because tests were not confirmed to continue to work
(without downloading the dependency, which is not allowed in poudriere),
or updated to work without unittest2.

Removing *_DEPENDS alone for whatever reason (expiry/deletion in this case)
is insufficient for ports of Python packages, as their code may still
register, reference or attempt to import that (package) code, and fatally
error if it is not available.

Other ports modified in that revision very likely require similar
updates, if they haven't been updated or fixed already.

[1] svnweb.freebsd.org/changeset/ports/426059
2017-10-29 04:02:53 +00:00
Rene Ladan
3fcbf37c99 Clean up TEST_DEPENDS, devel/py-unittest2 was removed at 2016-09-26 2016-11-13 16:14:14 +00:00
Mathieu Arnold
4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00
Kubilay Kocak
d3b65e89a3 finance/py-stripe: Update to 1.30.0
- Update PORTVERSION and distinfo checksum (1.30.0)
- Update mock in TEST_DEPENDS (now any version)
- Update setup.py patch to add tests_require for future upstreaming

Changes:

  https://github.com/stripe/stripe-python/blob/v1.30.0/CHANGELOG
2016-03-03 10:11:31 +00:00
Kubilay Kocak
dd6f726e17 finance/py-stripe: Update to 1.29.1, Modernize
- Update PORTVERSION and distinfo checksum (1.29.1)
- Add LICENSE_FILE
- Update TEST depends and test target
- Update test target environment variable [1]
- Remove TESTS option bits accordingly
- Patch setup.py tests_require to allow the latest version of mock [2]
- Remove patch to setup.py:package_data (upstreamed) [3]

Changes:

  https://github.com/stripe/stripe-python/blob/v1.29.1/CHANGELOG

[1] https://github.com/stripe/stripe-python/issues/172
[2] https://github.com/stripe/stripe-python/issues/205
[3] https://github.com/stripe/stripe-python/pull/170
2016-02-23 07:18:33 +00:00
Sunpoet Po-Chuan Hsieh
4676ca5994 - Move ftp/py-curl to ftp/py-pycurl
- Bump PORTREVISION for dependent ports
2015-12-12 23:43:50 +00:00
Kubilay Kocak
aeb5f2cef4 finance/py-stripe: Update to 1.25.0
- Update to 1.25.0
- Switch to CHEESEHOP for distribution files (Geo-aware CDN)
- Canonicalize COMMENT (According to setup.py:description=)
- Switch to requests (2.x)
- Add TESTS option
- Update TEST_DEPENDS values and assignment
- Replace post-patch with a patch, submitted upstream [1]
- Use PYDISTUTILS_SETUP to ensure its setuptools wrapped
- Run pycurl tests that are disabled by default with this weird reverse
  logic bit of code, issue created upstream [2]

    if not os.environ.get('SKIP_PYCURL_TESTS'):
        self.skipTest('Pycurl skipped as SKIP_PYCURL_TESTS is set'

[1] https://github.com/stripe/stripe-python/pull/170
[2] https://github.com/stripe/stripe-python/issues/172

QA: Ran 195 tests in 44.446s OK (skipped=9)
2015-09-06 11:43:08 +00:00
Kubilay Kocak
3acded794f finance/py-stripe: Take MAINTAINER'ship 2015-09-06 10:58:41 +00:00
Dmitry Marakasov
a79bfd8a78 - Add NO_ARCH 2015-08-19 13:51:15 +00:00
Erwin Lansing
d1fb8fff89 Reset maintainer
<trevor@bitba.se>: Host or domain name not found. Name service error for
    name=bitba.se type=AAAA: Host not found

Sponsored by:	DK Hostmaster A/S
2015-08-19 07:54:01 +00:00
Marcus von Appen
a1190ace45 - Convert finance/ to new USES=python
Approved by:	portmgr (implicit)
2014-10-20 17:18:18 +00:00
Antoine Brodin
79c374f2a8 - Stage support
- Switch from easy_install to install
2014-02-17 20:32:51 +00:00
Kubilay Kocak
8942de43ff Sweep www/py-requests dependants to www/py-requests1
Point all www/py-requests dependants to www/py-requests1 in preparation for
the upgrade of www/py-requests to version 2.x, which substantially breaks API
compatibility.

Maintainers of these ports can update their requests dependency independently
as time for sufficient testing permits.

PR:		ports/185631
2014-01-27 12:14:09 +00:00
Kubilay Kocak
e12db4011c finance/py-stripe: Fix missing closing brace in TEST_DEPENDS assignment
Reported by:	jgh
2013-10-26 07:18:03 +00:00
Kubilay Kocak
22867575c0 finance/py-stripe: Update to 1.9.8
- Update to 1.9.8

  I missed this during the initial port commit. It fixes the failing unit
  test.

Changes:

 1.9.8 2013-10-17: Removed incorrect test.
 1.9.7 2013-10-10: Add support for metadata.
 1.9.6 2013-10-08: Fix issue with support for closing disputes.

PR:		ports/182313
2013-10-26 06:44:26 +00:00
Kubilay Kocak
1bf1251a5a finance/py-stripe: Python bindings for Stripe.com [NEW PORT]
Python bindings for the Stripe.com payment service REST API.

WWW: https://github.com/stripe/stripe-python

PR:		ports/182313
Submitted by:	Trevor Caira <trevor@bitba.se>
2013-10-26 06:16:19 +00:00