Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/astropy/astropy-helpers

Helpers for Astropy and Affiliated packages
https://github.com/astropy/astropy-helpers

Ensure test functions begin with 'test_' so that the 'testpackage' fixture isn't treated as a test

c91e5eb2d82a6ee79606913821f1f02356128e4c authored almost 11 years ago by Erik M. Bray <[email protected]>
Add tox.ini to run the tests on Python 2.6, 2.7, 3.2, and 3.3 (3.1 is skipped due to flagging support from the various tools involved--all the more reason for us to start deprecating 3.1...

af745754c32dfd3993ce6ecc0ee3e1161aeaf497 authored almost 11 years ago by Erik M. Bray <[email protected]>
For some reason this is *required* on Python 3.3, where previously it was not. I don't know why since the module's loader should presumably already know the module's name. But so we must...

5d91660323c14b7892e926e2f87179c3fc755884 authored almost 11 years ago by Erik M. Bray <[email protected]>
setuptools_boostrap was removed; instead we can just import ah_bootstrap for the same effect

89d400fcdcb93c2e6938c1ff1b20c196b41ad638 authored almost 11 years ago by Erik M. Bray <[email protected]>
A further enhancement that enables coverage for most of astropy_helpers.git_helpers.update_git_devstr

122013d35c5355ffbe0dac9ad5f62b9495dbb31e authored almost 11 years ago by Erik M. Bray <[email protected]>
Run setup.py from within the same python interpreter using setuptools' sandboxing--this way we can capture test coverage properly

21db0cbd4a864bd2958913fcc7669ff9dba6af86 authored almost 11 years ago by Erik M. Bray <[email protected]>
Add our first test of astropy_helpers--this test actually helped catch a bug which was fixed in c3f841b9e099f506a751b8a6971b15e7e3d6590a

6cc226cae0f2940714635fb6d587cf072660a7e1 authored almost 11 years ago by Erik M. Bray <[email protected]>
Make astropy_helpers.tests into a proper subpackage, but exclude it from sdists to keep those small. Running the astropy_helpers tests should be of interest to developers only for now. Also make sure the testpackage isn't recursed into for py.test since we don't want to run *its* tests

c1dc83f85b776f489f2b32fe8d44092206433403 authored almost 11 years ago by Erik M. Bray <[email protected]>
added astropy_helpers branch of package-template as a submodule in astropy_helpers.tests--this will allow us to use the package template itself as our test project for testing astropy_helpers :)

a1469987dfecf321a8198e838789abb0f07740f4 authored almost 11 years ago by Erik M. Bray <[email protected]>
Fix a bug in get_git_devstr--I think the old default functionality of using __file__ may have made sense when this was used primarily by Astropy itself, but in the context of an affiliated package it makes no sense.

c3f841b9e099f506a751b8a6971b15e7e3d6590a authored almost 11 years ago by Erik M. Bray <[email protected]>
Combine setuptools_bootstrap into ah_bootstrap so as to reduce the number of needed 'bootstrap' scripts :)

1a75b262e4caed45754dd18a37ae3763566a6254 authored almost 11 years ago by Erik M. Bray <[email protected]>
Only output an error warning if git submodule had a non-zero exit status. It appears that in some versions of git even a successful run can output some text to stderr; see https://github.com/astropy/astropy/pull/1563#issuecomment-37675210

22c624b1f1c768f382fc1f30ef2106eb28ac13ae authored almost 11 years ago by Erik M. Bray <[email protected]>
Fix typo

1a37056614b27b69fd709e7398729bd783c305d7 authored almost 11 years ago by Erik M. Bray <[email protected]>
Should be version_info

8b8e74bd8d478c918f2a4ee767423f18c8421997 authored about 11 years ago by Erik M. Bray <[email protected]>
Initial version of the ah_bootstrap.py script (name tentative). This works similarly to setuptool' ez_setup.py in how it tries several different routes to find the astropy_helpers module and get it on sys.path. The default is to just import it from a submodule called astropy_helpers--this is the default that will be used when running the astropy repo, for example. But there are many other options. I've tested out all the major use cases, but once I add a test suite to astropy_helpers it will be nice to have tests for the boostrap script as well.

5189fdb64bd1c0f28facb1a1c0a700a91bef9531 authored about 11 years ago by Erik M. Bray <[email protected]>
Two improvements to the silence context manager: If an exception occurs in the body of the with statement, restore sys.stdout/err so that the exception is displayed properly. Also add a dummy flush method to _DummyFile as there is some code in distutils that calls sys.stdout.flush

b52cc50e265b2e2ad5d9d2df60cfd1d99f5290e2 authored about 11 years ago by Erik M. Bray <[email protected]>
Since setuptools and PyPI 'canonicalize' underscores to dashes might as well just used the dashed name explcitly

153a29ecf70b1bdafa34bb09ca1e620fbfa335b3 authored about 11 years ago by Erik M. Bray <[email protected]>
Removing the last vestiges of the astropy config system for now, as it won't work with astropy_helpers in its current state. This can, and should be revisited once we have a better idea of what we're going to do about configuration.

e0fbe590e5d0dfda4c55a71f02e50cf292044379 authored about 11 years ago by Erik M. Bray <[email protected]>
Add a helpers function for getting info out of the package's .version module; previously this was returning the version module in astropy_helpers itself. This changes the get_debug_option function such that it requires the package name. Will probably refactor functions like that into a class that is already instatiated with basic info about the package being built, such as its name.

53d77df6cc1a8309cb9b1b34ccf002609938df20 authored about 11 years ago by Erik M. Bray <[email protected]>
Updated this error string; though this function will likely be removed at some point.

f4cfc39640194ea459229edaadd4f965fb78f2d7 authored about 11 years ago by Erik M. Bray <[email protected]>
Restore missing imports

2b3222831aacb5377f2c7e4b0aa904264f34a6a9 authored about 11 years ago by Erik M. Bray <[email protected]>
Add a stub of a setup.py and a MANIFEST.in

6e937ea69364e5b02453510db49dcee0f7b6375f authored about 11 years ago by Erik M. Bray <[email protected]>
Split the git utils from version_helpers out into their own git_helpers module. This enabled creating a version of generate_version_py that can work without having Astropy or any other support libraries installed, and that also provides support for projects that don't use git (though they lose revision numbers in their version strings until and unless we add support for other VCS (I do already have code to do this for SVN and HG should we wish to add it)).

c7c102898189ef5781aa5c933a848afb333110fe authored about 11 years ago by Erik M. Bray <[email protected]>
Removed most requirements for astropy itself in the setup_helpers module, mainly by copying over a few utility functions (some of these utilities are no longer used in astropy as a result--should we remove them?) Also removed any support for the astropy test and configuration frameworks, but that can be added back in later as needed...

25cc5e44ff59f75a853248e22bb72692ec1095ad authored about 11 years ago by Erik M. Bray <[email protected]>
Start an astropy_helpers package and initialize it wieht the setup_helpers and version_helpers modules from astropy; these are still heavily reliant on Astropy to work

2a5033a0a15048dbce430c7e16bf522c808379d2 authored about 11 years ago by Erik M. Bray <[email protected]>
Adding the most recent ez_setup.py and the setuptools_boostrap script from Astropy

f277169ddab22eb2edbe2c456c30fc8a8442eb0b authored about 11 years ago by Erik M. Bray <[email protected]>
Removing some ignores that are not relevant to astropy_helpers

409a5ca753c6be3677097a7774eccc63f7d66e44 authored about 11 years ago by Erik M. Bray <[email protected]>
Added README, LICENSE, and .gitignore

869b3979e6cfa884fd3940b3cae3f44db06bb99b authored about 11 years ago by Thomas Robitaille <[email protected]>