How to use the setuptools.setup function in setuptools

To help you get started, we’ve selected a few setuptools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github humenda / GladTeX / setup.py View on Github external
import os
import setuptools

with open(os.path.join('gleetex', '__init__.py')) as f:
    global VERSION
    import re
    for line in f.read().split('\n'):
        vers = re.search(r'^VERSION\s+=\s+.(\d+\.\d+\.\d+)', line)
        if vers:
            VERSION = vers.groups()[0]
    if not VERSION:
        class SetupError(Exception):
            pass
        raise SetupError("Error parsing package version")

setuptools.setup(name='GladTeX',
      version=VERSION,
      description="Formula typesetting for the web using LaTeX",
      long_description="""Formula typesetting for the web

This package (and command-line application) allows to create web documents with
properly typeset formulas. It uses the embedded LaTeX formulas from the source
document to place SVG images at the right positions on the web page. For people
not able to see the images (due to a poor internet connection or because of a
disability), the LaTeX formula is preserved in the alt tag of the SVG image.
GladTeX hence combines proper math typesetting on the web with the creation of
accessible scientific documents.""",
      long_description_content_type = "text/markdown",
      author='Sebastian Humenda',
      author_email='shumenda@gmx.de',
      url='https://humenda.github.io/GladTeX',
      packages=['gleetex'],
github mleveck / YHandler / setup.py View on Github external
from setuptools import setup

setup(name='YHandler',
      version='1.0.0',
      classifer=[
      	'Development Status :: 3 - Alpha',
      	'Intended Audience :: Developers',
      	'License :: OSI Approved :: MIT License',
            'Programming Language :: Python :: 2.7',
            'Topic :: Games/Entertainment',
            'Topic :: Games/Entertainment :: Fantasy Sports'
      ],
      description='Yahoo Fantasy API Wrapper',
      url='https://github.com/BrutalSimplicity/YHandler',
      author='BrutalSimplicity',
      author_email='kory.taborn@gmail.com',
      license='MIT',
      packages=['YHandler'],
      install_requires=[
github genicam / harvesters_gui / setup.py View on Github external
with open('README.rst', 'r',encoding='utf-8_sig') as fh:
    __doc__ = fh.read()

description = 'Graphical user interfce of Harvester'

# Determine the base directory:
base_dir = os.path.dirname(__file__)
src_dir = os.path.join(base_dir, 'src')

# Make our package importable when executing setup.py;
# the package is located in src_dir:
sys.path.insert(0, src_dir)

setuptools.setup(
    # The author of the package:
    author='The GenICam Committee',
    author_email='genicam@list.stemmer-imaging.com',
    # Tells the index and pip some additional metadata about our package:
    classifiers=(
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Science/Research',
        'Intended Audience :: Education',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
github adubkov / py-zabbix / setup.py View on Github external
#!/usr/bin/env python
from setuptools import setup
from pyzabbix.version import __version__

setup(name='py-zabbix',
      version=__version__,
      description='Python module to work with zabbix.',
      long_description_content_type="text/markdown",
      long_description=open('README.rst', 'r').read(),
      url='https://github.com/blacked/py-zabbix',
      author='Alexey Dubkov',
      author_email='alexey.dubkov@gmail.com',
      test_suite='tests',
      packages=['pyzabbix', 'zabbix'],
      tests_require=['mock'],
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 3',
          'Topic :: System :: Monitoring',
github NITDgpOS / festcms / setup.py View on Github external
from setuptools import setup

setup(name='festcms',
      version='1.0',
      description='A generic CMS for college fests.',
      author='Bishakh Ghosh',
      author_email='ghoshbishakh@gmail.com',
      url='http://www.python.org/sigs/distutils-sig/',
      # install_requires=['Django>=1.3'],
github OrkoHunter / keep / setup.py View on Github external
# -*- coding: utf-8 -*-

import codecs
import os
import sys
from setuptools import setup

from keep import about

here = os.path.abspath(os.path.dirname(__file__))

with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
    long_description = '\n' + f.read()

if __name__ == "__main__":
    setup(
        name=about.__name__,
        packages=['keep', 'keep.commands'],
        version=about.__version__,
        description='Personal shell command keeper',
        long_description=long_description,
        author='Himanshu Mishra',
        author_email='himanshu.mishra.kgp@gmail.com',
        url="https://github.com/orkohunter/keep",
        download_url="https://github.com/orkohunter/keep/archive/master.zip",
        include_package_data=True,
        install_requires=[
            'click',
            'requests',
            'terminaltables',
            'PyGithub'
        ],
github toastdriven / shell / setup.py View on Github external
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup


setup(
    name="shell",
    version="1.0.1",
    description="A better way to run shell commands in Python.",
    author='Daniel Lindsley',
    author_email='daniel@toastdriven.com',
    long_description=open('README.rst', 'r').read(),
    py_modules=[
        'shell'
    ],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: System :: Shells',
github Ashish7129 / Graph_Sampling / setup.py View on Github external
import setuptools

with open("README.md", "r",encoding="utf8") as fh:
    long_description = fh.read()

setuptools.setup(
    name="Graph Sampling",
    version="0.0.1",
    authors=["Kirti Jain","Ashish Aggarwal"],
    authors_email=["kirtij.mcs16.du@gmail.com","ashish.mcs16.du@gmail.com"],
    description="Graph Sampling Package",
    long_description="A Graph Sampling package containing various approaches which samples the original graph according to different sample sizes",
    long_description_content_type="text/markdown",
    packages=setuptools.find_packages(),
    classifiers=(
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ),
github tilezen / joerd / setup.py View on Github external
from setuptools import setup, find_packages

version = '0.0.1'

setup(name='joerd',
      version=version,
      description="A tool for downloading and generating elevation data.",
      long_description=open('README.md').read(),
      classifiers=[
          # strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
          'Development Status :: 4 - Beta',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'Intended Audience :: System Administrators',
          'License :: OSI Approved :: MIT License',
          'Natural Language :: English',
          'Operating System :: POSIX :: Linux',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: Implementation :: CPython',
          'Topic :: Scientific/Engineering :: GIS',
          'Topic :: Utilities',
github cloud-custodian / cloud-custodian / tools / c7n_guardian / setup.py View on Github external
#
# 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.

from setuptools import setup, find_packages
import os

description = ""
if os.path.exists('readme.md'):
    description = open('readme.md').read()


setup(
    name="c7n_guardian",
    version='0.3.3',
    description="Cloud Custodian - Multi Account Guard Duty Setup",
    long_description=description,
    long_description_content_type='text/markdown',
    classifiers=[
        "Topic :: System :: Systems Administration",
        "Topic :: System :: Distributed Computing"
    ],
    url="https://github.com/cloud-custodian/cloud-custodian",
    author="Kapil Thangavelu",
    author_email="kapil.foss@gmail.com",
    license="Apache-2.0",
    packages=find_packages(),
    entry_points={
        'console_scripts': [