Skip to content

Commit

Permalink
add license header
Browse files Browse the repository at this point in the history
  • Loading branch information
bryevdv committed Nov 21, 2012
1 parent cd81fba commit c556f6f
Show file tree
Hide file tree
Showing 44 changed files with 315 additions and 22 deletions.
54 changes: 54 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
Except where noted below, conda is released under the following terms:

# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of Continuum Analytics, Inc. nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL CONTINUUM ANALYTICS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Exceptions
==========

versioneer.py is Public Domain

ProgressBar is released under the following terms:

# progressbar - Text progress bar library for Python.
# Copyright (c) 2005 Nilton Volpato
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA



5 changes: 5 additions & 0 deletions conda/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from ._version import get_versions
__version__ = get_versions()['version']
Expand Down
5 changes: 5 additions & 0 deletions conda/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

IN_LONG_VERSION_PY = True
# This file helps to compute a version number in source trees obtained from
Expand Down
9 changes: 7 additions & 2 deletions conda/anaconda.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
''' The anaconda modude provides the `anaconda` class, which provides configuration information about an
Anaconda installation, including the Anaconda package index.
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
''' The anaconda modude provides the `anaconda` class, which provides configuration
information about an Anaconda installation, including the Anaconda package index.
'''

Expand Down
6 changes: 6 additions & 0 deletions conda/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

import os.path, sys, inspect

path = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],"..")))
Expand Down
5 changes: 5 additions & 0 deletions conda/cli/conda_argparse.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from argparse import *

Expand Down
10 changes: 8 additions & 2 deletions conda/cli/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
"""conda is a tool for managing Anaconda environments and packages.
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
'''conda is a tool for managing Anaconda environments and packages.
conda provides the following commands:
Expand All @@ -18,6 +23,7 @@
create : create a new Anaconda environment from a list of specified packages
install : install new packages into an existing Anaconda environment
update : update packages in a specified Anaconda environment
upgrade : upgrade Anaconda installation from CE to full Anaconda
Advanced Package Management
===========================
Expand All @@ -30,7 +36,7 @@
Additional help for each command can be accessed by using:
conda <command> -h
"""
'''

import conda_argparse as argparse
import main_activate
Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_activate.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from os.path import abspath, expanduser

Expand Down
6 changes: 6 additions & 0 deletions conda/cli/main_create.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from os import makedirs
from os.path import abspath, exists, expanduser, join

Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_deactivate.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from os.path import abspath, expanduser

Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_depends.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from os.path import abspath, expanduser, join

Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_download.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from anaconda import anaconda
from package_plan import create_download_plan
Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_envs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from config import config

Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_info.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from config import config

Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_install.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from os.path import abspath, expanduser, join

Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_list.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from os.path import abspath, expanduser, join
import re
Expand Down
6 changes: 5 additions & 1 deletion conda/cli/main_locations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from config import config

Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_remove.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from os import listdir
from os.path import join
Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_search.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from os.path import abspath, expanduser
import re
Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_update.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

from os.path import abspath, expanduser, join

Expand Down
5 changes: 5 additions & 0 deletions conda/cli/main_upgrade.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.

import logging

Expand Down
10 changes: 8 additions & 2 deletions conda/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
''' The config module provides the `config` class, which exposes all the configuration information about an Anaconda installation
that does not require the Anaconda package index.
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
''' The config module provides the `config` class, which exposes all the
configuration information about an Anaconda installation that does not require
the Anaconda package index.
'''

Expand Down
9 changes: 7 additions & 2 deletions conda/constraints.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
''' The constraints module provides a variety of package contraint classes that can be used to search and match
pacakges in the package index.
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
''' The constraints module provides a variety of package `contraint` classes that
can be used to search and match pacakges in the package index.
'''

Expand Down
11 changes: 10 additions & 1 deletion conda/environment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
''' The environment module provides the `environment` class, which provides
information about individual Anaconda environments, including prefix, activated
packages, and overall environment constraints.
'''
from naming import split_canonical_name
import logging
from os.path import isdir
Expand Down
5 changes: 5 additions & 0 deletions conda/envs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
'''
This module is for backwards compatibility with the Launcher. All
functions contained are deprecated and should not be usd for any
Expand Down
11 changes: 8 additions & 3 deletions conda/install.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
"""
This module contains:
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
''' This module contains:
* all low-level code for extracting, activating and deactivating packages
* a very simple CLI
Expand All @@ -18,7 +22,8 @@
installer to create the initial environment, therefore it needs to be
standalone, i.e. not import any other parts of conda (only depend of
the standard library).
"""
'''

import os
import json
Expand Down
14 changes: 11 additions & 3 deletions conda/naming.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
''' The naming module contains various functions for manipulating and parsing Anaconda
package filenames, canonical names, specification strings, etc.
Package names are always of the form <name>-<version>-<build>, where the name may
contain one or more '-' characters. The build number is always a positive integer value.
'''

# the package names we use are always of the form <name>-<version>-<build>,
# where the name may contains one or more '-' characters.
# the build number is always a positive integer value.

def split_spec_string(spec_string):
'''
Expand Down
10 changes: 8 additions & 2 deletions conda/package.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
''' The package module provides the `package` class, which encapsulates information about an Anaconda package,
as well as utility functions for manipulating collections of packages.
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
''' The package module provides the `package` class, which encapsulates
information about an Anaconda package, as well as utility functions for
manipulating collections of packages.
'''

Expand Down
10 changes: 8 additions & 2 deletions conda/package_index.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
''' The package_index module provides the package_index class, which is the primary interface for looking up packages and their
dependencies, matching packages to constraints, etc.
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
''' The package_index module provides the `package_index` class, which is the
primary interface for looking up packages and their dependencies, matching
packages to constraints, etc.
'''

Expand Down
9 changes: 9 additions & 0 deletions conda/package_plan.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# (c) 2012 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
''' The package_plan module provides the `package_plan` class, which encapsulates
executing sets of operations that modify Anaconda environments, as well as functions
for creating package_plans for different circumstances.
'''
from difflib import get_close_matches
import logging

Expand Down
Loading

0 comments on commit c556f6f

Please sign in to comment.