def test_parse_requirements_removes_index_lines(self): with open(self.tmp_file, 'w') as fh: fh.write("-f foobar") self.assertEqual([], setup.parse_requirements([self.tmp_file]))
def test_parse_requirements_removes_argparse(self): with open(self.tmp_file, 'w') as fh: fh.write("argparse") if sys.version_info >= (2, 7): self.assertEqual([], setup.parse_requirements([self.tmp_file]))
def test_parse_requirements_normal(self): with open(self.tmp_file, 'w') as fh: fh.write("foo\nbar") self.assertEqual(['foo', 'bar'], setup.parse_requirements([self.tmp_file]))
def test_parse_requirements_with_http_egg_url(self): with open(self.tmp_file, 'w') as fh: fh.write("https://foo.com/zipball#egg=bar") self.assertEqual(['bar'], setup.parse_requirements([self.tmp_file]))
# You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. import setuptools from openstack.common import setup requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() setuptools.setup( name='openstack.common', version=setup.get_post_version('openstack'), description="Common components for Openstack", long_description="Common components for Openstack " "including paster templates.", classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: Apache Software License', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2.6', 'Environment :: No Input/Output (Daemon)', ],
# You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. import setuptools from openstack.common import setup requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() setuptools.setup( name='openstack.common', version=setup.get_post_version('openstack'), description="Common components for Openstack", long_description="Common components for Openstack " "including paster templates.", classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: Apache Software License', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2.6', 'Environment :: No Input/Output (Daemon)', ], keywords='openstack',
from setuptools import setup, find_packages from openstack.common.setup import parse_requirements from openstack.common.setup import parse_dependency_links from openstack.common.setup import write_requirements version = '0.1' requires = parse_requirements() depend_links = parse_dependency_links() write_requirements() setup(name='openstack.common', version=version, description="Common components for Openstack", long_description="Common components for Openstack " "including paster templates.", classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: Apache Software License', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2.6', 'Environment :: No Input/Output (Daemon)', ], keywords='openstack', author='OpenStack', author_email='*****@*****.**', url='http://www.openstack.org/', license='Apache Software License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True,