Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from distutils.command.build_ext import build_ext
from distutils.command.clean import clean
from distutils import log
from distutils.dir_util import remove_tree
from distutils.spawn import spawn
import os
import sys
import shutil
if os.environ.get('READTHEDOCS', None) == 'True':
sys.exit("setup.py disabled on readthedocs: called with %s"
% (sys.argv,))
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'llvmlite/_version.py'
versioneer.versionfile_build = 'llvmlite/_version.py'
versioneer.tag_prefix = 'v' # tags are like v1.2.0
versioneer.parentdir_prefix = 'llvmlite-' # dirname like 'myproject-1.2.0'
here_dir = os.path.dirname(os.path.abspath(__file__))
cmdclass = versioneer.get_cmdclass()
build = cmdclass.get('build', build)
build_ext = cmdclass.get('build_ext', build_ext)
def build_library_files(dry_run, pic=False):
cmd = [sys.executable, os.path.join(here_dir, 'ffi', 'build.py')]
if pic:
# also update setup.py
copyright = u'''2010-2014 Michael R. Crusoe, Greg Edvenson, Jordan
Fish, Adina Howe, Luiz Irber, Eric McDonald, Joshua Nahum, Kaben Nanlohy,
Humberto Ortiz-Zuazaga, Jason Pell, Jared Simpson, Camille Scott, Ramakrishnan
Rajaram Srinivasan, Qingpeng Zhang, and C. Titus Brown'''
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The full version, including alpha/beta/rc tags.
sys.path.insert(0, '../')
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = '../khmer/_version.py'
versioneer.versionfile_build = '../khmer/_version.py'
versioneer.tag_prefix = 'v' # tags are like v1.2.0
versioneer.parentdir_prefix = '..'
release = versioneer.get_version()
del versioneer
sys.path.remove('../')
# The short X.Y version.
version = '.'.join(release.split('.')[:2])
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
from setuptools import setup, find_packages
import sys
with open('requirements.txt') as f:
reqs = f.read().splitlines()
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'cifsdk/_version.py'
versioneer.versionfile_build = 'cifsdk/_version.py'
versioneer.tag_prefix = '' # tags are like 1.2.0
versioneer.parentdir_prefix = 'py-cifsdk-' # dirname like 'myproject-1.2.0'
cmds = [
"cif=cifsdk.client:main",
]
try:
import cgmail
cmds.append('cgmail-cif=cifsdk.cifcgmail:main')
except ImportError:
pass
try:
#!/usr/bin/env python
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'pg8000/_version.py'
versioneer.versionfile_build = 'pg8000/_version.py'
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'pg8000-'
from distutils.core import setup
long_description = """\
pg8000
------
pg8000 is a Pure-Python interface to the PostgreSQL database engine. It is \
one of many PostgreSQL interfaces for the Python programming language. pg8000 \
is somewhat distinctive in that it is written entirely in Python and does not \
rely on any external libraries (such as a compiled python module, or \
PostgreSQL's libpq library). pg8000 supports the standard Python DB-API \
print >> sys.stderr, (
"WARNING\n"
"Could not import setuptools.\n"
"This might lead to an incomplete installation\n"
)
import platform
from numpy.distutils.core import setup
from helpers.extensions import static_ext_modules
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'sherpa/_version.py'
versioneer.versionfile_build = 'sherpa/_version.py'
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'sherpa-'
meta = dict(name='sherpa',
version=versioneer.get_version(),
author='Smithsonian Astrophysical Observatory / Chandra X-Ray Center',
author_email='cxchelp@head.cfa.harvard.edu',
url='http://cxc.harvard.edu/sherpa/',
description='Modeling and fitting package for scientific data analysis',
license='GNU GPL v3',
long_description=open('README.md', 'rt').read(),
platforms='Linux, Mac OS X',
install_requires=['numpy', ],
tests_require=['pytest', ],
"""
Build extension modules, package and install Fatiando.
"""
from __future__ import absolute_import
import sys
import os
from setuptools import setup, Extension, find_packages
import numpy
import versioneer
# VERSIONEER SETUP
# #############################################################################
versioneer.VCS = 'git'
versioneer.versionfile_source = 'fatiando/_version.py'
versioneer.versionfile_build = 'fatiando/_version.py'
versioneer.tag_prefix = 'v'
versioneer.parentdir_prefix = '.'
# PACKAGE METADATA
# #############################################################################
NAME = 'fatiando'
FULLNAME = 'Fatiando a Terra'
DESCRIPTION = "Modeling and inversion for geophysics"
AUTHOR = "Leonardo Uieda"
AUTHOR_EMAIL = 'leouieda@gmail.com'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
VERSION = versioneer.get_version()
CMDCLASS = versioneer.get_cmdclass()
from setuptools import setup, find_packages
import os
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'vmmaster/_version.py'
versioneer.versionfile_build = 'vmmaster/_version.py'
versioneer.tag_prefix = '' # tags are like 0.1.0
versioneer.parentdir_prefix = 'vmmaster-' # dirname like 'myproject-0.1.0'
home = []
for path, subdirs, files in os.walk('vmmaster/home'):
path = path.replace('vmmaster/', '')
for name in files:
home.append(os.path.join(path, name))
alembic = []
for path, subdirs, files in os.walk('vmmaster/alembic'):
path = path.replace('vmmaster/', '')
for name in files:
home.append(os.path.join(path, name))
# you may not use this file except in compliance with the License.
# 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 os
from setuptools import setup, find_packages
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'optlang/_version.py'
versioneer.versionfile_build = 'optlang/_version.py'
versioneer.tag_prefix = '' # tags are like 1.2.0
versioneer.parentdir_prefix = 'optlang-' # dirname like 'myproject-1.2.0'
# Run
# pandoc --from=markdown --to=rst README.md -o README.rst
# from time to time, to keep README.rst updated
with open('README.rst', 'r') as f:
description = f.read()
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
requirements = []
else:
requirements = ['sympy>=0.7.5', 'six>=1.9.0']
from setuptools import setup, find_packages
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'frontera/_version.py'
versioneer.versionfile_build = 'frontera/_version.py'
versioneer.tag_prefix = 'v' # tags are like v1.2.0
versioneer.parentdir_prefix = 'frontera-'
setup(
name='frontera',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=find_packages(exclude=('tests', 'tests.*', 'examples', 'examples.*')),
url='https://github.com/scrapinghub/frontera',
description='A scalable frontier for web crawlers',
author='Frontera developers',
maintainer='Alexander Sibiryakov',
maintainer_email='sibiryakov@scrapinghub.com',
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Contact information:
Web - http://www.essolutions.se
Email - essarch@essolutions.se
"""
from setuptools import find_packages, setup
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'ESSArch_PP/_version.py'
versioneer.versionfile_build = None
versioneer.tag_prefix = '' # tags are like 1.2.0
versioneer.parentdir_prefix = 'ESSArch_PP-'
if __name__ == '__main__':
setup(
name='ESSArch_PP',
version=versioneer.get_version(),
description='ESSArch Preservation Platform',
long_description=open("README.md").read(),
long_description_content_type='text/markdown',
author='Henrik Ek',
author_email='henrik@essolutions.se',
url='http://www.essolutions.se',
project_urls={